Problem with GetCheckBox

Technical support and scripting issues

Moderators: Dorian (MJT support), JRL

Post Reply
User avatar
roo
Newbie
Posts: 15
Joined: Thu May 29, 2008 12:12 am
Location: Washington D.C.

Problem with GetCheckBox

Post by roo » Sun Jun 08, 2008 3:05 am

Hello,

Can anyone tell me why GetCheckBox will not work in the example below? I also tried SetCheckBox with no luck. I put in the MessageModal line to view the result but it always comes back as -1

Thanks for any assistance possible.

-roo

:?: :!: :?:

Label>Run Add Printer
Run Program>control printers
WaitWindowOpen>Printers and Faxes
Press ALT
Send>f
Send>a
WaitWindowOpen>Add Printer Wizard
Send>n
Send>A

GetCheckBox>Add Printer Wizard,&Automatically detect and install my Plug and Play printer,Box1
MessageModal>Box1
Label>exit

User avatar
Rain
Automation Wizard
Posts: 550
Joined: Tue Aug 09, 2005 5:02 pm
Contact:

Post by Rain » Sun Jun 08, 2008 1:56 pm

Hi Roo,
I had to add Wait>1 before GetCheckBox> to get it to return the correct value.

Code: Select all

Label>Run Add Printer
Run Program>control printers
WaitWindowOpen>Printers and Faxes
Press ALT
Send>f
Send>a
WaitWindowOpen>Add Printer Wizard
Send>n
Send>A
Wait>1
GetCheckBox>Add Printer Wizard,&Automatically detect and install my Plug and Play printer,Box1
MessageModal>Box1
Label>exit

User avatar
roo
Newbie
Posts: 15
Joined: Thu May 29, 2008 12:12 am
Location: Washington D.C.

Post by roo » Sun Jun 08, 2008 5:28 pm

...and that is why I am a newbie!!!...I can't believe it was that simple.

Thanks so much!

:D

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts