Zordon Posted January 8, 2019 Share Posted January 8, 2019 Hey, I'm kinda new to this but have a basic understanding somewhat.. I'm trying to send numpad inputs from 0 - 9 in sets of 4 (0000-9999) increasing one at a time. I have it set to hit a specific key, E, then input the numpad.. I want to to cycle hit E input 0000, then wait a second hit E input 0001, repeat to 9999 all being sent from the numpad Sorry if this sound confusing Here's my code so far Global $client = "Prog" Global $play = WinExists($client) Global $paused HotKeySet("{Esc}", "Quit") HotKeySet("{9}", "Pause") If $play = 0 Then MsgBox (16, "Error", "Prog is not running - please try again.") Else WinActivate($client, "") While 1 Placename() WEnd EndIf Exit 0 Func Placename() send("{E}") send("{NUMPAD0}") EndFunc Func Pause() $paused = NOT $paused While $paused sleep(100) ToolTip("Paused - Press '9' to Resume") WEnd ToolTip("") EndFunc Func Quit() Exit 0 EndFunc I got to to just do the 0000 but wondering on how best to go about doing the increasing amount. Thank you for any help you can give me on this Link to comment Share on other sites More sharing options...
Developers Jos Posted January 8, 2019 Developers Share Posted January 8, 2019 (edited) What is the purpose of all of this as it sounds very bruteforce to me? Jos Edited January 8, 2019 by Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
Zordon Posted January 8, 2019 Author Share Posted January 8, 2019 To be honest it is.. I'm testing something and want to automate it instead of doing it manually Link to comment Share on other sites More sharing options...
Developers Jos Posted January 8, 2019 Developers Share Posted January 8, 2019 1 hour ago, Zordon said: To be honest it is.. Thank you for your honesty and this will be the last mistake made in our forums for you. So, please read our forum rules now first before continuing. Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
Recommended Posts