Jump to content
Sign in to follow this  
Shafayat

Help about keypress

Recommended Posts

Shafayat

I am trying to create a software to simulate mouse click or movements with keyboard. So I want to make a system for configuring the keys (as in most professional games).

But it is too tedious to set all the hotkeyset() manually. I heard there is a way to get the key pressed without setting individual entries.

So, help me.

Regards

Shafayat


[Not using this account any more. Using "iShafayet" instead]

Share this post


Link to post
Share on other sites
Jos

Doesn't matter what you call it but you do want a script that registers keypresses thus a keylogger.


Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites
Shafayat

Yeah. But it does NOT work in background and logs every keypress.

For example..

First I have this ini file:

[GLOBAL]

UP=W

DOWN=S

LEFT=A

RIGHT=D

Now, if the user runs the key changing exe, it will ask the user to press any one key (NOTE THAT ONLY ONE) that he likes to enter for UP (instead of W) and the like....

If I assume the user pressed E then the ini would be like:

[GLOBAL]

UP=E

DOWN=S

LEFT=A

RIGHT=D

How come this is keylogging????

I still need help.


[Not using this account any more. Using "iShafayet" instead]

Share this post


Link to post
Share on other sites
JohnOne

Just an observation.

Assigning hotkeys is as quick (if not quicker) and easier for your legitimate purpose, as any other method, and you could have done it 100x over in the time between your posts.

Only trying to save you some time, as no-one here is going to help you log keys.

Good luck with your game.


AutoIt Absolute Beginners    Require a serial    Pause Script    Video Tutorials by Morthawt   ipify 

Monkey's are, like, natures humans.

Share this post


Link to post
Share on other sites
Shafayat

Good point. As you have guessed, I am extremely lazy. But this leaves me no choice, does it? I have to do it manually.

Edited by Shafayat

[Not using this account any more. Using "iShafayet" instead]

Share this post


Link to post
Share on other sites
evilelf

Open your AutoIt Help and search IsPressed()

Good luck with whatever your trying to make,

and hope to see that code.


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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.