Func HandleWindow Pos WinGetPos BlueStacks App Player if pos Then WinM

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
Func HandleWindow()
$Pos = WinGetPos("BlueStacks App Player","")
if ($pos[0] <> 0) Then
WinMove ("BlueStacks App Player","", 0, 0)
EndIf
if ($pos[1] <> 0) Then
WinMove ("BlueStacks App Player","", 0, 0)
EndIf
EndFunc
;_WinWaitActivate("BlueStacks App Player","")
local $Count = 0;
While $Count < 30
if WinActive("BlueStacks App Player","") = 0 Then
;Klick Start
HandleWindow()
Sleep(1000)
Else
MouseClick("left",260,835,1,1000)
Sleep(250)
MouseClick("left",520,620,1,1000)
Sleep(500)
MouseClick("left",520,620,1,1000)
Sleep(200)
$Count = $Count + 1
EndIf
WEnd