Jump to content

Hotkeyset Problems


Recommended Posts

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
Link to comment
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
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...