Sign in to follow this  
Followers 0
Jamie1414

Hotkeyset Problems

5 posts in this topic

#1 ·  Posted (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 :think:

Edited by Jamie1414

Share this post


Link to post
Share on other sites



Are you logging them to a file? if so that would require somthing like INIwrite or somthing like it. but i the think

this thing could help a little bit:

http://www.autoitscript.com/forum/index.ph...=25187&hl=hours

That might be close to what your looking for.

Log it to an INI and your all set(theoretically) :think:

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

u might want to also check out _ispressed then you can do a call with paramaters which will define what $command will be

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