--- In [email protected], "entropyreduction" <[EMAIL PROTECTED]> wrote:
> --- In [email protected], "swzoh" <[EMAIL PROTECTED]> wrote:
> 
> 
> > Have you considered another plugin something like
> > 'DllCall' which can call API functions in DLL? I heard that AutoIt3
> > supports it, but seems to be missing in AutoItX3.dll. 
> 
> Thought more about it.  Nontrivial.  Problem is C/C++ code normally
> has to know (at compile time) the "signature" of the dll function,
> i.e. it's return type, types and number of parameters.  COM has an
> elaborate mechanism for converting from an untyped environment (like a
> scripting language) to the typed requirements of a COM method.  I'll
> sniff around and see if there's a way to to that for a generalised dll
> call, but off top of my head unaware of it....

I think the user should specify the signature himself, as Bruce
pointed out in other post. What I was really concerned about was the
max limit of the number of arguments in PP's plugin (is it 8 or 9,
btw) that I realized with com.method_typed().

; AutoIt syntax
DllCall("user32.dll","int","SendMessage","hwnd",hwnd,"int",wparam,"int",
lparam)

; AutoHotkey syntax
DllCall("[user32.dll\]SendMessage","hwnd",hwnd,"int",wparam,"int",lparam[,"Cdecl
ReturnType"])

If following the too strict syntax of AutoIt and the max number is 8,
not 9, then even can't use SendMessage call from plugin. Even with the
flexible syntax of AutoHotkey, the number of parameters can be 4 at
best when the max number is 9.

; Bruce's suggestion
Win.DllCall("dllfilename.routine.signature",arg1, ...,arg7)

Although I don't like using . as the delimiter personally, it looks
promising.

Sean





------------------------ Yahoo! Groups Sponsor --------------------~--> 
Fair play? Video games influencing politics. Click and talk back!
http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/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