Jump to content

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


Dryden
 Share

Recommended Posts

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.

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

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