How to use autoit inside Qt
-
Hi
i am new to Qt.
I want to know how we can use autoit inside Qt? -
Hi and welcome
Use inside in what way?
AutoIT is a language and there is no Qt bindings so if you mean if you can
run autoit scripts that use Qt objects, the answer is no.You can easy start and control Autoit scripts from Qt application but
its not inside. -
i mean i can use Autoit Function inside qt
It's a c++ framwork so there should be any way
like this post hereor like this
https://automation-home.blogspot.com/2015/06/java-and-autoit-automating-calculator-application.html -
Well it says
"AutoItX4Java uses JACOB to access AutoItX through COM"So its a binding that calls Autoit via its com interface.
You can do the same in c++.
Qt has classes for COM
http://doc.qt.io/qt-5/activeqt-container.html
http://doc.qt.io/qt-5/activeqt-index.htmlCan I ask why you want to mix it with Qt ?
AutoIT has GUI controls that are well integrated. -
I want to use qt interface.
And Autoit just for automation
We can do automation with qt ? is there any way ?
I mean for example we want to Install a software
We can automate that installation ? -
The activeX COM object allows that.
I have never used it but seen samples in C#
Thats allow for all features that running AutoIT normally offers.But mind you, the feedback might be more difficult as AutoIt code will not likely be able to
address Qt widgets directly."We can automate that installation ?"
Do you mean by starting the installer and press buttons as the user would? -
Do you mean by starting the installer and press buttons as the user would?
Yes
-
@thegr8awais
Yes, that works as just using AutoIT.
But do u really need tight integration ?
You could just compile the scripts to .exe and
use QProcess to execute them with the parameters you want/need. -
Thank you very much for your time.
Just last question
How to automate software with QT as AutoIT does ?
Is there any tutorial for that ?
or any book -
@thegr8awais said in how to use autoit inside QT:
No problem :)- How to automate software with QT as AutoIT does ?
Its using native windows API calls to find and talk to the controls
like
https://msdn.microsoft.com/en-us/library/windows/desktop/ms633500(v=vs.85).aspx
https://msdn.microsoft.com/en-us/library/windows/desktop/ms644944(v=vs.85).aspxIts not a small task to get as far as AutoIT.