stepping through a script containing alt-key combinations

Technical support and scripting issues

Moderators: Dorian (MJT support), JRL

Post Reply
tim167
Newbie
Posts: 13
Joined: Thu Sep 16, 2004 11:38 am

stepping through a script containing alt-key combinations

Post by tim167 » Tue May 24, 2005 1:13 pm

I have a script in wich i make use of stuff like :

//export file
press alt
send>fee
press enter

The script contains some bugs and i want to trace them.
If I try to use the Trace function (Debug>Trace... in edit window) however, these alt keycombinations don't work because the program they are being sent to always loses focus after every step.

I tried using mnu> instead but it doesn't work in the program.

thanks for any help
Tim

User avatar
support
Automation Wizard
Posts: 1450
Joined: Sat Oct 19, 2002 4:38 pm
Location: London
Contact:

Post by support » Tue May 24, 2005 1:33 pm

Enable Refocus Windows under the Debug menu to ensure focus always gets set back between steps.
MJT Net Support
[email protected]

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 » Tue May 24, 2005 1:33 pm

Use logs.

On the Main Macro Scheduler Control Panel, right click on the macro name. Select Macro Properties.
Go to the tab for logging
Enable logging as needed.
I usually use the second choice of Log Level to show before executing.

Also having variables surrounded with %percent% signs allows you to see the value of the variable as it is executed. If you only have the variable name then you can see the commands executed but you cannot see the values that were used in some decisions.

=======================================
Instead of using Trace, try using Single Step along with inserting BreakPoints. Then you can run to the breakpoint, and continue to Single Step from that point. Also have Show Watch List turned on.

====================================
Hope this was helpful..................good luck,
Bob
A humble man and PROUD of it!

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