Sign in to follow this  
Followers 0
schtebo

send special character to program

10 posts in this topic

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 ü

Share this post


Link to post
Share on other sites



#2 ·  Posted (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 by Affe

[center][/center]

Share this post


Link to post
Share on other sites

#3 ·  Posted (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 =117

This 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 by Fire

[size="5"] [/size]

Share this post


Link to post
Share on other sites

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]

Share this post


Link to post
Share on other sites

#5 ·  Posted (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 by schtebo

Share this post


Link to post
Share on other sites

#6 ·  Posted (edited)

edit:

Send("hanzz" & Chr(252))

reply: hanzzü

so this works :mellow:

but sending the ctrl + ü key doesnt work i tried following

Send("{ALTDOWN}" & Chr(252) & "{ALTUP}")
Edited by schtebo

Share this post


Link to post
Share on other sites

#7 ·  Posted (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 by Affe

[center][/center]

Share this post


Link to post
Share on other sites

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?

Share this post


Link to post
Share on other sites

i tried

Send("{ALTDOWN}!{ASC 129}{ALTUP}")

or is this wrong?

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