What I would like to achieve:
on shortcut presses:
1. run program
2. move the running program to the foreground
3. send back to tray/minimize/background
My main goal is to send it to the foreground but if it is possible, it would be awesome to toggle the app foreground/minimize. Even if it needs a new shortcut.
How-to: toggle app foreground/minimize
-
- Posts: 18
- Joined: Jul 30th, ’20, 08:24
A simple script (Type: Command) using Chrome window as an example:
Code: Select all
Run, Chrome
Sleep 3000
WinActivate, ahk_class Chrome_WidgetWin_1
Sleep 3000
WinMinimize, ahk_class Chrome_WidgetWin_1
-
- Posts: 18
- Joined: Jul 30th, ’20, 08:24
Well, that was simple indeed, thanks