Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. How to use autoit inside Qt
Forum Updated to NodeBB v4.3 + New Features

How to use autoit inside Qt

Scheduled Pinned Locked Moved Unsolved General and Desktop
10 Posts 2 Posters 5.4k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    thegr8awais
    wrote on last edited by A Former User
    #1

    Hi
    i am new to Qt.
    I want to know how we can use autoit inside Qt?

    1 Reply Last reply
    0
    • mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on last edited by
      #2

      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.

      1 Reply Last reply
      1
      • T Offline
        T Offline
        thegr8awais
        wrote on last edited by
        #3

        i mean i can use Autoit Function inside qt 
        It's a c++ framwork so there should be any way 
        like this post here

        or like this 
        https://automation-home.blogspot.com/2015/06/java-and-autoit-automating-calculator-application.html

        1 Reply Last reply
        1
        • mrjjM Offline
          mrjjM Offline
          mrjj
          Lifetime Qt Champion
          wrote on last edited by mrjj
          #4

          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.html

          Can I ask why you want to mix it with Qt ?
          AutoIT has GUI controls that are well integrated.

          1 Reply Last reply
          1
          • T Offline
            T Offline
            thegr8awais
            wrote on last edited by
            #5

            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 ?

            mrjjM 1 Reply Last reply
            1
            • T thegr8awais

              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 ?

              mrjjM Offline
              mrjjM Offline
              mrjj
              Lifetime Qt Champion
              wrote on last edited by
              #6

              @thegr8awais

              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?

              1 Reply Last reply
              1
              • T Offline
                T Offline
                thegr8awais
                wrote on last edited by
                #7

                Do you mean by starting the installer and press buttons as the user would?

                Yes

                mrjjM 1 Reply Last reply
                0
                • T thegr8awais

                  Do you mean by starting the installer and press buttons as the user would?

                  Yes

                  mrjjM Offline
                  mrjjM Offline
                  mrjj
                  Lifetime Qt Champion
                  wrote on last edited by
                  #8

                  @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.

                  1 Reply Last reply
                  1
                  • T Offline
                    T Offline
                    thegr8awais
                    wrote on last edited by
                    #9

                    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

                    mrjjM 1 Reply Last reply
                    0
                    • T thegr8awais

                      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

                      mrjjM Offline
                      mrjjM Offline
                      mrjj
                      Lifetime Qt Champion
                      wrote on last edited by
                      #10

                      @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).aspx

                      Its not a small task to get as far as AutoIT.

                      1 Reply Last reply
                      1

                      • Login

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • Users
                      • Groups
                      • Search
                      • Get Qt Extensions
                      • Unsolved