Jump to content

How Can I Find Non-English Characters' Key Code?


Adele
 Share

Recommended Posts

Hello all. Non-English characters need for my developing program with AutoIt. I've looked everywhere and haven't found. For example: "İ" and "Ş" character. How can I find key code of these characters? Thank you in advance.

For example, It writes English characters in here: msdn.microsoft.com/en-us/library/windows/desktop/dd375731(v=vs.85).aspx

Edited by sanaldosya
Link to comment
Share on other sites

charmap.exe in Unicode mode?

This wonderful site allows debugging and testing regular expressions (many flavors available). An absolute must have in your bookmarks.
Another excellent RegExp tutorial. Don't forget downloading your copy of up-to-date pcretest.exe and pcregrep.exe here
RegExp tutorial: enough to get started
PCRE v8.33 regexp documentation latest available release and currently implemented in AutoIt beta.

SQLitespeed is another feature-rich premier SQLite manager (includes import/export). Well worth a try.
SQLite Expert (freeware Personal Edition or payware Pro version) is a very useful SQLite database manager.
An excellent eBook covering almost every aspect of SQLite3: a must-read for anyone doing serious work.
SQL tutorial (covers "generic" SQL, but most of it applies to SQLite as well)
A work-in-progress SQLite3 tutorial. Don't miss other LxyzTHW pages!
SQLite official website with full documentation (may be newer than the SQLite library that comes standard with AutoIt)

Link to comment
Share on other sites

Yes, They seem associated

kodevreni_1411308281__nd4n1w5.png

but I haven't understood the relationship in between of these. For example, If I need use "İ" character's key code, what should I do?

kodevreni_1411308663__screenshot_4.png

When I've tried that, "İ" character hasn't been sent.

DllCall('user32.dll', 'int', 'keybd_event', 'int', 0x0130, 'int', 0, 'int', 0, 'ptr', 0)
DllCall('user32.dll', 'int', 'keybd_event', 'int', 0x0130, 'int', 0, 'int', 2, 'ptr', 0)
Edited by sanaldosya
Link to comment
Share on other sites

What you want to do wasn't clear.

Why not simply use Send or better yet, ControlSend?

Send("İıŞş")
 

This wonderful site allows debugging and testing regular expressions (many flavors available). An absolute must have in your bookmarks.
Another excellent RegExp tutorial. Don't forget downloading your copy of up-to-date pcretest.exe and pcregrep.exe here
RegExp tutorial: enough to get started
PCRE v8.33 regexp documentation latest available release and currently implemented in AutoIt beta.

SQLitespeed is another feature-rich premier SQLite manager (includes import/export). Well worth a try.
SQLite Expert (freeware Personal Edition or payware Pro version) is a very useful SQLite database manager.
An excellent eBook covering almost every aspect of SQLite3: a must-read for anyone doing serious work.
SQL tutorial (covers "generic" SQL, but most of it applies to SQLite as well)
A work-in-progress SQLite3 tutorial. Don't miss other LxyzTHW pages!
SQLite official website with full documentation (may be newer than the SQLite library that comes standard with AutoIt)

Link to comment
Share on other sites

Convert 0X0130 to decimal ==> 304 and then hold down LEFT ALT Key and enter 0304 on the numeric keypad. Then release the ALT key.

What Keyboard are you using?

Turkish Q keyboard.

What you want to do wasn't clear.

Why not simply use Send or better yet, ControlSend?

Send("İıŞş")

 

 

I want to add Turkish characters to BlockInputEx UDF. '?do=embed' frameborder='0' data-embedContent>>

This UDF runs with key codes. You can look to _KeyCodes.au3 file.

Link to comment
Share on other sites

I'm sorry but I don't know C++.

 

Here it is:

#include <WinAPISys.au3>
#include <WinAPILocale.au3>

$char = "8"
Global Const $User32 = DllOpen("User32.dll")
$dwhkl = _WinAPI_LoadKeyboardLayout(_WinAPI_GetSystemDefaultLCID())
$result = Hex(_User32_VkKeyScanEx(StringToBinary($char, 4), $dwhkl))
MsgBox(0,"KeyCode",$result)
DllClose($User32)

func _User32_VkKeyScanEx($ich, $idwhkl)
    local $vRetVal = DllCall($User32,"short","VkKeyScanExW","short",$ich,"hwnd",$idwhkl)
    return _WinAPI_LoWord($vRetVal[0])
EndFunc
Edited by j0kky
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...