--- In [email protected], ÃÖâÇõ <[EMAIL PROTECTED]> wrote:
>
> --- In [email protected], "brucexs" <bswitzer@> wrote:
> >
> > --- > local sss = win.hex(win.getlanguage(cl)
> > > win.debug(sss)
> > > 
> > > return always 412.
> > > 
> > > I want to get 412 when korean mode, 409 when english mode.
> > 
> > 
> > What are you using for the caption_list cl? The result is supposed to 
> > depend on the keyboard layout associated with first window
matching cl.
> > 
> > It just calls the built-in Windows routine getkeyboardlayout and 
> > returns the local id in the lower word of this routine's result.
> >
> 
>    
>    
>   Thank you for answer, 
>   The canption_list CL was "*iexplore*"
>   BTW, I understand what you say,"routine getkeyboardlayout".

You may use the following:

----------------------------------------------------------------------
local hWnd,hIMC,dwConv,dwSent

hWnd=win.handle("active")
hIMC=dll.call("imm32|ImmGetContext|ui",hWnd)

dll.call("imm32|ImmGetConversionStatus|ui ui* ui*
b",hIMC,"dwConv","dwSent")
dll.call("imm32|ImmSetConversionStatus|ui ui ui",hIMC,dwConv ^
1,dwSent) ;; toggle
;dll.call("imm32|ImmSetConversionStatus|ui ui ui",hIMC,dwConv |
1,dwSent) ;; on
;dll.call("imm32|ImmSetConversionStatus|ui ui ui",hIMC,dwConv &
~1,dwSent) ;; off
dll.call("imm32|ImmReleaseContext|ui ui",hWnd,hIMC)
quit
----------------------------------------------------------------------

When I tested it, it worked fine with PP's own windows like notes,
however, didn't work with other applications. If it's also in your
case, then let me know.

2. As PP is not multi-threaded, I don't think you can do multiple jobs
simultaneously except for some special cases. But, I'm not a
programmer myself either, so can't tell for sure.

As a work-around in your case, you may set first command of your
buttons to Bar.HideShow("bar_name")

3. Unless the application itself supports fullscreen mode, you can't
set it to fullscreen, AFAIK. But, you can simulate it, there is a
toggleFullScreen.powerpro script shipped with the dll plugin.
Unfortunately, it won't always work because of the menu bar, when the
menu bar is not part of the client area. Maybe, you have to further
elaborate it using win.setrect() etc, which seemed not possible in my
test unfortunately. Then, you may have to remove the menu-bar which I
don't know yet is possible. If you desparately need it, I may
investigate it further when I have spare time.

Sean






------------------------ Yahoo! Groups Sponsor --------------------~--> 
Something is new at Yahoo! Groups.  Check out the enhanced email design.
http://us.click.yahoo.com/SISQkA/gOaOAA/yQLSAA/JV_rlB/TM
--------------------------------------------------------------------~-> 

Attention: PowerPro's Web site has moved: http://www.ppro.org 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/power-pro/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to