Sign in to follow this  
Followers 0
Dryden

Sending an ascii variable with send("{ASC }")

4 posts in this topic

#1 ·  Posted (edited)

so this is the deal: I'm tring to make a send to send a key ins ascii. The key cannot be send in the normal format cos it is already assigned as an hotkey.

This is just a little bit of code, but in this bit the $tecla variable as an "a" on it and if i do a Send($tecla) the script will flip cos "a" is an hotkey. I tried to use send("{ASC 97}") and it works, but the problem is that nomater what $tecla is it always outputs an "a". Finnaly I tried converting $tecla to ASCII and sendit it as an ascci code, the problem is it's just not working:

MsgBox(0, "aaa:", $tecla)  ;<- In here the output is an a
    $tecla=Asc($tecla)
    MsgBox(0, "aaa:", $tecla);<- In here the output is 97
    send("{ASC ($tecla)}")
    MsgBox(0, "aaa:", $tecla);<- In here the output is 97

any ideas??

Edited by Dryden

"Build a man a fire, and he'll be warm for a day. Set a man on fire, and he'll be warm for the rest of his life." - Terry Pratchett.

Share this post


Link to post
Share on other sites



anyone???

either sending it using send("{ASC }") or if possible disabling the hotkey and reenabling it in the end of the function.


"Build a man a fire, and he'll be warm for a day. Set a man on fire, and he'll be warm for the rest of his life." - Terry Pratchett.

Share this post


Link to post
Share on other sites

so simple... :) thx


"Build a man a fire, and he'll be warm for a day. Set a man on fire, and he'll be warm for the rest of his life." - Terry Pratchett.

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