Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- toggle := false
- WinActivate, ahk_exe HoloCure.exe
- F11::SetTimer, CheckColour, % (toggle := !toggle) ? "100" : "Off" ; Evaluats the label CheckColour every 0.25 sec or turns it off depending on "toggle"
- CheckColour:
- PixelSearch, Px, Py, 1532, 996, 1620, 1076, 0x3232E1, 5, Fast
- if (ErrorLevel) {
- } else {
- send, {Up down}
- sleep, 10
- send, {Up up}
- }
- PixelSearch, Px, Py, 1532, 996, 1620, 1076, 0x2BEB2D, 5, Fast
- if (ErrorLevel) {
- } else {
- send, {Right down}
- sleep, 10
- send, {Right up}
- }
- PixelSearch, Px, Py, 1532, 996, 1620, 1076, 0x43C5F5, 5, Fast
- if (ErrorLevel) {
- } else {
- send, {Left down}
- sleep, 10
- send, {Left up}
- }
- PixelSearch, Px, Py, 1532, 996, 1620, 1076, 0xF69034, 5, Fast
- if (ErrorLevel) {
- } else {
- send, {Down down}
- sleep, 10
- send, {Down up}
- }
- PixelSearch, Px, Py, 1532, 996, 1620, 1076, 0xD031AE, 5, Fast
- if (ErrorLevel) {
- } else {
- send, {Z down}
- sleep, 10
- send, {Z up}
- }
- PixelGetColor, Ros, 937, 434
- if(Ros != 0xF7F7F7){
- send, {Z down}
- sleep, 10
- send, {Z up}
- }
- Return
Add Comment
Please, Sign In to add comment