Plugins / ezrobot / Remote Mouse

Remote Mouse

Control your mouse with this control from EZ-Script. Get creative and use your voice, camera control or switches on the EZ-B v4 to move the mouse cursor on your PC.

Register   Download Plugin

This plugin is version 3, was last modified on 5/27/2016, and is 56,704 Bytes. The author is ezrobot.

Requirements

This plugin requires EZ-Builder for Microsoft Windows PC.

  Get EZ-Builder for Windows

Plugin Details

Control your mouse with this control from Ez-script. Be creative and use your voice, camera control or switches on the EZ-B v4 to move the mouse cursor on your PC. Use the ControlCommand() for this control to move the mouse with EZ-Script.

Here is an example of DJ Sures controlling the mouse cursor with the position of his face in the camera. The project file for this example is available here: FaceMouse.EZB




Example EZ-Script
The Cheat Sheet will display all available ControlCommand() for this control. Syntax is as follows...

This will move the mouse cursor down 10 pixels.

Code:


ControlCommand("Remote Mouse", MoveDown, 10)



This will move the mouse cursor to the absolute position 240 x 300 on the screen.

Code:


ControlCommand("Remote Mouse", SetAbsolute, 240, 300)



Or you may wish to control the EZ-Builder window state between Maximized, Minimized, Restore or window position. Run this fun example to watch EZ-Builder change state and run across the screen.

Code:


ControlCommand("Remote Mouse", WindowMinimize)

sleep(2000)

ControlCommand("Remote Mouse", WindowMaximize)

sleep(2000)

ControlCommand("Remote Mouse", WindowRestore)

sleep(2000)

repeat ($x, 10, 500, 20)

ControlCommand("Remote Mouse", WindowLocation, $x, 50, 500, 500)

sleep(100)

endrepeat

sleep(2000)

ControlCommand("Remote Mouse", WindowMaximize)



Source Code
Source code is here: RemoteMouse.zip


Changes:
Version 0
- released

Version 1
- displayed current mouse coordinate position as requested: http://www.ez-robot.com/Community/Forum/Thread?threadId=8530