using autoit and ctypes

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Rob McMonigal

    using autoit and ctypes

    Hi,

    I am using Autoit to do a little gui scripting. I am currently using the
    ActiveX version with the win32com package. I first tried to use the dll
    version with the ctypes library. The calls work with the dll version, but I
    always
    get the following error:

    Traceback (most recent call last):
    File "test.py", line 8, in ?
    autoit.AUTOIT_W inActivate("Inb ox - Microsoft Outlook" , "")
    ValueError: Procedure called with not enough arguments (8 bytes missing) or
    wrong calling convention

    Code is as follows
    --------------------------
    from ctypes import *

    autoit = cdll.LoadLibrar y("c:\\autoit\\ autoitdll.dll")
    autoit.AUTOIT_W inActivate("Inb ox - Microsoft Outlook" , "")
    --------------------------

    Can someone tell me why I'm getting that error?

    Thanks,

    Rob



Working...