using autoit and ctypes

R

Rob McMonigal

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_WinActivate("Inbox - 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.LoadLibrary("c:\\autoit\\autoitdll.dll")
autoit.AUTOIT_WinActivate("Inbox - Microsoft Outlook" , "")
--------------------------

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

Thanks,

Rob
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,581
Members
45,057
Latest member
KetoBeezACVGummies

Latest Threads

Top