Jump to content
Sign in to follow this  
sdfg4545

button click

Recommended Posts

sdfg4545

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

Share this post


Link to post
Share on other sites
ctyankeeinok

Try changing the control identifier to only "[Text:Logout]" - remove the rest.

Share this post


Link to post
Share on other sites
ctyankeeinok

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.

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  

×