Jump to content

Function to intecept key inputs


InTheSky
 Share

Go to solution Solved by AdmiralAlkex,

Recommended Posts

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

Link to comment
Share on other sites

  • Solution

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

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...