Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

simulate a key pressed

Posted on 2003-11-20
3
Medium Priority
?
317 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 120 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

[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

Question has a verified solution.

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

INTRODUCTION Working with files is a moderately common task in Java.  For most projects hard coding the file names, using parameters in configuration files, or using command-line arguments is sufficient.   However, when your application has vi…
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 …
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 will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…
Suggested Courses

824 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