Jump to content
Sign in to follow this  
hmsSurprise

Unable to uncheck control

Recommended Posts

hmsSurprise

I can get focus of the control below with ControlFocus($title, '', 'TEdit2').

But ControlCommand($title, '', 'TEdit2', 'unCheck') returns a zero.

I also tried using the text. The (Control is hidden) message concerns me as the check box is clearly visible.

The WinTitleMatchMode option mode shouldn't affect controls shoudn't affect this should it.

Thanks for taking a look,

jh

>>>>>>>>>>> Control Under Mouse <<<<<<<<<<<

Size: X: 40 Y: 140 W: 332 H: 21

Control ID: 1705214

ClassNameNN: TEdit2

Text: C:\Program Files\WinMerge

Style: 0x540100C0

ExStyle: 0x00000200

(Control is hidden)

Share this post


Link to post
Share on other sites
hmsSurprise

Thanks for posting.

"Completing the WinMerge Setup Wizard", the window with the finish button. The control label is 'Launch WinMerge'.

Some troubling news: 'unChecked' returns zero tho the visible check box is checked. As PsaltyDS said, there may be multiple windows stacked up here.

jh

Edited by hmsSurprise

Share this post


Link to post
Share on other sites
Jos

Thanks for posting.

"Completing the WinMerge Setup Wizard", the window with the finish button. The control label is 'Launch WinMerge'.

Some troubling news: 'unChecked' returns zero tho the visible check box is checked. As PsaltyDS said, there may be multiple windows stacked up here.

jh

This is not a CheckBox control but a CheckListBox.

A work arround cound be :

ControlSend("Setup - WinMerge", '', 'TNewCheckListBox1', "L{SPACE}")

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
hmsSurprise

My hero du jour! (or is it de jour, I forget)

How did you determine that it was a CheckListBox? And could you give a brief explanation of the syntax of the 'fix', please?

Inquiring minds want to know.....

Thanks a bundle,

jh

Edited by hmsSurprise

Share this post


Link to post
Share on other sites
Jos

My hero du jour! (or is it de jour, I forget)

For me its Its: "Held van de dag"

How did you determine that it was a CheckListBox? And could you give a brief explanation of the syntax of the 'fix', please?

I used a simple little script like this to determine its name by running it from SciTE:

While 1
    ConsoleWrite('ControlGetFocus("") = ' & ControlGetFocus("") & @crlf ) 
    sleep(1000)
WEnd

Then selected the 2 checkboxes which both returned : TNewCheckListBox1

The name tells you what type it is and the solution I use is by testing with the keyboard to see how the Control responded to the different keystrokes.

:shocked:


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
hmsSurprise

Neat, that's a great little idea.

"L{SPACE}" ?

Thanks again,

jh

(der dummkopf)

Edited by hmsSurprise

Share this post


Link to post
Share on other sites
Jos

Neat, that's a great little idea.

"L{SPACE}" ?

Thanks again,

jh

(der dummkopf)

Typing L makes it jump to the bottom checkbox

{SPACE} toggles the Checkbox

:shocked:


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

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  

×