As soon as you run the script, it locates Bluestacks and clicks continuously somewhere in the middle. There are 3 hotkeys configured:
- PAUSE key - to toggle between running/pause
- ESC key - to quit from the script
- SHIFT + PAUSE - to toggle between hiding/showing Bluestacks window (get very familiar with this as this is what you need to do very quickly at work when your manager is passing by)
Script as below:
Global $g_bPaused = False
Global $g_bHide = False
HotKeySet("{PAUSE}", "TogglePause")
HotKeySet("{ESC}", "Terminate")
HotKeySet("+{PAUSE}", "ShowHideDialog") ; Shift-Alt-h
While 1
   Local $hWnd = WinWait("BlueStacks App Player", "", 10)
   while True
   ControlClick($hWnd, "", "", "left", 1, 300, 300)
   WEnd
   Sleep(2000)
WEnd
Func TogglePause()
   $g_bPaused = Not $g_bPaused
    While $g_bPaused
        Sleep(100)
        ToolTip('Script is "Paused"', 0, 0)
    WEnd
    ToolTip("")
EndFunc   ;==>TogglePause
Func Terminate()
   Exit
EndFunc   ;==>Terminate
Func ShowHideDialog()
   $g_bHide = Not $g_bHide
   Local $hWnd = WinWait("BlueStacks App Player", "", 10)
   if $g_bHide == True Then
   WinSetState($hWnd, "", @SW_HIDE)
   Else
   WinSetState($hWnd, "", @SW_SHOW)
   EndIf
EndFunc
Let me know how it works for you ;)
 
 
 
1 comment:
Thank bro
Post a Comment