Jump to content

how to click class without title?


m0ngs
 Share

Recommended Posts

  • Moderators

If you look at the example for ControlClick you will see a way to do it:

$window = WinWait("[CLASS:<classname>]", "")
ControlClick($window, "", <ControlID>)

"Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball

How to get your question answered on this forum!

Link to comment
Share on other sites

sorry but still not working i make

$window = WinWait("[CLASS:WindowsForms10.Window.8.app.0.2bf8098_r11_ad1]", "")
ControlClick($window, "", 16910374)
 
is the control id is right? 
i got it in "Control" then the one "ID" on it..
and i cant do the mouseclick coz it pop up everywhere..
Edited by m0ngs
Link to comment
Share on other sites

  • Moderators

How would we know what the control ID is?? How about you post a screenshot of what the AutoIt Window Info Tool shows for that control?

"Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball

How to get your question answered on this forum!

Link to comment
Share on other sites

Your screenshot has a diff ID than you attempted to click.

Also, you should add debugging to see if you actually find the handle for your window, or if it's failing to find it...winwait waits indefinitly if you don't add a timeout.

IEbyXPATH-Grab IE DOM objects by XPATH IEscriptRecord-Makings of an IE script recorder ExcelFromXML-Create Excel docs without excel installed GetAllWindowControls-Output all control data on a given window.
Link to comment
Share on other sites

ahh i see it gives different id everytime i open it..

do i still locate it even it gives different id everytime?

and how bout the controlclick coords?

how can i use to click yhere?

i notice that its the same controlclick coords position in that window..

Edited by m0ngs
Link to comment
Share on other sites

I have one of those window forms apps that I've automated.

It's broken up into groups.  Each group has a button.

I grabbed the groups, verified which group it was by the text, and then looped through all buttons until I found the one within the bounds of the group.

I should revisit it, to find a better way, but it works as I require it.

...may or may not work for you, but something to think about.

Edited by jdelaney
IEbyXPATH-Grab IE DOM objects by XPATH IEscriptRecord-Makings of an IE script recorder ExcelFromXML-Create Excel docs without excel installed GetAllWindowControls-Output all control data on a given window.
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...