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

Popular posts from this blog

Cursor error with postgresql, pgpool and php -

c# - how to write client side events functions for the combobox items -

ssh client with paramiko (python) -