GUI with multiple tabs

Hints, tips and tricks for newbies

Moderators: Dorian (MJT support), JRL

Post Reply
lebrocoli
Pro Scripter
Posts: 53
Joined: Tue Sep 06, 2005 9:28 pm

GUI with multiple tabs

Post by lebrocoli » Thu Sep 27, 2007 8:36 pm

Hi,

I need to test a GUI with multiple tabs. It is a windows app that connects to a database, not a browser. Each tab as a particular name.

In the beginner's guide, it keep saying to use the accelerator keys, whenever possible and to avoid mouse clicks if possible.

So the questions are:

1-Is there a way to select a particular tab by specifying its name?

2-Or is there a way to select a particular tab by specifying it's 'windows name' or 'windows internal name'.

do somebody know what I mean?

Thanks

User avatar
Bob Hansen
Automation Wizard
Posts: 2475
Joined: Tue Sep 24, 2002 3:47 am
Location: Salem, New Hampshire, US
Contact:

Post by Bob Hansen » Thu Sep 27, 2007 9:57 pm

See how to move and select the tabs using the keyboard. Anything you can do from the keyboard, you can do with Send>, Tab, SH-Tab, Up/Down/Left/Right, etc.

You mentiion accelerator keys, you can use Send> to use them.
General guideline would be to use lower case at first.

Example of using ALT-r:

SetFocus>Windowname*
Press ALT
Send>r
Release ALT
Hope this was helpful..................good luck,
Bob
A humble man and PROUD of it!

lebrocoli
Pro Scripter
Posts: 53
Joined: Tue Sep 06, 2005 9:28 pm

Post by lebrocoli » Fri Sep 28, 2007 2:20 pm

Ok good. Thanks a lot!

I have accelerator keys so I should be fine. But the question was more like, if I do not have accelerator keys and if I do not want to use the mouse, is there a possibility, from a MacroScheduler point of view, to use the 'Windows Internal name' of the tab or the displayed name of the tab itself?

Thanks!

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 Sep 28, 2007 6:05 pm

Perhaps this helps:
http://www.mjtnet.com/blog/2006/09/07/g ... tab-index/

But usually all you need to do is send CTRL+TAB to change tabs.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

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

lebrocoli
Pro Scripter
Posts: 53
Joined: Tue Sep 06, 2005 9:28 pm

Post by lebrocoli » Fri Sep 28, 2007 7:07 pm

Thanks a lot! That's great!

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