Sending key combination to PotPlayer

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
StanEgo
Posts: 1
Joined: 18 Sep 2021, 06:54

Sending key combination to PotPlayer

Post by StanEgo » 18 Sep 2021, 07:04

Hi all. I'm new to AHK and stuck with a task that looks simple. Have tried many solutions posted here, but without luck. I need to send Shift+Del combination to the PotPlayer application.

Sending simple command like below works fine, but I don't know an ID of the action mentioned above:

Code: Select all

SendMessage,0x0111,20000,,,ahk_class PotPlayer64
Tried to send keys via SendMessage, but nothing happens:

Code: Select all

SendMessage,0x0100,0xA0,,,ahk_class PotPlayer64 ; Shift key down
SendMessage,0x0100,0x2E,,,ahk_class PotPlayer64 ; Delete key down
SendMessage,0x0101,0x2E,,,ahk_class PotPlayer64 ; Delete key up
SendMessage,0x0101,0xA0,,,ahk_class PotPlayer64 ; Shift key up
And ControlSend also without any results:

Code: Select all

ControlSend, , {Shift}{Del}, ahk_class PotPlayer64
ControlSend, , {Shift down}{Del down}{Del up}{Shift up}, ahk_class PotPlayer64

User avatar
mikeyww
Posts: 26601
Joined: 09 Sep 2014, 18:38

Re: Sending key combination to PotPlayer

Post by mikeyww » 25 Sep 2021, 08:31

Code: Select all

playlist = Afx:00007FFB0E810000:b:0000000000010003:0000000000900011:00000000000000005

#IfWinExist ahk_class PotPlayer64
F3:: ; Recycle selected files
WinActive("A")
ControlFocus, %playlist%,         % potPlayer := "ahk_class PotPlayer64"
ControlSend , %playlist%, +{Del}, % potPlayer
Sleep, 100
WinActivate
SoundBeep, 1500
Return
#IfWinExist

Post Reply

Return to “Ask for Help (v1)”