Skip to content

Commit

Permalink
Correct the last place not using handles which really improved perfor…
Browse files Browse the repository at this point in the history
…mance!
  • Loading branch information
pitermach committed Jun 20, 2020
1 parent aaea2f3 commit 0c525a4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion buffers.au3
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ EndFunc

func IsInGame()
For $i=0 to UBound($WindowList)-1 step 1
If WinActive($WindowList[$i]) then
If WinGetHandle("[ACTIVE]")=$HandleList[$i][0] then
Return true
ExitLoop
EndIf
Expand Down
2 changes: 1 addition & 1 deletion rts.au3
Original file line number Diff line number Diff line change
Expand Up @@ -166,5 +166,5 @@ EndIf

next

sleep(50)
sleep(30)
Wend

0 comments on commit 0c525a4

Please sign in to comment.