Hyflex Posted June 28, 2007 Posted June 28, 2007 My current code is at the bottom, how can i make it so after XX amount of time(still got to calculate) for keep running but instead of pressing 1, to press 2, after XX time, it moves to number 3 and then 4,5,6,7,8, then press = once and close Global $Paused = True HotKeySet("{INSERT}", "StartMountTrainer") HotKeySet("{END}", "Escape") Opt("SendKeyDownDelay", 1) Opt("SendKeyDelay", 1) While 1 Sleep(100) WEnd Func StartMountTrainer() While 1 Sleep("150000") Send("{1 down}") Sleep("100") Send("{1 up}") Sleep("2000") WEnd EndFunc ;==>StartMountTrainer Func Escape() Exit EndFunc ;==>Escape
the_lord_mephy Posted June 28, 2007 Posted June 28, 2007 (edited) if you know the amount of times you want to hit each button you could use counters Func StartMountTrainer() $i = 0 While 1 $i = $i + 1 if $i = # of times you want to hit it Then ExitLoop Sleep("150000") Send("{1 down}") Sleep("100") Send("{1 up}") Sleep("2000") WEnd $i = 0 While 1 $i = $i + 1 if $i = # of times you want to hit it Then ExitLoop Sleep("150000") Send("{2 down}") Sleep("100") Send("{2 up}") Sleep("2000") WEnd EndFunc so forth Edited June 28, 2007 by the_lord_mephy My site for HTML Help :)[quote name='Valik' date='Oct 15 2004, 12:29 PM']Maybe nobody is an "elite uber-coder" like me because thinking is a capital offense in today's online-world?[right][snapback]36427[/snapback][/right][/quote]
Hyflex Posted June 28, 2007 Author Posted June 28, 2007 Thanks, i understand now i was going to copy and paste 100 times then copy that into text editor and replace the 1 for 2, and then do same for 3,4,5,6,7,8 and = lol
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