IBeSeeN Posted December 17, 2006 Posted December 17, 2006 (edited) Ok i have a problem with this script i edited..it works fine when i first start it but when i go to toggle it... thats were the problems start..i have to push shift then push end to toggle...but when i go to toggle it back on.. it just clicks and dosent hold shift.. dose anyone know how to fix this so it toggles right or is it impossable? Global $Paused HotKeySet("{END}", "TogglePause") HotKeySet("{HOME}", "Terminate") While 1 Sleep(100) WEnd Func TogglePause() $Paused = NOT $Paused While $Paused Send("{SHIFTDOWN}") sleep(100) MouseClick("Left") WEnd EndFunc Func Terminate() Exit 0 EndFunc Thanks IBeSeeN Edited December 17, 2006 by IBeSeeN
hearurscream Posted December 18, 2006 Posted December 18, 2006 In your Func TogglePause() you set $paused= not $paused.. so when it hits the "while" loop, it skips right past it. Try this: Global $Paused HotKeySet("{END}", "TogglePause") HotKeySet("{HOME}", "Terminate") While 1 Sleep(100) While NOT $Paused Send("{SHIFTDOWN}") sleep(100) MouseClick("Left") WEnd WEnd Func TogglePause() $Paused = NOT $Paused EndFunc Func Terminate() Exit 0 EndFunc Infinity is a floorless room without walls or ceiling.Anyone who cannot cope with mathematics is not fully human. At best he is a tolerable subhuman who has learned to wear shoes, bathe, and not make messes in the house.
IBeSeeN Posted December 19, 2006 Author Posted December 19, 2006 In your Func TogglePause() you set $paused= not $paused.. so when it hits the "while" loop, it skips right past it. Try this: Global $Paused HotKeySet("{END}", "TogglePause") HotKeySet("{HOME}", "Terminate") While 1 Sleep(100) While NOT $Paused Send("{SHIFTDOWN}") sleep(100) MouseClick("Left") WEnd WEnd Func TogglePause() $Paused = NOT $Paused EndFunc Func Terminate() Exit 0 EndFuncmeh same problem but not it dosent need me to toggle it on... im useing this in diablo 2 Lod so it will auto cast hammers in uber trist for me...
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