Rank: Administration
Groups: Translators, Members, Administrators Joined: 1/11/2018(UTC) Posts: 1,349 Location: Tampa, FL Thanks: 28 times Was thanked: 416 time(s) in 354 post(s)
|
Simple plug-in to get the keyboard layout value (integer), e.g. 1033 is US English https://www.strokesplus.net/files/KeyboardPlugin.dllDownload the file into your StrokesPlus.net\Plug-Ins folder and Reload S+.net 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 ValuesNote 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
|
1 user thanked Rob for this useful post.
|
|
|
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.
Important Information:
The StrokesPlus.net Forum uses cookies. By continuing to browse this site, you are agreeing to our use of cookies.
More Details
Close