Solved

simulate a key pressed

Posted on 2003-11-20
3
288 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
Comment Utility
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
Comment Utility
how do i make it press F7?
0
 
LVL 1

Expert Comment

by:FesterWim
Comment Utility
The abbot frame work is usefull for this kind of testing:

http://abbot.sourceforge.net/
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
pairstar challenge 2 41
json format text only 4 64
Java Message handling in Service Layer 3 36
Java Timer (static) 9 0
This was posted to the Netbeans forum a Feb, 2010 and I also sent it to Verisign. Who didn't help much in my struggles to get my application signed. ------------------------- Start The idea here is to target your cell phones with the correct…
Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.

728 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now