crzymnmchl Posted June 13, 2013 Share Posted June 13, 2013 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 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now