I'm using a program called BigBox (a mode of Launchbox similar to Steam's Big Picture mode, though it comes as a separate .exe.
I use BigBox to launch different programs, including VLC. When launching VLC I use an AHK-script to make the screen black for a few seconds (I use the Gui, show command to make a solid black window that's set to always on top, and Gui, destroy a few seconds later, when VLC has loaded). I do this so as to not see the brief flash of the VLC interface before it goes to full screen.
I would like to send a keypress to BixBox while the black gui is up in front of it. I thought this would be possible with ControlSend, but I can't get it to work. BigBox's window has a class name that's complicated and changes each time (HwndWrapper[BigBox;;5a5612ea...]). The window name, however, is simple and stays the same (LauncgBox Big Box). I thought it would be possible to use this name with ControlSend:
Code: Select all
ControlSend, "LaunchBox Big Box", {Esc} down
Sleep 100
ControlSend, "LaunchBox Big Box", {Esc} up
Thanks in advance!