Jump to content

How can I test for or change checkbox in GUI?


Recommended Posts

I am trying to test for a check box [checked] condition, and then conditionally either select or unselect the checkbox, as part of an automated installer utility (I did not write the GUI, it's a commercial progy). I have viewed the GUI using the ACTIVE WINDOW INFO utility, and cannot see can change in the GUI's status when either the box is checked or unchecked.

Below is a pic of the panel I need to test on, and text of the GUI INFO utility.

Im a newby at any GUI control, so any help would be greatly appreciated.

Screen Shot: See attachment

post-23123-1180450938_thumb.jpg

GUI INFO UTIL Data:

Press CTRL-ALT-F to freeze the display.

>>>>>>>>>>>> Window Details <<<<<<<<<<<<<
Title:  Schedule Settings
Class:  #32770
Size:   X: 671    Y: 4    W: 404    H: 448

>>>>>>>>>>> Mouse Details <<<<<<<<<<<
Screen: X: 47   Y: 55
Cursor ID:  5

>>>>>>>>>>> Pixel Color Under Mouse <<<<<<<<<<<
RGB:    Hex: 0x000000   Dec: 0

>>>>>>>>>>> Control Under Mouse <<<<<<<<<<<
Size:
Control ID:
ClassNameNN:
Text:

>>>>>>>>>>> Status Bar Text <<<<<<<<<<<


>>>>>>>>>>> Visible Window Text <<<<<<<<<<<
Schedule Settings
&Enable (scheduled task runs at specified time)
S&top the task if it runs for:
0
Spin1
hours
1
Spin2
minutes
User Account Settings
&User:
&Domain:
&Password:
OK
Cancel
&Apply
Help

>>>>>>>>>>> Hidden Window Text <<<<<<<<<<<
Schedule
Schedule Tas&k:
Monthly
S&tart Time:
04:30 AM
UT&C Time
&Local Time
Enable &randomization:
0
Spin1
hours
1
Spin2
minutes
Run &missed task
Delay miss&ed task by:
5
Spin1
minutes
Schedule Task Monthly
Da&y of the month:
&Weekday of the month:
1
Spin1
First
Sunday
Se&lect Months...
A&dvanced...
Link to comment
Share on other sites

I you give me an example? I have not done any GUI control before, only WinWaitActive and Sends to screen so far. :)

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

I am trying to test for a check box [checked] condition, and then conditionally either select or unselect the checkbox, as part of an automated installer utility (I did not write the GUI, it's a commercial progy). I have viewed the GUI using the ACTIVE WINDOW INFO utility, and cannot see can change in the GUI's status when either the box is checked or unchecked.

Below is a pic of the panel I need to test on, and text of the GUI INFO utility.

Im a newby at any GUI control, so any help would be greatly appreciated.

Screen Shot: See attachment

post-23123-1180450938_thumb.jpg

GUI INFO UTIL Data:

Press CTRL-ALT-F to freeze the display.

>>>>>>>>>>>> Window Details <<<<<<<<<<<<<
Title:  Schedule Settings
Class:  #32770
Size:   X: 671    Y: 4    W: 404    H: 448

>>>>>>>>>>> Mouse Details <<<<<<<<<<<
Screen: X: 47   Y: 55
Cursor ID:  5

>>>>>>>>>>> Pixel Color Under Mouse <<<<<<<<<<<
RGB:    Hex: 0x000000   Dec: 0

>>>>>>>>>>> Control Under Mouse <<<<<<<<<<<
Size:
Control ID:
ClassNameNN:
Text:

>>>>>>>>>>> Status Bar Text <<<<<<<<<<<
>>>>>>>>>>> Visible Window Text <<<<<<<<<<<
Schedule Settings
&Enable (scheduled task runs at specified time)
S&top the task if it runs for:
0
Spin1
hours
1
Spin2
minutes
User Account Settings
&User:
&Domain:
&Password:
OK
Cancel
&Apply
Help

>>>>>>>>>>> Hidden Window Text <<<<<<<<<<<
Schedule
Schedule Tas&k:
Monthly
S&tart Time:
04:30 AM
UT&C Time
&Local Time
Enable &randomization:
0
Spin1
hours
1
Spin2
minutes
Run &missed task
Delay miss&ed task by:
5
Spin1
minutes
Schedule Task Monthly
Da&y of the month:
&Weekday of the month:
1
Spin1
First
Sunday
Se&lect Months...
A&dvanced...
Link to comment
Share on other sites

I was able to CHECK the CHECKBOX (Even if it was already checked) without issue using

ControlCommand ("Schedule Settings", "", 1015, "Check", "")
 oÝ÷ Øz0z÷« ¬yÛaz«¨´@:®¢Û^²×ÞjÛ«{ú®¢×¢Ë"nºÚ"µÍÌÍÝÜ]HÛÛÛÛÛ[X[
    ][ÝÔØÚY[][ÜÉ][ÝË ][ÝÉ][ÝËLMH ][ÝÒÐÚXÚÙY    ][ÝË  ][ÝÉ][ÝÊBYÝÜ[ÙÐÞ
Ì
    ][ÝÐÚXÚØÞ ][ÝË  ][ÝÕHÚXÚÙYÝ]][ÝÉ[Ê  ÌÍÝÜ]HJJB[Y

Edit: added msgbox

Edited by eltorro
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...