Solved

simulate a key pressed

Posted on 2003-11-20
3
310 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

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

Java contains several comparison operators (e.g., <, <=, >, >=, ==, !=) that allow you to compare primitive values. However, these operators cannot be used to compare the contents of objects. Interface Comparable is used to allow objects of a cl…
Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
Viewers learn about the third conditional statement “else if” and use it in an example program. Then additional information about conditional statements is provided, covering the topic thoroughly. Viewers learn about the third conditional statement …
Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…

635 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