Quantcast
Channel: VBForums
Viewing all articles
Browse latest Browse all 15578

Auto combined keystrokes command to change keyboard layout from one to another

$
0
0
I'm developing an MS Access database in which user have to type data in multiple language and they will use third party software to type in unicode. So they have to continuously change keyboard layout after few time for typing in specific language. Some of their software need to press Ctrl+Alt+X and others need to press F12. Changing keyboard layout every-time is boring. Is there any way so that keyboard layout will change automatically on focus in a textbox?

Code:

Private Sub NameArabic_GotFocus()
If keyboard layout software name is X then
  Press Ctrl+Alt+X 'so that the keyboard layout changed from English to Unicode
Else 'keyboard layout software name is Y then
  Press F12 'so that the keyboard layout changed from English to Unicode
End Sub

Private Sub NameEnglish_GotFocus()
If keyboard layout software name is X then
  Press Ctrl+Alt+X 'so that the keyboard layout changed from Unicode to English
Else 'keyboard layout software name is Y then
  Press F12 'so that the keyboard layout changed from Unicode to English
End Sub

Advanced thanks for your help.

Viewing all articles
Browse latest Browse all 15578

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>