Kusaywa Posted March 25, 2017 Share Posted March 25, 2017 I am creating a pretty simple script where it opens a program and a keystroke opens the window to full screen. First off, I want the program to go to full screen as soon as window is open. Second is, window (taskbar button) has no set name. The program is MusicBee and the program shows the current track playing on the taskbar button. So I can't assign a name. Also, setting a time sometimes works and sometime doesn't depending on load time. Is there any way to send keystroke as soon as window opens? Without setting a time... Thanks MusicBee.au3 Link to comment Share on other sites More sharing options...
Subz Posted March 25, 2017 Share Posted March 25, 2017 Try: Opt("WinTitleMatchMode", 2) ; Run MusicBee Run(@ProgramFilesDir & "\MusicBee\MusicBee2.exe") $hMusicBee = WinWaitActive(" - MusicBee") WinSetState($hMusicBee, "", @SW_MAXIMIZE) Link to comment Share on other sites More sharing options...
Kusaywa Posted March 27, 2017 Author Share Posted March 27, 2017 No, that doesn't work. I imagine because I have the program open to full screen, showing the windows task bar. The Hotkey "f" is what opens it to full full screen, hiding the task bar. I need Autoit to recognize the program as soon as it is open and even if it isn't the "active" window. Sometimes it is just opens, and clicking it with the mouse makes it active. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now