orbs Posted February 16, 2014 Posted February 16, 2014 hello all RTL & non-RTL typers, background: as you must have noticed, the keyboard combination Alt + Shift is often used to switch input language. for RTL (right-to-left) languages, the keyboard combination Right Ctrl + Shift is commonly used to switch writing direction to RTL, and Left Ctrl + Shift to switch back to LTR. note: this is not the same as paragraph right-align / left-align! issue: i want to switch language and direction for the active window, and i found Send() to be somewhat unreliable. solution (so far): i managed to change the language by sending WM_INPUTLANGCHANGEREQUEST with lParam being the language code. that works perfectly. ref: http://msdn.microsoft.com/en-us/library/windows/desktop/ms632630(v=vs.85).aspx http://msdn.microsoft.com/en-us/goglobal/bb964664.aspx problem: i can't find the relevant WM for changing the direction. thanks to anyone who can provide any hint on that. Signature - my forum contributions: Spoiler UDF: LFN - support for long file names (over 260 characters) InputImpose - impose valid characters in an input control TimeConvert - convert UTC to/from local time and/or reformat the string representation AMF - accept multiple files from Windows Explorer context menu DateDuration - literal description of the difference between given dates Apps: Touch - set the "modified" timestamp of a file to current time Show For Files - tray menu to show/hide files extensions, hidden & system files, and selection checkboxes SPDiff - Single-Pane Text Diff
Solution JohnOne Posted February 16, 2014 Solution Posted February 16, 2014 wparam? INPUTLANGCHANGE_BACKWARD 0x0004 INPUTLANGCHANGE_FORWARD 0x0002 BrewManNH 1 AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans.
orbs Posted February 16, 2014 Author Posted February 16, 2014 wparam? INPUTLANGCHANGE_BACKWARD 0x0004 INPUTLANGCHANGE_FORWARD 0x0002 yet again my premonitions misguide me! i was sure these only switch the language to whatever is next (or previous) on the list of languages. you are correct, that is exactly what i was looking for, thanks! Signature - my forum contributions: Spoiler UDF: LFN - support for long file names (over 260 characters) InputImpose - impose valid characters in an input control TimeConvert - convert UTC to/from local time and/or reformat the string representation AMF - accept multiple files from Windows Explorer context menu DateDuration - literal description of the difference between given dates Apps: Touch - set the "modified" timestamp of a file to current time Show For Files - tray menu to show/hide files extensions, hidden & system files, and selection checkboxes SPDiff - Single-Pane Text Diff
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now