bilofsky Posted January 12, 2011 Report Share Posted January 12, 2011 This may be obvious to most Macro Express users, but possibly it will be helpful to some. A macro programmed for a particular window layout will stop working if everything in the window moves. For example, adding or removing an ad bar at the top of a browser window will throw off all the Y coordinates. Switching to a different internet browser, or adding or subtracting a toolbar, might display objects in the same relative positions, but with all coordinates off by the same amount. One fix is to change all the Mouse Move Window commands to the new coordinates. But there's a simpler way. As an example, suppose all the Y coordinates have increased by 10. First, at the start of the macro, set two integers to the X and Y offsets: Variable Set Integer %N98% to 0 Variable Set Integer %N99% to 80 Now after every mouse position command Mouse Move Window 384,427 insert the command Mouse Move Position %N98%,%N99% This adjusts the Mouse Move Window to the desired new position. And the change is quickly done using copy and paste. If pieces of the window are rearranged, the same technique might be helpful with variations, like using different offset variables for different parts of the window, or changing the variables further down the macro. Quote Link to comment Share on other sites More sharing options...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.