schtebo Posted May 25, 2010 Share Posted May 25, 2010 hey community, for a program i have to send the following keys: strg + ü like in outlook you can create a new email by the following keys: str + n could you please help me to sends the special character ü Link to comment Share on other sites More sharing options...
Affe Posted May 25, 2010 Share Posted May 25, 2010 (edited) hey community, for a program i have to send the following keys: strg + ü like in outlook you can create a new email by the following keys: str + n could you please help me to sends the special character ü Look here: http://www.asciitable.com/ Go here instead: http://www.web-source.net/symbols.htm There you will find the ascii codes for many special characters. Looking through, I see that ü = 225. Chr() can be used to send ascii characters. Try the following: Send("String text here " & Chr(225)) To send: String text here ü Edited May 25, 2010 by Affe [center][/center] Link to comment Share on other sites More sharing options...
Fire Posted May 25, 2010 Share Posted May 25, 2010 (edited) By the way here is another way send unicode:Like this:create somefile.txt and write to it your unicode character in this case üThen save it with UT8 encoding.And in another step use this way:Send("String text here " & FileRead(@ScriptDir&"\somefile.txt"))2:)Autoit says: ü =ASCII =117This is not correct i think:becouse:Chr("117") Returns u not üAlso i cannot figure it out Affe`s example.İt returns for me :String text here Ѓ Edited May 25, 2010 by Fire [size="5"] [/size] Link to comment Share on other sites More sharing options...
Affe Posted May 25, 2010 Share Posted May 25, 2010 My apologies, it appears that the site I offered for tables is incorrect. Instead, go here: http://www.web-source.net/symbols.htm And use the HTML code (remove the '&#' to get the code). In this case, it's 225. So Chr(225) will return the ü. [center][/center] Link to comment Share on other sites More sharing options...
schtebo Posted May 26, 2010 Author Share Posted May 26, 2010 (edited) Hi, thank you for your reply but it doesnt work I tried: Send("{ALTDOWN}Chr(252){ALTUP}") But the Program accepts the Input not. it returns als Chr(252) C Edited May 26, 2010 by schtebo Link to comment Share on other sites More sharing options...
schtebo Posted May 26, 2010 Author Share Posted May 26, 2010 (edited) edit: Send("hanzz" & Chr(252)) reply: hanzzü so this works but sending the ctrl + ü key doesnt work i tried following Send("{ALTDOWN}" & Chr(252) & "{ALTUP}") Edited May 26, 2010 by schtebo Link to comment Share on other sites More sharing options...
Affe Posted May 26, 2010 Share Posted May 26, 2010 (edited) To send the ASCII value ü (same as pressing ALT+129 on the numeric keypad) Send("{ASC 129}") ASCII value from http://www.asciitable.com/ So you would want: Send("{ALTDOWN}{ASC 129}{ALTUP}") Haven't tested this though, could be problematic with the dual "alt" control being called. Try it and let us know. Edited May 26, 2010 by Affe [center][/center] Link to comment Share on other sites More sharing options...
schtebo Posted May 27, 2010 Author Share Posted May 27, 2010 To send the ASCII value ü (same as pressing ALT+129 on the numeric keypad) Send("{ASC 129}") ASCII value from http://www.asciitable.com/ So you would want: Send("{ALTDOWN}{ASC 129}{ALTUP}") Haven't tested this though, could be problematic with the dual "alt" control being called. Try it and let us know. thank you for your reply your tip works, but as you already mentioned the "alt" button is ignored. any idea to get the "alt" button working? Link to comment Share on other sites More sharing options...
DW1 Posted May 27, 2010 Share Posted May 27, 2010 did you already try: Send("!{ASC 129}") ? AutoIt3 Online Help Link to comment Share on other sites More sharing options...
schtebo Posted May 27, 2010 Author Share Posted May 27, 2010 i tried Send("{ALTDOWN}!{ASC 129}{ALTUP}") or is this wrong? 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