diff --git a/buffers.au3 b/buffers.au3 index c7f1d66..f3cf251 100644 --- a/buffers.au3 +++ b/buffers.au3 @@ -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 diff --git a/rts.au3 b/rts.au3 index eab8615..9836cad 100644 --- a/rts.au3 +++ b/rts.au3 @@ -166,5 +166,5 @@ EndIf next -sleep(50) +sleep(30) Wend \ No newline at end of file