Jump to content

Unable to uncheck control


Recommended Posts

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)

Link to comment
Share on other sites

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
Link to comment
Share on other sites

  • Developers

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}")

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

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
Link to comment
Share on other sites

  • Developers

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:

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

  • Developers

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:

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

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...