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

How to use autoit inside Qt

Scheduled Pinned Locked Moved Unsolved General and Desktop
10 Posts 2 Posters 5.4k Views
  • 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 30 Sept 2016, 14:17 last edited by A Former User 10 Jan 2016, 10:44
    #1

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

    1 Reply Last reply
    0
    • M Offline
      M Offline
      mrjj
      Lifetime Qt Champion
      wrote on 30 Sept 2016, 14:20 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 30 Sept 2016, 14:28 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
        • M Offline
          M Offline
          mrjj
          Lifetime Qt Champion
          wrote on 30 Sept 2016, 14:34 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 30 Sept 2016, 14:38 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 ?

            M 1 Reply Last reply 30 Sept 2016, 14:41
            1
            • T thegr8awais
              30 Sept 2016, 14:38

              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 ?

              M Offline
              M Offline
              mrjj
              Lifetime Qt Champion
              wrote on 30 Sept 2016, 14:41 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 30 Sept 2016, 14:54 last edited by
                #7

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

                Yes

                M 1 Reply Last reply 30 Sept 2016, 14:58
                0
                • T thegr8awais
                  30 Sept 2016, 14:54

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

                  Yes

                  M Offline
                  M Offline
                  mrjj
                  Lifetime Qt Champion
                  wrote on 30 Sept 2016, 14:58 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 30 Sept 2016, 15:23 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

                    M 1 Reply Last reply 1 Oct 2016, 09:21
                    0
                    • T thegr8awais
                      30 Sept 2016, 15:23

                      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

                      M Offline
                      M Offline
                      mrjj
                      Lifetime Qt Champion
                      wrote on 1 Oct 2016, 09:21 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

                      3/10

                      30 Sept 2016, 14:28

                      topic:navigator.unread, 7
                      • Login

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