I've written a script with the purpose to send F5 (update) to Process Hacker's window, but i have problems with it.
Firstly, I've made a toggle in it, but it's not fully working. I can start the script, but i can't stop it. I know it's running because i can see it in the debug window.
I think it's because it can't detect the F4 press while it's in the while loop, but I don't know what to do with it.
Secondly, it seems the F5 key is not sent properly, or PH can't receive it this way, because nothing happens. Process Hacker runs in admin mode and i've ran the script in admin mode.
Can you help me please?
Here is the script:
Code: Select all
enabled := 0
F4::
enabled := !enabled
while(enabled){
ControlSend, ahk_exe ProcessHacker.exe, F5
}