robot

Player Stage Hunting Game - Java

Hey guys, So I have all these classes put together for all the connectivity between Predators and Prey and the world. The only thing I'm really stumped on is the run() method for the Predator class (how they hunt). The theory is simple. The predators have to gather around the Prey on it's North, South, East and West side, and the DataC...

Programmatically extract data from flash animation drop-down list

There's a flash running on a web-site (not localhost). It has a drop-down list, where you can type letters. While you are typing, it sends a request to the server and shows values containing your query letters. Is there any way to programmatically send a request (imitating a human working with that flash animation) and extract some of...

Robot.delay(int) versus Thread.sleep(long)

I have a program whose only purpose is to drive a java.awt.Robot in an infinite loop until an exit condition is met. The robot performs a number of actions in quick succession, which require a standard UI delay between them. For this, I use java.awt.Robot.setAutoDelay(int ms), which appears to be designed for precisely this purpose. At...

WM_PAINT, Java and capturing hidden windows

Hi, first a disclaimer, I'm a java programmer and have almost null idea about the windows api. So please bear with me. My goal is to use Java to capture a hidden window. My target platform is windows. I do understand that the robot class is used for capuring the visible part of the screen. After some browsing, I came across these three...

Automation of DOH Robot tests interrumped by Pop-up message

In order to automate DOH tests during our build process, I use Selenium RC to launch different browsers (IE and Firefox) on a server placed on a different domain than the build machine. Each browser is directed to our runTests.html in order to start DOH. Sometimes, when a test that uses doh.robot starts, the following message is shown: ...

communication between two computers with 2 c++ programs

Hello smart people, I have one computer that is running a c++ program to control a robot and another computer that is running a computer vision system (also written in c++). I would like for these two programs to be able to talk to one another. The communication would not have to be complex, I would just need the robot computer to be ab...

java get screen coordinates for any object

I am trying to use java to get screen coordinates for any object in the DOM. For example I want to write code to take a button name ()or any object in a web or windows app) and return x, y coords so I can perform mouse actions on that button using java robot. I dont want to get coords myself because I want it more dynamic so get cur...

How can java.awt.Robot be made to respond to mouse drag events?

I'm writing a class that will allow users on other computers to control the contents of a JPanel, for use in a shared display system. java.awt.Robot will allow me to perform mouse clicks and keyboard input, but it does not have a mouseDragged(MouseEvent evt) method. My client has clientMouseReleased (and Pressed) methods as part of a Mo...

how to get the back image of a window?

We are building a program for visual impaired people, the aim is to replace some features of the screen, like colors, shapes or else. Currently, we have a full-screen window, we grab a snapshot of the screen (through the robot java library) and we reproduce it to the full-screen window. When we try to take the next screenshot, obviously ...

Java awt.Robot: send key with position for eg. right shift or right ctrl

Hello, I want to use the java.awt.Robot class to implement a virtual keyboard. I am wondering if there is a way to send the keycode WITH the key location (left or right) using the keyPress(int) method. If you add a KeyListener to an awt Element, a KeyEvent triggered by ctrl or shift has an information if it was the left or right button....

Finch make robot sound

Can Finch change the user's recorded voice into a robot's voice? By changing the pitch, rate, tempo etc? ...

Simple script to find "lowest" available domain name

I need a script to find out what is the lowest available domain name with a give TLD (say .com, .info, or .net). For example, 1000423.com is free but 1000.com is taken. Probably my spammiest question so far. NOTE I mean "lowest" domain name numerically (i.e. 1.com, 2.com, 3.com, ..., n.com, n+1.com, ...) and not shortest as in String...

Robot for AIM, Samtime, OCS, etc.

Hi, we know Google supplied some robots of gtalk , such as [email protected] which translates the messages you send to it from english to german. And I want to know are there any robot IM accounts that always on-line for AIM, SameTime, OCS, etc. I don't care what the robot can do, but at least echo what I send to it. Thanks. ...

Problem with web code generator designer

I want to write a web-based code generator for a Python crawler. Its aim is to automatically generate code so a developer doesn't need to write it, but I've run into this problem: in one of my project's webpages, there are some checkboxes, buttons, etc. Each of them generates some Python code and writes it to a common textarea. However, ...

Inject Keystrokes

Is there a way to inject keystrokes into the JVM on the Android platform? I'm looking for something like java.awt.Robot but I don't think that's available on Android thanks ...