Dryden Posted September 20, 2007 Share Posted September 20, 2007 (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 September 20, 2007 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 More sharing options...
Dryden Posted September 20, 2007 Author Share Posted September 20, 2007 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 More sharing options...
PsaltyDS Posted September 20, 2007 Share Posted September 20, 2007 Try that as: send("{ASC " & $tecla & "}") Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law Link to comment Share on other sites More sharing options...
Dryden Posted September 20, 2007 Author Share Posted September 20, 2007 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. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now