Thanks Bruce and entropyreduction,

Never thought I'd run a dll in PowerPro that will run other dll's this 
way. The dll manual and dllPluginTest.powerpro were both very well done.

Calculating Mouse relative xy values, can run the following from a 
PowerProNote:

; CalculatingMouseRelativeXY
DEBUG
DEBUG Click on the window to calc Mouse Relative, 3 sec pause...
WIN.Show("PowerPro Debug")
WIN.OnTop("PowerPro Debug",1)

WAIT.For(3000)

LOCAL xClient= 0
LOCAL yClient= 0
LOCAL hStructLPPOINT
hStructLPPOINT = dll.create_struct("LONG LONG", "xClient", "yClient")

IF(hStructLPPOINT=="")
QUIT

LOCAL hWnd= WIN.Handle("active")
dll.call("user32|ClientToScreen|HWND struct* UINT", ;;+
hWnd, hStructLPPOINT)

dll.release(hStructLPPOINT)

WIN.Debug("Mouse Relative "++ xmouse-xClient++ " "++ ymouse-yClient)

*EXEC WindowInfo

EVENT.Create(1,0,"*EXEC WindowInfo"++ESC(?"\r",?"\")++ ;;+
"EVENT.Destroythis", xmouse++ ;;+
"!=xmouse || mouseleft || mouseright || mousemiddle || ymouse!="++ ;;+
ymouse)

QUIT

Ted


--- In [email protected], "brucexs" wrote:
>
> >
> > Does someone know how to calculate the x y values for
> > MOUSE Relative 
> > positioning based on the xmouse, ymouse and "active" window? I want
> > to do this in a script.
> 
> 
> Try the ClientToScreen API function and the Dll plugin.  
> ClientToScreen is what MouseRelative is working with,
> 
> http://msdn.microsoft.com/library/default.asp?url=/library/en-
> us/gdi/cordspac_2tny.asp
>







------------------------ Yahoo! Groups Sponsor --------------------~--> 
Get fast access to your favorite Yahoo! Groups. Make Yahoo! your home page
http://us.click.yahoo.com/dpRU5A/wUILAA/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