winapi - It is posible to create a hotkey in a Delphi console application? -
i tried:
registerhotkey(getconsolewindow(),$29a,mod_alt,'a')
but didn't work.
do have idea?
you need message loop receive wmhotkey messages. have message loop in console application?
edit:
try capital 'a' instead of 'a'. because last parameter of registerhotkey
wants virtual-key code. , virtual-key code of letter 0x41 = 'a'.
Comments
Post a Comment