VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

Change the keyboard layout on the fly without the pre-defined SHIFT+ALT keys.

Taklikar AH  (3 Submissions)   Windows System Services   VB 6.0   Unknown Difficulty   Tue 25th December 2001   Mon 8th February 2021

Change the keyboard layout on the fly without the pre-defined SHIFT+ALT keys.

API Declarations


Const KL_NAMELENGTH As Long = 9 'length of the keyboardbuffer
Const KLF_ACTIVATE As Long = &H1 'activate the layout

'the language constants
Const LANG_NL_STD As String = "00000413"
Public Const LANG_EN_US As String = "00000409" 'English
Public Const LANG_AR As String = "00000401" 'Arabic
Const LANG_DU_STD As String = "00000407"
Const LANG_FR_STD As String = "0000040C"

'api's to adjust the keyboardlayout
Private Declare Function GetKeyboardLayoutName Lib "user32" Alias "GetKeyboardLayoutNameA" (ByVal pwszKLID As String) As Long
Private Declare Function LoadKeyboardLayout Lib "user32" Alias "LoadKeyboardLayoutA" (ByVal pwszKLID As String, ByVal Flags As Long) As Long
'============

Rate Change the keyboard layout on the fly without the pre-defined SHIFT+ALT keys. (2(2 Vote))
Change the keyboard layout on the fly without the pre-defined SHIFT+ALT keys..bas

Change the keyboard layout on the fly without the pre-defined SHIFT+ALT keys. Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters