Pushbutton and GetCheckBox problems

Hints, tips and tricks for newbies

Moderators: Dorian (MJT support), JRL

Post Reply
memilm
Junior Coder
Posts: 23
Joined: Fri Apr 28, 2006 1:01 pm

Pushbutton and GetCheckBox problems

Post by memilm » Fri Jun 16, 2006 12:55 pm

I'm trying to get some properties from a german Internet Explorer on a Windows XP computer.
The remarked line does not work properly and also the GetCheckBox command get "-1" as a result. Have someone some ideas what's wrong in the following script?

RunProgram>rundll32.exe shell32.dll,Control_RunDLL inetcpl.cpl,@0,4
Wait>2
SetFocus>Eigenschaften von Internet
#PushButton>Eigenschaften von Internet,Einste&llungen
Press ALT
Send Character/Text>l
Release ALT
GetCheckBox>Einstellungen*,A&utomatische Suche der Einstellungen,res
Let>NUM=Title1
If>res=1,checked,unchecked

Label>checked
Message>The checkbox %NUM% is checked!(%res%)
Goto>end
Label>unchecked
Message>The checkbox %NUM% is not checked!(%res%)

User avatar
Marcus Tettmar
Site Admin
Posts: 7391
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Post by Marcus Tettmar » Fri Jun 16, 2006 1:07 pm

Can you provide a screenshot showing the screen with the checkbox? If the checkbox is on a web page this won't work because the checkbox is a DHTML element not a windowed control.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

memilm
Junior Coder
Posts: 23
Joined: Fri Apr 28, 2006 1:01 pm

Post by memilm » Fri Jun 16, 2006 1:20 pm

I don't know how can I upload pics or zip-file in this forum.
I only want to check the local installed MS Internet Explorer settings, not trying to check any html site.

User avatar
Marcus Tettmar
Site Admin
Posts: 7391
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Post by Marcus Tettmar » Fri Jun 16, 2006 1:25 pm

If you are referring to the last Tab in the Internet Options dialog the problem is that this is a treeview control, with embedded check boxes. These are not regular checkbox controls. Therefore GetCheckBox will not work here.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

memilm
Junior Coder
Posts: 23
Joined: Fri Apr 28, 2006 1:01 pm

Post by memilm » Fri Jun 16, 2006 1:35 pm

Yes, it is an dialog with Internet Options.
How about the Pushbutton command in the other MS Internet Explorer dialog, I think that is named "LAN Settings..." under "Connection" in the english version?
I also remarqued that by manual clicking no buttons have underlines in the text, but the same dialog started with Macro Scheduler display the underlines in the text.

User avatar
Marcus Tettmar
Site Admin
Posts: 7391
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Post by Marcus Tettmar » Fri Jun 16, 2006 1:52 pm

Hi,

Yes, PushButton works fine as that's a regular button:

PushButton>Internet Options,&LAN Settings...
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

memilm
Junior Coder
Posts: 23
Joined: Fri Apr 28, 2006 1:01 pm

Post by memilm » Mon Jun 19, 2006 7:52 am

THX, Pushbutton work fine now.
Could you put in the future version the controls for the "treeview control, with embedded check boxes" function?

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