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
stepping through a script containing alt-key combinations
Moderators: JRL, Dorian (MJT support)
Enable Refocus Windows under the Debug menu to ensure focus always gets set back between steps.
MJT Net Support
[email protected]
[email protected]
- Bob Hansen
- Automation Wizard
- Posts: 2475
- Joined: Tue Sep 24, 2002 3:47 am
- Location: Salem, New Hampshire, US
- Contact:
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.
====================================
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!
Bob
A humble man and PROUD of it!