I want to control Potplayer when it's in the background. I tried creating hotkeys that send keystrokes, but that didn't work.
This link suggested using SendMessage.
https://autohotkey.com/board/topic/71027-daum-potplayer-can-ahk-control-volume-and-mute/
This link gives me the messages and parameters for SendMessage.
https://www.autohotkey.com/boards/viewtopic.php?t=45385
The hotkeys work most of the time but occasionally they stop working until I select the PotPlayer window and the script will work for a while before failing again. ErrorLevel is 0 after executing SendMessage.
How can I get it the script to work reliably?
Controlling Potplayer
Re: Controlling Potplayer
Others may be able to help you if you provide your script.
Re: Controlling Potplayer
Here is the script. Any suggestions or tips would be very much appreciated.
Code: Select all
#NoEnv
#Persistent
#SingleInstance force
NumpadAdd::
SendMessage,0x0111,10014,,,ahk_exe PotPlayerMini64.exe
return
Who is online
Users browsing this forum: hemps, Londolozi, TheCrether and 107 guests