Jump to content
Macro Express Forums

macros and terminal servers


koden

Recommended Posts

Hello

 

I use remote server on my pc. On the terminal server i log on to diff. servers.

I would like to run a macro from my pc without installing it on the servers.

 

I have tried to do it with mouse clicks.

But what I click manuel is not workin when the macro runs...

 

I works fine, but one thing is not working.

I copy from the remote server and go to a notepad omn my pc.

I ctrl+v to my notepad.

I go back to the remote picture.

I make a arrow down

I can see the color is moving down to next object, but the mouse cursor is not moving.

So when i then make a right click, it's the mouse cursors position and not the objects color, that the macro uses. And that is the object from last time...

 

When i do a manuel mouse move and right click it works fine...

 

Do you understand my problem?

In short description the problem is: right click used the mouse arrow as position and not what is highlightet.

 

Anyone tried this before?

 

PS. is there anything I have to take notice of, when i use macro ekspress and remote servers.

remote server I surpose is another computer on my computer, so maybe there vcan be a problem about that???

Link to comment
Share on other sites

"Can i make a "mouse move" that moves the mouse down the Y +20 and put this in my repeat command?"

Sure.

Variable Set Integer %N2% from Mouse X Position
Variable Set Integer %N3% from Mouse Y Position
Repeat Start (Repeat 20 times)
 Variable Modify Integer: Inc (%N3%)
 Mouse Move Screen %N2%, %N3%
Repeat End

Link to comment
Share on other sites

I go back to the remote picture.

I make a arrow down

I can see the color is moving down to next object, but the mouse cursor is not moving.

So when i then make a right click, it's the mouse cursors position and not the objects color, that the macro uses. And that is the object from last time...

 

This is because the mouse is moving on the wrong machine!

In order to demonstrate this, try the following:

  • open a remote desktop fullscreen session with the connection bar pinned
    write and run 2 macros on the remote machine to simply move the mouse up the screen until its top coordinate is 0

- in the 1st macro have the left coordinate to the left of the connection bar; this works as expected

- in the 2nd macro, have the left coordinate halfway across the screen so that towards the top of the screen, the connect bar will interfere; as soon as the mouse pointer overlaps the connect bar (which will be before the top coordinate is 0), the mouse will no longer appear to move!


I believe this is because the connect bar belongs to the local computer, whereas the mouse is moving on the remote computer.

Link to comment
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...