Dear Alan!

It's hard to work with keyboard with 2 layouts:
when you'd like to use Alt+letter shortcut it doesn't work -
nonenglish layout prevents... So you switch to english and start 
again...

Can you translate into PPro language this au3-string:
DllCall("user32.dll", "ptr", "SendMessage", "hwnd", $hWnd, 
"int", $WM_INPUTLANGCHANGEREQUEST, "int", 1, "int", 
$ret[0])
from au3-code
-------------- start Layout.au3 --------------------
Run("notepad.exe")
Sleep(500)
; setting Advanced mode
Opt("WinTitleMatchMode",4)
$hWnd = WinGetHandle("classname=Notepad")
_SetKeyboardLayout("00000409", $hWnd)

Func _SetKeyboardLayout($sLayoutID, $hWnd)
Local $WM_INPUTLANGCHANGEREQUEST = 0x50
Local $ret = DllCall("user32.dll", "long", 
"LoadKeyboardLayout", "str", $sLayoutID, "int", 0)
DllCall("user32.dll", "ptr", "SendMessage", "hwnd", $hWnd, 
"int", $WM_INPUTLANGCHANGEREQUEST, "int", 1, "int", 
$ret[0])
EndFunc
Exit
--------------- end Layout.au3 ---------------------
I've tried to read dll-plugin's help but it's too complicated
(I guess I should know C language to get what does it say 
about)

The au3 script sets english keyboard layout for Notepad 
forcibly
It's easy on the base of this to construct PPro script that does 
the same
for selected windows.

Reply via email to