Splitz Posted July 9, 2008 Posted July 9, 2008 I have a problem when i try to execute this script while playing the game 'Diablo II' in full screen mode, Anyother time i try to run it, it works just fine. When i run the script, i can go to task manager and its taking up basicly 99% Cpu usage, and if i maximize d2 it freezes everything untill i hit {DEL} Here is the script HotKeySet("{Home}", "Go") HotKeySet("{Del}", "lol") while(1) sleep(10) WEnd Func Go() Mouseclick ("left", 664, 356, 1, 50) MouseClick ("left", 313, 329, 1, 50) Mouseclick ("left", 636, 358, 1, 50) MouseClick ("left", 284, 329, 1, 50) Mouseclick ("left", 607, 356, 1, 50) MouseClick ("left", 256, 328, 1, 50) Mouseclick ("left", 578, 358, 1, 50) MouseClick ("left", 225, 330, 1, 50) Mouseclick ("left", 549, 356, 1, 50) MouseClick ("left", 197, 328, 1, 50) Mouseclick ("left", 520, 356, 1, 50) MouseClick ("left", 168, 328, 1, 50) Mouseclick ("left", 492, 356, 1, 50) MouseClick ("left", 168, 243, 1, 50) Mouseclick ("left", 463, 357, 1, 50) MouseClick ("left", 196, 243, 1, 50) Mouseclick ("left", 665, 357, 1, 50) EndFunc Func lol() Exit EndFunc I use to be able to use this script while on D2 before with a older version of i think, but now it just makes my game freeze and the script runs @ 99% cpu usage when i press {HOME} anyway to fix this ?
Paulie Posted July 9, 2008 Posted July 9, 2008 (edited) Try making your loop this: While 1 Sleep(100) WEnd Edited July 9, 2008 by Paulie
Splitz Posted July 9, 2008 Author Posted July 9, 2008 Oh i tryed a bunch of different loop's sleep(1) sleep(5) sleep(500) sleep(10000) none of them seemed to help it, as soon as i pressed {HOME}, the game would freeze untill i hit {DEL}
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