Sign in to follow this  
Followers 0
Shafayat

Help about keypress

6 posts in this topic

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



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

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

#5 ·  Posted (edited)

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

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