![]() |
| |||||||
Workspace Macro Post messages and questions related to Macro Recorder or Windows Macro here. |
![]() |
| | LinkBack | Thread Tools | Display Modes |
| |||
|
I programmed a macro that go to "Start", "Run", then opens a program from command line. Once open and appropriate wait times completed, it closeds the program. It runs successfully when I run it manually after recording. For some reason, though when I leave it to run on a schedule, it kicks off at the correct time, but never gets to the "Start", "Run" location properly, thus errors out because it never opens the "Run" window. If I leave the command window open, it works fine. It seems like when it runs from the schedule, it loses its position on the screen, thus doesn't locate the "Start" menu and execute the "Run". Also, once it has failed in this manner, I can no longer run it manually either. It fails for the same reason. Is it possibly something with the machine getting logged out and back in that might be causing it to lose its locational reference ? Any quick tips one could suggest to rectify this issue ? Thanks, chris |
| |||
|
Following are few points that should be considered while recording a macro for its errorless execution. 1) While recording we recommend using more of keyboard short cuts instead of mouse clicks as they are more reliable than mouse moves/clicks irrespective of change in screen resolution or window size. Mouse clicks/moves are subject to work on a screen resolution they were recorded on. However, keystrokes will work as expected no matter whatever screen resolution you set to. For e.g. Up/Down arrow key would work in a reliable way than using mouse to scroll in an excel sheet. 2) While recording after you perform an action, wait for few seconds so that command gets enough time to execute on replay. Insufficient delay can skip any command and hence can mess up the commands. After recording, you can also edit your macro through Tools->Macro Editor to insert Delay command (Available in Workspace Macro Pro 6.5). 3) Using Workspace Macro Pro you can edit mouse clicks to perform activities relative to windows. Please follow the steps given below: . Double click on Mouse Click command. . Click on 'Advanced' button. . From 'Relative To' frame select option 'Window' and save the command. . Perform the above steps for every Mouse Click command in question. . Save the macro and run it. 4) Here is a link to best practices for our macro products, Workspace Macro 4.6 and Workspace Macro Pro 6.5 http://www.tethyssolutions.com/bestpractices.htm Hope that helps! |
![]() |
| Thread Tools | |
| Display Modes | |
| |