Jamie1414 Posted April 28, 2006 Share Posted April 28, 2006 (edited) well i am trying to hotkeyset all the difrent chars from a-z but when i press the letter it doesn't type it out aswell...well basicly i am trying to track the keystrokes of the user for my friends game to help him out but there must be something m missing, here is the code i have for everything and for the key "a"... HotKeySet("a", "a") HotKeySet("{END}", "checkcommand") global $command func a($command) $command ="a" Endfunc func checkcommand ($command) Send ($command) Endfunc while 1 Sleep(100) Wend any1 would be appriciated Edited April 28, 2006 by Jamie1414 Link to comment Share on other sites More sharing options...
Paulie Posted April 28, 2006 Share Posted April 28, 2006 Are you logging them to a file? if so that would require somthing like INIwrite or somthing like it. but i the thinkthis thing could help a little bit:http://www.autoitscript.com/forum/index.ph...=25187&hl=hoursThat might be close to what your looking for.Log it to an INI and your all set(theoretically) Link to comment Share on other sites More sharing options...
Thatsgreat2345 Posted April 28, 2006 Share Posted April 28, 2006 no thats not what hes doing hes just setting $command to a letter and then when he presses end he wants it to be sent nothing with iniwrite or filewrite or anything Link to comment Share on other sites More sharing options...
Jamie1414 Posted April 28, 2006 Author Share Posted April 28, 2006 no i am trying to see what the user enters into his her keyboard from a-z untill they hit a button like "END" and then it runs through a bunch of if statements like.... IF $command == "west" then "player moves west" or however i make the charcter go west... END if Link to comment Share on other sites More sharing options...
Thatsgreat2345 Posted April 28, 2006 Share Posted April 28, 2006 u might want to also check out _ispressed then you can do a call with paramaters which will define what $command will be 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