This is the only way I can send key strokes to PotPlayer window (I tried ControlSend, and it didn't work).
I can send single key strokes easily (e.g. space key like shown below):
Code: Select all
SendMessage, 0x0400, 0x5010,0x20,, ahk_class PotPlayer64 ; 0x20: VK_SPACE
This doesn't work (It seems because I send keys separately):
Code: Select all
SendMessage, 0x0400, 0x5010,0x11,, ahk_class PotPlayer64 ; 0x11: VK_CONTROL
SendMessage, 0x0400, 0x5010,0x43,, ahk_class PotPlayer64 ; 0x43: C key
These are helper reference that helped me:
Virtual-Key CodesQuote from here.Code: Select all
; POT_SEND_VIRTUAL_KEY 0x5010 // Virtual Key(VK_UP, VK_DOWN....)