I am trying to write a code to access through a Tab panel of a windows GUI, and for that I want to make a DllCall to user32.dll in my python code, I am using Pywin32 for accessing autoit's functions and I think I am able to call DllCall and this is how I am doing it.
TabID = autoit.DllCall("user32.dll", "int", "GetDlgCtrlID", "hwnd", hTab)
TabID = autoit.TabID[0]
but everytime I run this code, it gives me the following error -:
raise AttributeError("%s.%s" % (self._username_, attr))
AttributeError: AutoItX3.Control.DllCall
the entire code looks like the following:
import time
import LogIt
import datetime
import win32con
import win32gui
import win32com.client
# this makes use of the AutoITX.dll that we registered with the Windows OS
autoit = win32com.client.Dispatch("AutoItX3.Control")
autoit.DllCall("user32.dll", "int", "GetDlgCtrlID")
can somebody help me figure this error out, also there is not much that I found on the web.