Sign in to follow this  
Followers 0
cxcio

how to use "ControlLeftClick ( )" ??

11 posts in this topic

ControlLeftClick ( "title", "text", "classnameNN")

how to get the "classnameNN" value ?

use window spy, and get it from the ">>>>>>>>( Last Control Under Mouse )<<<<<<<" ?????

bu it doesn't work ... :whistle:!

Share this post


Link to post
Share on other sites



You could try the WinGetClassList( "title", ["text"] ) function

You get the classname but not the value.

AU3_SPY is the only way I know

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

You get the classname but not the value.

AU3_SPY is the only way I know

My translator translated the

how to get the "classnameNN" value

to: Need to know the name of the Class thats wanted, not its value, because this is the function to be used : ControlLeftClick ( "title", "text", "classnameNN") Edited by JdeB

Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

JdeB,

I don't understand your answer

with WinGetClassList( "title", ["text"] ) you get only "Classname" NOT "ClassnameNN"

so if you need to Know NN I really think that AU3_SPY is the tool

Usually NN is 1 but on specific Application you may want to reference a specific one not only the first one.

Share this post


Link to post
Share on other sites

I knew there had to something I was missing here... :whistle:

:iamstupid: understand now...

I had a similar issue when using the AU3_Spy.exe on a AutoIT Splash screen. It didn't tell me that the control was called "Static1" so i ran the WinGetClassList() and found "Static" and added the 1..

sorry for the confusion....


Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

You Welcome,

I did the same :whistle:

Share this post


Link to post
Share on other sites

AU3_SPY ?

i got something form the ">>>>>>>>( Last Control Under Mouse )<<<<<<<"

but it doesn't work..... what's wrong ?

Share this post


Link to post
Share on other sites

#10 ·  Posted (edited)

did you click on the window that you want to check out ?

with au3_spy, i got the control name is ThunderRT6CommanddButton4,

then use ControlLeftClick("WindowTitle","","ThunderRT6CommanddButton4")

is it right ?

but failed ...

Edited by cxcio

Share this post


Link to post
Share on other sites

#11 ·  Posted (edited)

with au3_spy, i got the control name is ThunderRT6CommanddButton4,

then use ControlLeftClick("WindowTitle","","ThunderRT6CommanddButton4")

is it right ?

but failed ...

The Control* functions are not guaranteed to work on non-standard controls. They aren't even guaranteed to work on standard controls, but most of the time it does. You could try using ControlSend and sending it a space or something if it's a button. Edited by Valik

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  
Followers 0