I'm assuming that making the loop a function won't work for you either.
If not, sorry I couldn't help. Trying to be creative. I'd done something similar to this with another Pixel function and it seemed to respond a little faster.
;
HotKeySet("{PAUSE}", "Pause")HotKeySet("{f3}", "Quit")HotKeySet("{F2}"),"GoLook")opt("SendKeyDelay", "1")AutoItSetOption("MouseCoordMode", 0)AutoItSetOption("PixelCoordMode", 0)Function GoLook()While 1; This will loop until one of these conditions is trueWhile PixelGetColor(370, 702) <> 10790050 And PixelGetColor(372, 695) <> 9475986 Sleep(50)WEndSend("{Space}")Sleep(500) ; Does this need to be 500?WEndEndFuncFunc Pause()ExitEndFunc ;==>PauseFunc Quit()Run("Golf Perf")ExitEndFunc ;==>Quit
Edited by OldGuyWalking
Link to comment
Share on other sites
More sharing options...
kevilay
Posted
kevilay
Active Members
39
Author
Share
Posted
I'm assuming that making the loop a function won't work for you either. If not, sorry I couldn't help. Trying to be creative. I'd done something similar to this with another Pixel function and it seemed to respond a little faster.;
HotKeySet("{PAUSE}", "Pause")
HotKeySet("{f3}", "Quit")
HotKeySet("{F2}"),"GoLook")
opt("SendKeyDelay", "1")
AutoItSetOption("MouseCoordMode", 0)
AutoItSetOption("PixelCoordMode", 0)
Function GoLook()
While 1
; This will loop until one of these conditions is true
While PixelGetColor(370, 702) <> 10790050 And PixelGetColor(372, 695) <> 9475986
Sleep(50)
WEnd
Send("{Space}")
Sleep(500) ; Does this need to be 500?
WEnd
EndFunc
Func Pause()
Exit
EndFunc ;==>Pause
Func Quit()
Run("Golf Perf")
Exit
EndFunc ;==>Quit
[post="86433"]<{POST_SNAPBACK}>[/post]
see my script works fine the problem is that it lags my computer up so much everything gets slow and everything slows down to the point of unuse
Link to comment
Share on other sites
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!
Recommended Posts
OldGuyWalking
I'm assuming that making the loop a function won't work for you either.
If not, sorry I couldn't help. Trying to be creative. I'd done something similar to this with another Pixel function and it seemed to respond a little faster.
;
HotKeySet("{PAUSE}", "Pause")
HotKeySet("{f3}", "Quit")
HotKeySet("{F2}"),"GoLook")
opt("SendKeyDelay", "1")
AutoItSetOption("MouseCoordMode", 0)
AutoItSetOption("PixelCoordMode", 0)
Function GoLook()
While 1
; This will loop until one of these conditions is true
While PixelGetColor(370, 702) <> 10790050 And PixelGetColor(372, 695) <> 9475986
Sleep(50)
WEnd
Send("{Space}")
Sleep(500) ; Does this need to be 500?
WEnd
EndFunc
Func Pause()
Exit
EndFunc ;==>Pause
Func Quit()
Run("Golf Perf")
Exit
EndFunc ;==>Quit
[post="86433"]<{POST_SNAPBACK}>[/post]
see my script works fine the problem is that it lags my computer up so much everything gets slow and everything slows down to the point of unuseLink to comment
Share on other sites