Jump to content

How to use numpad and variable ?


Recommended Posts

$a1 = InputBox("1-10", "cifra", "1-10", "", _
    -1, -1, 0, 0)
$b1 = InputBox("a-z", "keys", "a-z", "", _
    -1, -1, 0, 0)
HotKeySet ( $b1 , "Mysend" )

Func Mysend()

send ("{NUMPAD$a1}")


EndFunc


    While 1
    Sleep(100)
WEnd

send ("{NUMPAD$a1}") - not working print N

Help

Link to comment
Share on other sites

$a1 = InputBox("1-10", "cifra", "1-10", "", _
    -1, -1, 0, 0)
$b1 = InputBox("a-z", "keys", "a-z", "", _
    -1, -1, 0, 0)
HotKeySet ( $b1 , "Mysend" )

Func Mysend()

send ("{NUMPAD$a1}")


EndFunc


    While 1
    Sleep(100)
WEnd

send ("{NUMPAD$a1}") - not working print N

Help

you need to have it like this:

send ("{NUMPAD & $a1}")

You always need the '&' when you join 2 strings, variables, ect...

Dating a girl is just like writing software. Everything's going to work just fine in the testing lab (dating), but as soon as you have contract with a customer (marriage), then your program (life) is going to be facing new situations you never expected. You'll be forced to patch the code (admit you're wrong) and then the code (wife) will just end up all bloated and unmaintainable in the end.

Link to comment
Share on other sites

Almost, ;]

$a1 = '1'
send ("{NUMPAD" & $a1 & "}")

eh close enough lol....thats what i get for typing fast and not paying attention huh?

Dating a girl is just like writing software. Everything's going to work just fine in the testing lab (dating), but as soon as you have contract with a customer (marriage), then your program (life) is going to be facing new situations you never expected. You'll be forced to patch the code (admit you're wrong) and then the code (wife) will just end up all bloated and unmaintainable in the end.

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...