Skip to content

Commit

Permalink
examples: wowjump optimize win11
Browse files Browse the repository at this point in the history
  • Loading branch information
whtiehack committed Jun 30, 2024
1 parent 27632c0 commit eb665f7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions examples/wowjump/logout.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ func (l *Logout) checkFlashWindow() {
winapi.FlashWindow(config.flashHwnd, i%1+1)
sleep(500)
}
randomSleep(3333, 6666)
}
func (l *Logout) input() {
if l.subTime == 0 {
Expand Down Expand Up @@ -199,6 +200,9 @@ func (l *Logout) CheckWindow() bool {

// TryGetWindow try focus window.
func (l *Logout) TryGetWindow() bool {
if !l.IsValid() {
return false
}
focus := win.GetForegroundWindow()
if focus != l.hwnd {
win.ShowWindow(l.hwnd, win.SW_NORMAL)
Expand Down

0 comments on commit eb665f7

Please sign in to comment.