Code builders

Technical support and scripting issues

Moderators: Dorian (MJT support), JRL

Post Reply
Ad11
Newbie
Posts: 3
Joined: Tue Jun 05, 2012 11:25 am

Code builders

Post by Ad11 » Tue Jun 05, 2012 1:34 pm

Hello! We have installed a professional version of macro scheduler tool. I've been working to automate a windows application which consists of 9-10 tabs with different configurations to be set on each. To locate and click on tabs ive been using the Mouse click commands. However, the built in features like push button didn't work for me. Is there any other way?
Please Help

Here is a sample piece of code used:

Set Focus>File Auditor*
Let>WF_TYPE=3
PushButton>File Auditor*,Monitered Events

Also, to select the checkbox i tried using SetCheckBox feature, but it didnt work for me. I have mentioned correct window name and object caption. Is there any other method to set a check box?

Here is the code used:

SetFocus>File Auditor*
Wait>0.5
SetCheckBox>File Auditor*,Directory Create,TRUE
Wait>0.5
SetCheckBox>File Auditor*,Directory Rename,TRUE
Wait>0.5
SetCheckBox>File Auditor*,Directory Delete,TRUE


Thanks

User avatar
JRL
Automation Wizard
Posts: 3526
Joined: Mon Jan 10, 2005 6:22 pm
Location: Iowa

Post by JRL » Tue Jun 05, 2012 3:07 pm

Having also read your other post I'm thinking this is an attempt to automate a browser window. Web browsers and sometimes other applications don't use standard Microsoft Window's objects for buttons, check boxes, text fields, etc. If an application's "objects" do not have window handles software trying to control those "objects" using functions like pushbutton and setcheckbox will fail because those functions depend on using the object's handles. If you are automating a browser and have Web Recorder, use that. If you do not have Web Recorder or if the application being automated does not use standard Window's objects, you are limited to using mouse moves, mouse clicks, and send text. In this situation, learning and using some of the image recognition techniques can greatly enhance script reliability. Also remember there is a BlockInput> function that can prevent accidental mouse moves from interrupting a script.

Ad11
Newbie
Posts: 3
Joined: Tue Jun 05, 2012 11:25 am

Post by Ad11 » Wed Jun 06, 2012 5:29 am

I'm working on both windows and web applications using macro scheduler and web recorder tool. Will give a try using other techniques as well. Thank you.

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