--- In [email protected], "sungkwon.jung" <sungkwon.j...@...> wrote:
> > --- In [email protected], "Sheri" <sherip99@> wrote:
> > >
> > > Try setting some hotkeys in the Language Bar using Options,
> > > Settings, Key Settings, (Select desired action), Change Key
> > > Settings. Then (for example) you can use Powerpro *Keys to send
> > > the key sequence. For example, you could set German to Left Alt,
> > > Shift, 1 and Korean Left Alt, Shift, 2. Then on a Powerpro bar,
> > > you could have buttons:
> > >
> >
> > command: win.keys("{sinp}%+1")
> >
> > and
> >
> > command: win.keys(""{sinp}%+1")
> >
> > I do not really use it, just recently got curious and decided to try adding
> > optional East Asian languages and language bar.
> >
> > East Asian language support in XP, once added, is easily removed if anyone
> > was wondering.
> >
> > Regards,
> > Sheri
> >
>
> hi Sheri,
>
> now is perfect for all!
>
> thank you very much!!
>
> so hier is the summery for others:
>
> ;;;;;;;;;to korean;;;;;;;;;;;;;;
> local hWIme,dwConv
> ;change to korean locale first
> ;left alt + shift + 2 is for me the korean locale key combination
> win.keys("{sinp} %+2")
>
> hWIme=dll.call("imm32|ImmGetDefaultIMEWnd|ui",Win.Handle("active"))
> ; WM_IME_CONTROL is 0x283
> dwConv=Win.SendMessage(hWIme,0x283,1,0)
>
> ; dwConv ^ 1 : toggle between Korean & English
> ; dwConv | 1 : turn Korean Mode on
> ; dwConv & ~1 : turn Korean off, i.e., English mode on
> Win.SendMessage(hWIme,0x283,2,dwConv | 1)
>
> quit
>
> ;;;;;;;;;to german;;;;;;;;;;;;;;
> ;change to german locale
> ;left alt + shift + 1 is for me the german locale key combination
> win.keys("{sinp} %+1")
>
>
> ;;;;;;;;;;;;;
>
Here's another way.
; -----------------------------------
;;;; to Korean
Local Dll_Status
Local hWnd = Win.Handle("Active")
; Local WM_INPUTLANGCHANGEREQUEST = 0x50
; Local INPUTLANGCHANGE_SYSCHARSET = 0x1
Win.SendMessage(hWnd, 0x50, 0x1, 0x0412)
; Local WM_IME_CONTROL = 0x283
; Local IMC_SETCONVERSIONMODE = 0x2
Local hIME = Dll.Call("imm32|ImmGetDefaultIMEWnd|ui", hWnd)
Win.SendMessage(hIME, 0x283, 0x2, 1)
;;;; to German (Standard)
Win.SendMessage(hWnd, 0x50, 0x1, 0x0407)
; -----------------------------------