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

Commit

Permalink
select first option
Browse files Browse the repository at this point in the history
  • Loading branch information
T2hhbmEK committed Oct 5, 2023
1 parent aa6c28f commit fa81499
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
11 changes: 8 additions & 3 deletions GenshinClicker.ahk
Original file line number Diff line number Diff line change
Expand Up @@ -193,9 +193,14 @@ DetectOption_L(NthLast := 1) { ; ...
}

DetectOption(&OutX, &OutY) { ; ...
static L1 := DetectOption_L(1)
static L2 := DetectOption_L(2)
return DetectPixels(L2, &OutX, &OutY) or DetectPixels(L1, &OutX, &OutY)
NthLast := 1
Ret := false
while DetectPixels(DetectOption_L(NthLast), &X, &Y) {
OutX := X, OutY := Y
NthLast += 1
Ret := true
}
return Ret
}


Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Automatic keyboard / mouse clicker for Genshin Impact.

## Features

- Automate dialogues. Auto select the 2nd last response if possible. Free your hands through dialogues.
- Automate dialogues. Auto select the first response. Free your hands through dialogues.
- Multi-languages: English, Chinese.
- Support dynamic game resolutions and aspect ratios.
- Support windowed.
Expand Down
2 changes: 1 addition & 1 deletion README.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

## 功能

- 自动跳过对话。如可能,自动选择倒数第二个回复。解放双手。
- 自动跳过对话。自动选择第一个回复。解放双手。
- 多语言:中文、英文。
- 支持动态游戏分辨率和长宽比。
- 支持窗口化。
Expand Down

0 comments on commit fa81499

Please sign in to comment.