Sign in to follow this  
Followers 0
horne

How to use numpad and variable ?

5 posts in this topic

$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

Share this post


Link to post
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.

Share this post


Link to post
Share on other sites

Almost, ;]

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

Share this post


Link to post
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.

Share this post


Link to post
Share on other sites

Thank you fellas . Peace :):party:

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