60 lines
1.3 KiB
AutoHotkey
60 lines
1.3 KiB
AutoHotkey
; This script was created using Pulover's Macro Creator
|
|
; www.macrocreator.com
|
|
|
|
#NoEnv
|
|
SetWorkingDir %A_ScriptDir%
|
|
CoordMode, Mouse, Screen
|
|
SendMode Input
|
|
#SingleInstance Force
|
|
SetTitleMatchMode 2
|
|
#WinActivateForce
|
|
SetControlDelay 1
|
|
SetWinDelay 0
|
|
SetKeyDelay 100
|
|
SetMouseDelay -1
|
|
SetBatchLines 20ms
|
|
|
|
|
|
F23::
|
|
Send, !p
|
|
Sleep, 200
|
|
Send, !o
|
|
Sleep, 400
|
|
Loop, 5 ; This was supposedto search for all boxes but the colour alternates.
|
|
{ ; TODO: use arrow keys to select each, then finish with an image search to toggle the last one if unclicked.
|
|
CoordMode, Pixel, Screen
|
|
ImageSearch, FoundX, FoundY, 0, 0, 2560, 1440,assets\eps\eps_tick_box.png
|
|
CenterImgSrchCoords("assets\eps\eps_tick_box.png", FoundX, FoundY)
|
|
If ErrorLevel
|
|
Break
|
|
Sleep, 50
|
|
If (ErrorLevel = 0)
|
|
{
|
|
CoordMode, Mouse, Screen
|
|
Click, %FoundX%, %FoundY% Left, 1
|
|
Sleep, 10
|
|
}
|
|
}
|
|
Until, ErrorLevel != 0
|
|
Sleep 50
|
|
;FindAndClickCenterOfImage("assets\eps\eps_pin.png", "EPS Pin Entry not found")
|
|
CoordMode, Pixel, Screen
|
|
ImageSearch, FoundX, FoundY, 0, 0, 2560, 1440, assets\eps\eps_pin.png
|
|
CenterImgSrchCoords("assets\eps\eps_pin.png", FoundX, FoundY)
|
|
If ErrorLevel
|
|
{
|
|
MsgBox, 49, Continue?, Image / Pixel Not Found.`nPress OK to continue.
|
|
IfMsgBox, Cancel
|
|
Return
|
|
}
|
|
If (ErrorLevel = 0)
|
|
{
|
|
CoordMode, Mouse, Screen
|
|
Click, %FoundX%, %FoundY% Left, 1
|
|
Sleep, 10
|
|
SendRaw, %EPSPin%
|
|
}
|
|
/*
|
|
Send, !p
|
|
*/
|
|
Return |