Command key, Java Robot Meta Programming Software Development by scheppy …to make java robot hold down the command key. I have used the following code. robot.keyPress(KeyEvent.VK_META); robot.Delay(5000); robot.keyRelease(…I using the wrong keycode? Ive also tried robot.keyPress(KeyEvent.META_MASK); and robot.keyPress(KeyEvent.META_DOWN_MASK); Ive also tried keycodes, … Re: JAVA Robot Programming Software Development by earwax ….awt.windows.WRobotPeer.keyPress(Native Method) at java.awt.Robot.keyPress(Robot.java:224) at RobotExp.main(RobotExp.java:13) can you help me with… any reason for this exception, here is the 13th line robot.keyPress(KeyEvent.VK_DEAD_DIAERESIS); Re: JAVA Robot Programming Software Development by masijade …) which is the int that needs to be used in Robot, and everything I've searched seems to point to the… not provided a KeyCode and so cannot be used by Robot. The only thing I can say is to submit a… JAVA Robot Programming Software Development by earwax Hi i need to press non-english keys like "ü","ö" in java but i didnt managed to do this using robot class. So how can i press non-english characters? Re: Taking screenshot with java applet using java robot class not working Programming Software Development by mKorbel crossposted [url]http://stackoverflow.com/questions/6593043/taking-screenshot-with-java-applet-using-java-robot-class-not-working[/url] Java Robot Class Help Programming Software Development by godzab Hello guys, I need help with the Robot class in Java. I am trying to excute a couple of keystrokes using …. Here is the code: import java.awt.AWTException; import java.awt.Robot; import java.awt.event.KeyEvent; import java.io.IOException; public class RobotExp { public… Re: Java Robot Class Help Programming Software Development by godzab Because I would like to use an array to do the KeyEvent. It's to repetitive doing this: robot.keyPress(KeyEvent.VK_H); robot.keyPress(KeyEvent.VK_I); I want to know if you could use an array for that. Re: Java Robot Class Help Programming Software Development by godzab Sorry I did not give the full Error: RobotExp.java:19: error: cannot find symbol robot.keyPress(KeyEvent.VK_a[i]); ^ symbol: variable VK_a location: class KeyEvent 1 error Java Program crashes at around 30min. libosxapp.dylib plugin crash Programming Software Development by scheppy … automated tasks for a game. It takes screen shots with java.robot every 250 milliseconds. The program is working great, but it… more than 125mb of real memory. Process: java [44066] Path: /usr/bin/java Identifier: net.java.openjdk.cmd Version: 1.0 (1.0… Java Program crashes at around 30min. libosxapp.dylib plugin crash Hardware and Software macOS by scheppy … automated tasks for a game. It takes screen shots with java.robot every 250 milliseconds. The program is working great, but it… more than 125mb of real memory. Process: java [44066] Path: /usr/bin/java Identifier: net.java.openjdk.cmd Version: 1.0 (1.0… Re: JAVA Robot Programming Software Development by masijade combine the VK_O, etc, with VK_DEAD_DIAERESIS. Re: JAVA Robot Programming Software Development by earwax Thanks a lot for your help masijade. Well i found a workaround, using windows alt codes like Alt+0252 for "ü". That works for me right now. Re: Java Software Robot Programming Software Development by JamesCherrill [QUOTE]Can I tell the mouse via Java to go to coordinates x1,y1 (which might be where … paste?[/QUOTE] See the Java Robot class. [url]http://java.sun.com/j2se/1.4.2/docs/api/java/awt/Robot.html[/url] It's… Re: Robot class on a mac computer Programming Software Development by Majestics [url]http://www.devdaily.com/java/java-robot-class-example-mouse-keystroke[/url] I think u already saw it..... Re: Java Program crashes at around 30min. libosxapp.dylib plugin crash Programming Software Development by scheppy java version "1.8.0_40" Java(TM) SE Runtime Environment (build 1.8.0_40-b27) Java HotSpot(TM) 64-Bit Server VM (build 25.40-b25, mixed mode) Re: Taking screenshot using java robot class not woring when pc is locked. Programming Software Development by turt2live … if the computer is locked. Don't use a robot then to get the JFrame image. I use the…] import java.awt.Color; import java.awt.Font; import java.awt.Graphics2D; import java.awt.image.BufferedImage; import java.io.File; import java.io.IOException…. My code is not the mot efficient use of Java, so you may need to research the items in… Taking screenshot with java applet using java robot class not working Hardware and Software macOS by sagngh8 … take screenshot of the web browser using the java's robot class. Robot objRobot = new Robot (); BufferedImage objBufferedImage = objRobot.createScreenCapture(objRectArea); The thing work… Taking screenshot with java applet using java robot class not working Programming Software Development by sagngh8 … take screenshot of the web browser using the java's robot class. Robot objRobot = new Robot (); BufferedImage objBufferedImage = objRobot.createScreenCapture(objRectArea); The thing work… Taking screenshot using java robot class not woring when pc is locked. Programming Software Development by sagngh8 …take the screenshot of the desktop. [code]Robot objRobot = null; try { objRobot = new Robot(); } catch(Exception ex) { } … = objRobot.createScreenCapture(objRectArea); [/code] The problem with robot is when my computer is locked the image comes as… Re: Taking screenshot with java applet using java robot class not working Hardware and Software macOS by jingda Sorry i never learn about Java, in fact my knowledge about Programming are limited, the only thing i know is HTml and css and hardware problems. Maybe you should post this in the Java forum [URL="http://www.daniweb.com/software-development/java/9"]Here[/URL] is the forum Re: Taking screenshot with java applet using java robot class not working Hardware and Software macOS by sagngh8 I am using applet for addressing the problem of platform independent.The java applet can be ran from all system and from all browser wo any problem that's why! Re: Taking screenshot with java applet using java robot class not working Programming Software Development by NormR1 Why post this more than once here? [url]http://www.daniweb.com/software-development/java/threads/371217[/url] how to register in websites using a java bot? Programming Software Development by JChakra I want to write a bot in Java that will register in websites. I have no idea how to auto select the fields and submit button. I know How Java Robot class Api and it does not contain any method which selects fields for me.How to track down the fields? best regards, Re: Java Robot Class Help Programming Software Development by NormR1 What symbol was not found? Where was the ^ posititioned? What does the API doc say for the keyPress() method? What type of argument does it take? Did you give it the correct argument? Re: Java Robot Class Help Programming Software Development by godzab Sorry the ^ is posititioned at the period, right after the KeyEvent.Here is what it can take: public void keyPress(int keycode). So how could I use an array to do multiple commands. Re: Java Robot Class Help Programming Software Development by NormR1 You forgot to say what was the symbol that was not found? Re: Java Robot Class Help Programming Software Development by NormR1 The compiler can not find the field: VK_a in the KeyEvent class. Why is that line coded with that variable? Re: Java Robot Class Help Programming Software Development by NormR1 You can't make up members of the KeyEvent class. Either use the variables from that class or your own variables. Look at the definitions for the KeyEvent members: VK_. You can create an array of them: int[] vkcars = {KeyEvent.VK_H, ...); Re: Java Robot Class Help Programming Software Development by godzab Thank you. Re: Java - simulate key presses Programming Software Development by mKorbel …imageio.*; import javax.swing.*; import java.awt.*; import java.awt.event.*; import java.awt.image.*; import java.io.*; public class CaptureScreen implements …getScreenSize(); // gets the screen size Robot r; BufferedImage bI; try { r = new Robot(); // creates robot not sure exactly how it works…