Changed quicksearch to hash table

This commit is contained in:
2022-08-19 18:46:11 +01:00
parent b1084a736b
commit a12254aff1
5 changed files with 730 additions and 18 deletions

View File

@@ -10,18 +10,18 @@ SetTitleMatchMode 2
#WinActivateForce
SetControlDelay 1
SetWinDelay 0
SetKeyDelay -1
SetKeyDelay 100
SetMouseDelay -1
SetBatchLines -1
SetBatchLines 20ms
F23::
Macro1:
Send, !p
Sleep, 200
Send, !o
Sleep, 400
Loop, 5
{
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)
@@ -36,6 +36,8 @@ Loop, 5
}
}
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)
@@ -43,7 +45,7 @@ If ErrorLevel
{
MsgBox, 49, Continue?, Image / Pixel Not Found.`nPress OK to continue.
IfMsgBox, Cancel
Return
Return
}
If (ErrorLevel = 0)
{