Sending commands to Bluestacks while out of focus

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
Xenos411
Posts: 1
Joined: 19 Mar 2018, 14:54

Sending commands to Bluestacks while out of focus

19 Mar 2018, 15:12

I'm sorry if this has been asked previously. After searching I've been looking for a way to run a loop in the background without the window in question being in focus. The window is bluestacks and I've tried ControlSend but it seems to not work correctly. sample script being
Loop

Code: Select all

{
    Sleep, 4196
    ControlSend, BlueStacks, {1}, 
    Sleep, 5460
    ControlSend, BlueStacks, {2, 
    Sleep, 1202
   ControlSend, BlueStacks, {3}
    Sleep, 1419
    ControlSend, BlueStacks, {4}
    Sleep, 2200
    ControlSend, BlueStacks, {5}
    Sleep, 10187
    ControlSend, BlueStacks, {6}
    Sleep, 35000
}
User avatar
divanebaba
Posts: 805
Joined: 20 Dec 2016, 03:53
Location: Diaspora

Re: Sending commands to Bluestacks while out of focus

19 Mar 2018, 22:11

Hello and welcome to the AHK-forum.

It seems like you are using wrong parameters for the choosen command.

Code: Select all

ControlSend, Control, Keys, WinTitle, WinText, ExcludeTitle, ExcludeText
Try first to find the name of the control you want to send your simulated keystrokes.
Window Spy (you can find in AHK program files) and ACC-Viewer are recommended tools for this job.
Einfach nur ein toller Typ. :mrgreen:

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: doodles333, Frogrammer and 258 guests