Finally, I got around to update and I found that this seems to work, when BlueStacks 4 is not focussed (but not, if the window is minimized):
Code: Select all
wintitle := "BlueStacks"
Space:: ; hit Space key
ControlFocus, , % wintitle
ControlSend, ,{Esc}, % wintitle
return
I left the control parameter blank, so that the target window's topmost control will be used.
(I wasn't succesful with the control name
BlueStacksApp1 which I determined via
WindowSpy.ahk; the control you tried to use, called
WindowsForms10.Window.8.app.0.1ca0192_r9_ad11, just seemed to shortly flash sometimes while loading and didn't work either)
The
WinTitle always seemed to be just "BlueStacks" with all the apps I tested (not sure what
NoxPox1 is... ?)
I hope this helps...
Edit: And now it stopped working
- not sure, what the problem is. I will investigate further.