I am trying to use the ControlSend command to pause/unpause the torrents from a script, when the Qbittorrent window is minimized.
The hotkeys are Ctrl+Shift+P for pause and Ctrl+Shift+S for unpause
Unfortunately the command doesnt work at all, even if the QBT window is active:
Code: Select all
ControlSend,, {Ctrl down}{Shift down}p{Ctrl up}{Shift up}, qBittorrent ahk_class Qt5152QWindowIcon ahk_exe qbittorrent.exe
Code: Select all
Send {Ctrl down}{Shift down}p{Ctrl up}{Shift up}
What is the problem and how can I fix it?
if I cant use the ControlSend command, is there any other way to pause the torrents? I tried suspending the process, but it is not reliable, because sometimes i cant resume the process and I am forced to kill it.
I will ask in the QBT reddit too, but for now i am trying to fix this with ahk.