Okami Posted January 23, 2010 Share Posted January 23, 2010 (edited) First post and it is a question I dont know nothing about scripting, my friend told me that what i want to do could be done with AutoIT what i want to do looks simple When i press PageUP it starts a function in witch the key F1 is pressed 27 time with 6 seconds interval, then after the key F1 is pressed 27 time the key F2 is pressed 4 time with nearly no interval, only some milesconds, and it keeps going on and on the function only stops when i press PageDOWN i tried to do something like it on VB 2008 Express , but i dont know anything about programming Can someone help me please? Edited January 23, 2010 by Okami Link to comment Share on other sites More sharing options...
James Posted January 24, 2010 Share Posted January 24, 2010 Send("{F1}") Blog - Seriously epic web hosting - Twitter - GitHub - Cachet HQ Link to comment Share on other sites More sharing options...
Sobiech Posted January 24, 2010 Share Posted January 24, 2010 When i press PageUP it starts a function in witch the key F1 is pressed 27 time with 6 seconds interval, then after the key F1 is pressed 27 time the key F2 is pressed 4 time with nearly no interval, only some milesconds, and it keeps going on and on the function only stops when i press PageDOWN HotkeySet("{PGUP}", "_Start") HotkeySet("{PGDN}", "_Exit") $F1Time = 6000 $F4Time = 40 Func _Start() While 1 For $i=1 To 27 Step 1 Send("{F1}") Sleep($F1Time) Next For $j=1 To 4 Step 1 Send("{F4}") Sleep($F4Time) Next WEnd EndFunc Func _Exit() Exit EndFunc Should work This world is crazy 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