Solved

simulate a key pressed

Posted on 2003-11-20
3
297 Views
Last Modified: 2011-09-20
Hi i want to make a little macro that simulate a F7 key pressed on the keyboard once in a 10 sec.
and i wanted to ask you experts how can i simulate a F7 or any other keyboard pressed.

thanks Navot.
0
Comment
Question by:navotvolk
3 Comments
 
LVL 35

Accepted Solution

by:
TimYates earned 30 total points
ID: 9791141
This might help

http://www.developer.com/java/other/article.php/2212401

Just use the Robot class in a TimerTask

Tim
0
 
LVL 1

Author Comment

by:navotvolk
ID: 9794947
how do i make it press F7?
0
 
LVL 1

Expert Comment

by:FesterWim
ID: 9795304
The abbot frame work is usefull for this kind of testing:

http://abbot.sourceforge.net/
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Android development question 2 54
jsp login check 12 43
Convert from a json string array to a Java object 3 53
java example issue 5 26
After being asked a question last year, I went into one of my moods where I did some research and code just for the fun and learning of it all.  Subsequently, from this journey, I put together this article on "Range Searching Using Visual Basic.NET …
By the end of 1980s, object oriented programming using languages like C++, Simula69 and ObjectPascal gained momentum. It looked like programmers finally found the perfect language. C++ successfully combined the object oriented principles of Simula w…
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:
The viewer will learn how to implement Singleton Design Pattern in Java.

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question