azrael_11 0 Posted December 3, 2018 Hi Try to find any good tutorial or sample code how to make a global hook for keyboard and mouse. Thank you. Share this post Link to post
KodeZwerg 54 Posted December 3, 2018 What do you mean by this? Hook like a logger or something that activates by proper combination of hotkey? Wich Platforms should be supported? Wich Delphi you do use? Share this post Link to post
azrael_11 0 Posted December 3, 2018 (edited) 1 hour ago, KodeZwerg said: What do you mean by this? Hook like a logger or something that activates by proper combination of hotkey? Wich Platforms should be supported? Wich Delphi you do use? I forget a lot so let me begin Not a logger i try to make something like this. When a user hit a key to another program i want to know what key is and make my procedure. Example : When run a game emulator like MAME when the user hit "t" in the keyboard when plays in mame i want to exit mame not execute the mame command that have in "t" key. So i can make a map of keys like arrow left to use it the joystick left. i hope i give you understand about that. The platforms i want to go is Win64, win32, MacOsx ... for now. I use the Delphi 10.2.3 Tokyo . FMX Platform. Thank you. Edited December 3, 2018 by azrael_11 Share this post Link to post
KodeZwerg 54 Posted December 3, 2018 3 hours ago, azrael_11 said: Not a logger i try to make something like this. When a user hit a key to another program i want to know what key is and make my procedure. In my world this exactly is a logger. Sorry i cant help with such due possible missuse. My advice would be, try find out how "mame" save that information to read-it-back for your purposes. Share this post Link to post
DelphiRio 4 Posted December 4, 2018 15 hours ago, azrael_11 said: Hi Try to find any good tutorial or sample code how to make a global hook for keyboard and mouse. Thank you. Try this: https://github.com/JensBorrisholt/Hooks Share this post Link to post
azrael_11 0 Posted December 4, 2018 4 hours ago, DelphiRio said: Try this: https://github.com/JensBorrisholt/Hooks Thank you. I'll try this. Share this post Link to post