Jump to content
Sign in to follow this  
azrael_11

Hook keyboard and mouse

Recommended Posts

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

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
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 by azrael_11

Share this post


Link to post
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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×