hmsSurprise Posted April 12, 2007 Posted April 12, 2007 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)
Developers Jos Posted April 12, 2007 Developers Posted April 12, 2007 Which window in WinMerge are you trying this on ? 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.
hmsSurprise Posted April 12, 2007 Author Posted April 12, 2007 (edited) 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 April 12, 2007 by hmsSurprise
Developers Jos Posted April 12, 2007 Developers Posted April 12, 2007 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. jhThis 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.
hmsSurprise Posted April 12, 2007 Author Posted April 12, 2007 (edited) 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 April 12, 2007 by hmsSurprise
Developers Jos Posted April 12, 2007 Developers Posted April 12, 2007 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. 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.
hmsSurprise Posted April 12, 2007 Author Posted April 12, 2007 (edited) Neat, that's a great little idea. "L{SPACE}" ? Thanks again, jh (der dummkopf) Edited April 12, 2007 by hmsSurprise
Developers Jos Posted April 12, 2007 Developers Posted April 12, 2007 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 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.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now