bbigras / go-autoit

A wrapper of AutoIt (AutoItX) for the Go Programming Language.
GNU General Public License v3.0
17 stars 1 forks source link

Any way we can access _IEAttach from Go bindings ? #1

Open abourget opened 8 years ago

abourget commented 8 years ago

I was wondering if we could expose _IEAttach from those bindings.. are they shown somewhere ?

What was your experience with AutoIt + Go ? do you think we can write complete and successful bindings ?

bbigras commented 8 years ago

I was wondering if we could expose _IEAttach from those bindings.. are they shown somewhere ?

It seems we can't and I didn't see anything about that in AutoItX3_DLL.h.

Basically AutoItX only gives you option to the GUI automation/control capabilities of AutoIt. You don't get the GUI creation features nor the 3rd party libraries for the additional functional support (IE browser, file system, networking, etc.)

source: https://www.autoitscript.com/forum/topic/166005-what-are-the-limitations-of-autoitx3-vs-autoit/

The same person also linked au3automation but I don't know if Go supports COM. Maybe with go-ole.

I use AutoIt + Go to automate an application with mouse clicks, control clicks, PixelGetColor and PixelChecksum It works fairly well if the application doesn't hang and I try to check the pixels while everything is still white). I track the process CPU usage for that but sometimes the application is ready and the CPU takes a couple of seconds to reach 0% so that waste couple of seconds.

do you think we can write complete and successful bindings ?

What do you mean by that? I can write the bindings for every AutoItX3_DLL.h functions and add better error handling (by using AU3_error() and returning an error instead of an int).