Quantcast
Channel: AutoIt v3 - General Help and Support
Viewing all articles
Browse latest Browse all 12506

AutoIt and Qt controls

$
0
0

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)
         Sleep(50)
      WEnd
      $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) )
   EndIf
   Sleep(50)
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
 

Attached Thumbnails

  • Motif1.png

Viewing all articles
Browse latest Browse all 12506

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>