Auto Key press fill forms through simulating key presses | Linux.com
Auto Key press fill forms through simulating key presses | Linux.com| Hot: |
This script can be used to repeatedly press on the , it was used to fill out 100 odd entries on a while testing without having to physically enter the data.
Save the code below some where like / with what ever file name you like, set the file to be with +x /usr/bin/keyrepeat
you can then run the command keyrepeat 100 "1" or what ever you chose as the of your script.
You will have 5 seconds to focus a window, the program will then simulate a user pressing the keys on the keyboard.
sleep 5 #delay to allow the user to focus a window number=$1 #first parameter, number of times to repeat text=$2 #second parameter, text to repeat will interpret as tab for ((counter=1;counter< =$number;counter+=1)); do #loop required number of times xvkbd -xsendevent -text $text #this sends the text as key presses done
Related articles by Zemanta
- (linux.byexamples.com)
- (maketecheasier.com)
- (linuxjournal.com)
related post
- Are you swapped? Increase the performance of Linux machine.
- Gnome Icons, themes and window decorator.
- Happy Independence Day
- jumps and marks in vim
- Play with vim colors.
Technorati Tags: , , , , , , , , , , , , , ,
Enjoy this article?
Find what you want :
cal
Post History
Click to unfold.Blog
YOURLS
Paste here the URL to shorten:







Facebook
Digg
Delicious
Flickr
FriendFeed
LinkedIn
MyBlogLog
Orkut
Reddit
StumbleUpon
Technorati
Twitter
Youtube






