Sign in to follow this  
Followers 0
InTheSky

Function to intecept key inputs

4 posts in this topic

Hello all,

I am very new to the entire autoit language but I already managed to get lot of things to work, thanks to this forum.

But now I stand in front of a topic to which I did not found any answers that are sexy too.

So I want to allow the user to change the hotkeys by itself.

That should be possible via a separate form that allows the user to insert a key or key combinations and assign it to a pre defined function.

In general it should feel like the function all the games have.

And here is where I stuck, I don't want to work with _ispressed and list all possible keys in HEX within my code.

Is there any function to detect which key had been pressed, and write in a $var?

Br and thanks

InTheSky

Share this post


Link to post
Share on other sites

#2 ·  Posted (edited)

Edit: I missed that you were new. Hi and welcome to the forum!

Like hotkeys?

You could try these:

>GUIHotkey.au3

>GuiHotKey UDF

or search the forum for others

Edited by AdmiralAlkex

Share this post


Link to post
Share on other sites

Well without opening a same thread as the OP i'm actually searching for the same option however I want it to be functional with the mouse as well.

I have got it working with the guihotkey udf, however with the mousebuttons included i'd be more happy..

I've found an dll to implement this, however adding multiple files is not the way i'd like it to go.

 

Sorry if i'm hijacking the thread like this, can make a new one if preferred

Share this post


Link to post
Share on other sites

many thanks that had solved all my questions

Share this post


Link to post
Share on other sites

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  
Followers 0