Skip to content
This repository has been archived by the owner on Jun 7, 2024. It is now read-only.

Commit

Permalink
select 2nd last option if possible
Browse files Browse the repository at this point in the history
  • Loading branch information
T2hhbmEK committed Oct 5, 2023
1 parent 5cfeea6 commit 63ce36e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions GenshinClicker.ahk
Original file line number Diff line number Diff line change
Expand Up @@ -178,9 +178,8 @@ DetectPlay(&OutX, &OutY) { ; ||
return DetectPixels(L1, &OutX, &OutY) or DetectPixels(L2, &OutX, &OutY)
}

DetectOption_L() { ; ...
Y := IsNotWideScreen ? 535 : 525
Y := H - ScaleX(720 - Y)
DetectOption_L(NthLast := 1) { ; ...
Y := ScaleYBottom720((IsNotWideScreen ? 535 : 525) - (NthLast - 1) * 50)
D := IsNotWideScreen ? 0 : 92
DiffX := Scale * 2
L := [
Expand All @@ -194,8 +193,9 @@ DetectOption_L() { ; ...
}

DetectOption(&OutX, &OutY) { ; ...
static L := DetectOption_L()
return DetectPixels(L, &OutX, &OutY)
static L1 := DetectOption_L(1)
static L2 := DetectOption_L(2)
return DetectPixels(L2, &OutX, &OutY) or DetectPixels(L1, &OutX, &OutY)
}


Expand Down

0 comments on commit 63ce36e

Please sign in to comment.