Debugger sends keystrokes to itself?
Moderators: Dorian (MJT support), JRL
Debugger sends keystrokes to itself?
I was hoping to debug my first very first script (yes, I'm a first time user) and instead it appears to send my commands and keystrokes to the script window instead of my app (i.e. "Press Tab * 3" ends up putting 3 unnecessary tabs in my script). Shouldn't the commands/keystrokes in the script be sent to the window that was active before I selected Debug / Step from the Script Editor window? I have the Refocus Windows option checked, but that doesn't seem to make any difference.
- Bob Hansen
- Automation Wizard
- Posts: 2475
- Joined: Tue Sep 24, 2002 3:47 am
- Location: Salem, New Hampshire, US
- Contact:
Probably. There are situations where the debugger is unable to switch focus and therefore keysends end up in the debugger. A conundrum of debugging an automation script I'm afraid. E.g. starting the script part way through after a focus line will also have that effect.
MJT Net Support
[email protected]
[email protected]
not that this solves the refocus issue when Debugging, but I find it very usefull to wrap ALL my variables in % (%variable%) and turn on logging so that the log file shows as many variable values as possible. You might also put a few MessageModal> commands in the script to report to you the current values held in some key variables or system settings.