Jump to content
Sign in to follow this  

AutoIt and Qt controls

Recommended Posts

using the help I received from the forum yesterday:

#include <Misc.au3>
#include <WinAPI.au3>
Local $hDLL = DllOpen("user32.dll")
While 1
   If _IsPressed("01", $hDLL) Then ; Left mouse button
      ; Wait until key is released.
      While _IsPressed("01", $hDLL)
      $hCtrlHnd = ControlGetHandle("", "", "")
      ConsoleWrite("Ctrl Id #" & _WinAPI_GetDlgCtrlID($hCtrlHnd) & @TAB & "Ctrl Handle:" & $hCtrlHnd & @CRLF)
      ConsoleWrite("Ctrl Info:" & ControlGetText ( "Motif XF Mix Editor", "", $hCtrlHnd ) & @CRLF)
      MsgBox(0, "Ctrl Info:", ControlGetText ( "Motif XF Mix Editor", "", $hCtrlHnd) )
WEnd ...
it turns out the app is Qt. Googling got me Ranorex and some not too encouraging info about AutoIt and Qt controls. I have enclosed a screenshot of the app gui with Ranorex open. What keeps me a little hopeful is that
 MsgBox(0, "Ctrl Info:", ControlGetText ( "Motif XF Mix Editor", "", $hCtrlHnd) )
does get me the correct Caption/text of the control: "Voice PRE4:Back Ground", so I wonder if successfully inspecting this attribute means I can get others.
The first thing I need to do is work out that PRE4 is the checked row in the droplist. Is this possible with Qt controls? tia


Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...