Shafayat Posted February 14, 2010 Share Posted February 14, 2010 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] Link to comment Share on other sites More sharing options...
Developers Jos Posted February 14, 2010 Developers Share Posted February 14, 2010 Doesn't matter what you call it but you do want a script that registers keypresses thus a keylogger. SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
Shafayat Posted February 15, 2010 Author Share Posted February 15, 2010 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] Link to comment Share on other sites More sharing options...
JohnOne Posted February 15, 2010 Share Posted February 15, 2010 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. Link to comment Share on other sites More sharing options...
Shafayat Posted February 16, 2010 Author Share Posted February 16, 2010 (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 February 16, 2010 by Shafayat [Not using this account any more. Using "iShafayet" instead] Link to comment Share on other sites More sharing options...
evilelf Posted February 16, 2010 Share Posted February 16, 2010 Open your AutoIt Help and search IsPressed() Good luck with whatever your trying to make, and hope to see that code. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now