Jump to content
Macro Express Forums
Danette

"Relative to Window" Failure

Recommended Posts

Using the "Mouse Locator", I identified the "Active Window" coordinates and placed these in the "Movement" section of the "Mouse Commands". I then select "Relative to Window" in the "Mouse Commands". However, the macro does not select that coordinate point on the active window. I have an "Activate Window Only" line just above the "Mouse Move Window" line and I also click on the window, itself, to ensure that it is active. Every time I run the macro, the mouse pointer is moved to the bottom of the screen and this is far from the active window.

Share this post


Link to post
Share on other sites

if moving the mouse relative to the window, you don't need to know the coordinates of that window.  x=0, y=0 are automatically the coordinates of the top left corner of the window.  The four lines of code below click on the X at the upper right to close just about any window, full screen or partial screen.  Even for this, you don't need to know the location of the window, just its width.  Of course, if you move the mouse to a position greater than either window height or window width, it will be outside of the window.     

 

  Variable Set Integer %N30% from Width of Window
  Variable Modify Integer: %N30% = %N30% - 14
  Mouse Move Window %N30%, 9
  Mouse Left Button Click

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...