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

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

exception - Python, pyPdf OCR error: pyPdf.utils.PdfReadError: EOF marker not found -