Kadkins Posted February 27, 2011 Share Posted February 27, 2011 (edited) Hi, I'm trying to write this script for the game elder scrolls oblivion that spams actions for me by spamming a key. Here's the code so for: WinWaitActive("Oblivion") $i = 0 While $i < 10 send("c") ;sleep(1000) ;$i += 1 WEnd It works fine if I'm just spamming a key, but as soon as I try to increment i it either doesn't run at all in the game or sends the key once or twice and stops. It also seems to sleep for random amounts of time instead of the entered time. It works fine if I just send it to a text file. I eventually want to have something that does multiple key sends and clicks but that fails even worse than this. Any ideas? Thanks Edited February 27, 2011 by Kadkins Link to comment Share on other sites More sharing options...
Rogue5099 Posted February 27, 2011 Share Posted February 27, 2011 kadkins,In your haste to post you must have missed this. My projects: Inventory / Mp3 Inventory, Computer Stats Link to comment Share on other sites More sharing options...
Recommended Posts