Madcow Posted April 11, 2005 Share Posted April 11, 2005 I need a script that press f6 every 3 seconds (if you couldnt guess from the title) This is what I have ; press F6 every 3 seconds HotKeySet("^!\", "MyExit") Sleep (3000) Send ( "{F6}") Sleep (3000) Send ( "{F6}") ;goes on like this for awhile Func MyExit() Exit EndFunc But that doesnt work, it press F6 every 40 seconds or so. Link to comment Share on other sites More sharing options...
layer Posted April 11, 2005 Share Posted April 11, 2005 40 seconds? are you sure? Sleep(3000) should sleep for 3 seconds.. try this, may help:$times = 5; replace 5 with however many times you want to sleep 6 secnods and send F6 For $i = 1 to $times Sleep(6000);sleep 6 seconds.. Send ( "{F6}"); sends the keystroke, F6 Next ;rest of script hereshould work.. FootbaG Link to comment Share on other sites More sharing options...
Madcow Posted April 11, 2005 Author Share Posted April 11, 2005 ya thats what I didnt get, it sent a F6 every 40 seconds. thanks for the help Im gonna try it now. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now