Jump to content
Macro Express Forums

Different screen resolutions


Recommended Posts

Hello,

i use the command mouse move x,y relative to current window and after that click mouse - when i use  my laptop it works perfectly, when i use my extern monitor it doesn,t work - is there a practical solution, to use this command with different solutions and monitors.

 

Thank you!

 

Martin Krug

 

Link to post
Share on other sites

Hi Martin,

Strange inconsistency indeed. I don't have a laptop and use only one monitor with my PC, but one thought is to try adding a Windows Reposition  command somewhere before your Mouse Move. I'm hoping that, unlike my screenshot below, you will have access to the Monitor field and able to experiment.

https://www.dropbox.com/s/r2snjcl0zgqu70k/MouseMoveMonitorPuzzle.jpg?dl=0

Terry, East Grinstead, UK

Link to post
Share on other sites

Only solution I can think of is for the macro to check the screen resolution and apply a formula to the mouse coordinates.  Write a separate macro to do the math, that you can call (run) from your main macro -- otherwise you will get tired coding the same logic over and over. 

Don't know if it will work, but it's easy to test. 

Variable Set Integer from Screen Height / Width

 

Link to post
Share on other sites
  • 6 months later...

I use separate macros with mouse coordinate variables specific to a particular screen resolution. I then have my macros first check the screen resolution (I have a registry setting where I record the screen resolution for the particular PC) and run the macro containing the variables for the mouse locations for that particular screen resolution. My mouse position commands are then setup similar to  Mouse Move: %Search_x%, %Search_y% Relative to screen.

MOverman

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...