Jump to content

Recommended Posts

Posted

Hi guys,

I'm trying to make a script to work 24/7 in a Amazon virtual machine. My script automatizes very simple tasks like receive some information from a software, after that, it clicks and enters values in a TextField in another software.

Everything is working fine in my computer, but not in the VPS. In really, the VPS works only when the Windows Remote Desktop is maximized and my mouse is over the window. When my mouse is not over the window or the remote connection is off, the click's functions not work.

The destiny software uses just a graphic canvas, there are no controls. There are another way to click in the canvas without mouse?

So, how to make the VPS emulate clicks when there is no mouse? Is there a virtual mouse that I can install in the VPS?

Some info:

  VPS: t2.micro with Windows Server 2012 R2.

Thanks in advance

Posted

Wouldn't MouseClick do it?  Of course, I wouldn't recommend it as it relies on coordinates which could be unreliable.  Controls are the way to go, but if there are no controls, not sure what alternatives there are.  Also, if your script relies on an RDP being open to send the clicks then MouseClick won't work from a locked session.  You'd have to do something along the lines of VNC/iLO/other console over IP solution to leave the session unlocked.  Not a fan of that either from a security perspective.  Best be darn sure your implementation is as secure as can be so as other can hijack the remote control.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...