I have this following script:
Code: Select all
NumpadEnd:: Run, "C:\Program Files\qBittorrent\qbittorrent.exe" Sleep, 500 WinShow Sleep, 500 Send ^+P Return NumpadDown:: Run, "C:\Program Files\qBittorrent\qbittorrent.exe" Sleep, 500 WinShow Sleep, 500 Send ^+S Return
I want the script to find that window (qbittorrent) bring it to the front (since the key combination won't work unless qbittorrent is active) and execute CTRL+SHIFT+P or CTRL+SHIFT+S. And after that optionally hide the window again if it was hidden. However I am not able to show the window let alone hide it.
I am having a little of trouble since the script is working when the window is minimized but not when the window is in the taskbar (you know this small icon to the right next to the clock).
Appreciate any help, thank you!