robot

Is there an equivalent to Java's Robot class (java.awt.Robot) for Perl?

Is there an equivalent to Java's Robot class (java.awt.Robot) for Perl? ...

control robot via internet

i have robot and want to control it via internet using radio wave .. but still i dont know the best language to do that . with the need to build scure site to insure not any body can use it . i expect for site asp with c# but what is the language i'll need it to control from sender device to the recipt robot . also need to live video tra...

PHP IRC Robot, Send Command, but now I need the bot to read the command.

Hello, I have a PHP IRC Robot that I use in my channel and I need it to make OPs to specific set users in the script by me. Anyways I want the robot to check if the user is logged into NickServ to prevent any sort of fraud or anything. Anyways, here is my connect and DO things code, followed by what I really need help with below it. All...

Tracking OS-level window events in Java

I have a requirement to be able to track how much a user interacts with the different applications running on their machine. What seemed logical to me was to keep a log of window focus events with timestamps which would tell you what applications were in focus over the course of the day. We have some other things to do in this applicati...

Doh / dijit robot - no mouse actions happening

I wrote an automated test using dijit robot - but in order to be able to use relative paths within our web application, I created an OSGi service for our tests and put the test code in a velocity template. When I try to run the tests, nothing happens. If I use the same script in an html file and access it directly from windows explorer...

Get the VK int from an arbitrary char in java

How do you get the VK code from a char that is a letter? It seems like you should be able to do something like javax.swing.KeyStroke.getKeyStroke('c').getKeyCode(), but that doesn't work (the result is zero). Everyone knows how to get the key code if you already have a KeyEvent, but what if you just want to turn chars into VK ints? I'...

Web/HTTP Robot Platform/Framework

Hi all, is there an existing platform/framework for developing Web/HTTP based robots? Actually I'm interested in playing some web games, in which one can build his city, select and training his hero and soldier, and so on.. (such as Travian ) but in the game, such actions need time to complete (I hate waiting..) I try to write a automat...

How to get the text from DataGrid with Rational Robot?

Hello, I am new to Rational Robot, so it could be that my question sounds rather silly :) I want to write the following test - create a User with the ID xxx, close the new user creation, then open the list of all available users and select the user with ID xxx from it. The list is in the DataGrid. ID is a text in one of the cells So t...

A Python equivilent to Java Robot

Hi, does anyone know of a Python class similar to Java Robot? Specifically I would like the perform a screen grab in Ubuntu, and eventually track mouse clicks and keyboard presses (although that's a slightly different question) Thanks, Stuart ...

How to enter text in a cross-platform way with the AWT Robot?

The AWT Robot lets you send key press and release events given the keycode of the key you want to press. But the combination of key(s) you need to use to type a character depends on the input locale (e.g. the keyboard layout). We've worked around that by writing our own Keyboard abstraction that maps characters to AWTKeyStrokes and l...

What robot (web) libraries are available for python?

Specifically, are there any libraries that do not use sockets? I will be running this code in Google App Engine, which does not allow the use of sockets. Google app engine does allow the use of urllib2 to make web requests. I've been trying to get mechanize to work, since that what I've used before, but if there's something easier, I'd...

Prevent system tray icon from stealing focus when clicked

I am writing an application in Java that places an icon in the system tray (via SWT). When this icon is clicked, I wish to have it automatically type some keys (via the Robot class) into whatever text field is in focus at the time of clicking (could be in any window). Unfortunately, clicking the system tray icon steals the focus away fro...

I'm writing a screen capture module in Java, but I'm having serious performance issues writing screenshots to disk. What else can I do?

I'm writing a screen capture module using the Robot class. I'm taking screenshots of the application every x milliseconds and writing them to disk. After screen capture is finished, I'm compiling the screenshots to video with FFMPEG. However, writing images to disk is extremely slow and grinds my application to a halt. What am I missing...

How do you determine if a character requires the shift key to be down to be typed?

I am writing some code to type strings using the Robot class. Everything is mostly good (well, I have to use a big switch statement to get character keycodes), except some keys don't have keycodes, because they are actually a combination of SHIFT + some other key. For upper case letters, it is easy to check, using Character.isUpperCase...

Convert String to KeyEvents

Hello, I've discovered the Robot class today and wanted to use it to do some funny scripts... I want to convert a String into KeyEvent to do something like this : writeKeyboard(myBot,"abcd"); public void writeKeyboard(Robot bot, String st){ char[] arr = arr.toCharArray(); int i = arr.length(); int j = 0; int keyco...

I want to use Robot class in java applet for web browser. will it move and click mouse

I have created this applet, It moves mouse to 1000 pos on screen.It works as application but it does not work in applet. I have created signed applet but still it wont move mouse. What should i do to make my robot class work from browser . import java.applet.Applet; import java.awt.Graphics; import java.awt.Robot; import java.awt.AWTEx...

Script to take web survey for me

I had to take a surveymonkey survey today, and the format was as follows: a question was asked, then after hitting the next button, the answer was displayed as "Answer: _" along with an explanation. For kicks, I'd like to make a program that could take this survey, answering any letter, then going to the next page and reading the answer,...

Free library like Java's Robot class for C++

Is there a free library that has the same features of Java's Robot class for C++? http://java.sun.com/javase/6/docs/api/java/awt/Robot.html ...

Create a global Robot variable without throwing AWTException

I'm trying to create a global Robot variable in a java class without throwing AWTException. The only way that I can come up with it is by throwing the exception. The reason I need it to be global is because I need to use the same Robot variable in other methods in the class. public class Robo{ Robot r; public Robo() t...

php robot for maintainance of db?

i want to have an automatic maintainance of my mysql database. eg deletes all old threads, users and checks if a user hasnt been active (ive set up that javascript is updating a status column in mysql) for over 60 min, i set the persons status as logged out in mysql. stuff like that. now how should i do this part. should i write this c...