sdfg4545 Posted October 8, 2009 Share Posted October 8, 2009 Have tried many things, seems I cant identify the button , cant get a handle to it, cant click it: ANY TIPS? Thanks. -control ID copied from Auto It Window Info 1) WinActivate ("iMedic Explore") $hHandle = ControlGetHandle("iMedic Explore", "", "[CLASS:WindowsForms10.BUTTON.app.0.202c666; TEXT:Logout; INSTANCE:3]") $SuccessFailCode = _GUICtrlButton_Click ($hHandle) MsgBox($SuccessFailCode) ;returns "0" 2) ControlClick("iMedic Explore", "", "[CLASS:WindowsForms10.BUTTON.app.0.202c666; TEXT:Logout; INSTANCE:3]") ;does nothing 3) $hHandle = ControlGetHandle("iMedic Explore", "", "[CLASS:WindowsForms10.BUTTON.app.0.202c666; TEXT:Logout; INSTANCE:3]") MsgBox(_GUICtrlButton_GetText($hHandle)) ;returns nothing Link to comment Share on other sites More sharing options...
ctyankeeinok Posted October 8, 2009 Share Posted October 8, 2009 Try changing the control identifier to only "[Text:Logout]" - remove the rest. Link to comment Share on other sites More sharing options...
ctyankeeinok Posted October 8, 2009 Share Posted October 8, 2009 Upon further review, try the following: WinActivate ("iMedic Explore") ControlClick("iMedic Explore", "", "[TEXT:Logout]","Primary") Also, the _GUICtrlButton_Click does not return anything, so your $SuccessFailCode will not tell you anything of value. 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