Welcome Guest! To enable all features please Login or Register.



Go to last post Go to first unread
#1 Posted : Saturday, January 12, 2019 1:29:09 AM(UTC)

Rank: Administration


Groups: Translators, Members, Administrators
Joined: 1/11/2018(UTC)
Posts: 982
United States
Location: Tampa, FL

Thanks: 22 times
Was thanked: 284 time(s) in 247 post(s)
Simple plug-in to get the keyboard layout value (integer), e.g. 1033 is US English

Download the file into your\Plug-Ins folder and Reload from the tray icon.

NOTE: Windows may mark the DLL as unsafe or blocked. Right click the DLL and select Properties, there will be an option to unblock it.

Example script:

var kb = new Keyboard();
sp.MessageBox(kb.GetCurrentKeyboardLayout(), "Keyboard Layout");

Keyboard Layout Values

Note the values listed are in hex, but this function returns an int, so US English = 0x00000409 (hex) = 1033 (int)

Edited by user Saturday, February 16, 2019 3:23:06 AM(UTC)  | Reason: Added note about Windows blocking the DLL after download

thanks 1 user thanked Rob for this useful post.
Ss2ng on 1/14/2019(UTC)
Users browsing this topic
Similar Topics
"Alt" & keyboard layout (Bug Reports)
by NikosColev 2/14/2020 9:50:40 PM(UTC)
does not working on another keyboard layout (General Discussion)
by Mans 7/1/2019 4:10:46 PM(UTC)
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.