Jump to content

How to send a character independently on input locale?


Recommended Posts

I expected


to send letter 'a', but it sends a keystroke which depends on input locale, so if the current locale is not English, the result can be different.

send("{ASC 097}") always sends 'a'.

Obviously it is not practical to send text in hex format, so is there a way to send text which will be the same with any input locale?

Link to comment
Share on other sites

Actually, it's not hex, it's decimal ascii code, and i guess you could do something like this.

Dim $Sentence = "Test sentence"

For $i = 1 To StringLen($Sentence)
    $char = StringLeft($Sentence, 1)
    $Sentence = StringTrimLeft($Sentence, 1)
    Send("{ASC " & Asc($char) & "}")
Edited by FreeFry
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

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...