I have created a macro and it works "almost" perfectly. It opens a new window, sets focus on this, choose a toolbar an clicks on the correct "button". Then I try to use Press Tab (3 times) to get to a box to write an IP address, but after the toolbar-button is clicked the window loses focus. Try SetFocus (all ways possible), but the focus will not "stay". When I do this manually everything is OK.
I have tried a lot of things, but nothing works (I do not have much experience with this program)...
Any suggestions on how to solve this?
[/img]
SetFocus "problem"
Moderators: JRL, Dorian (MJT support)
Another frequent issue that I have experienced is timing. Sometimes the application just cant keep up with Macro Scheduler. Automatic delays between each step using the STEP_DELAY variable is one method. Hard coded delays with the Wait> command along with other commands like WaitwindowOpen> etc are sometimes essential. For example, in order to get to the right field on a particular web page, I needed to press tab 15 times. If I used the command "Press tab * 15" it would not always work correctly. My solution was to code a press tab loop with a STEP_DELAY variable.