Behavior Control
This control is developed by:
AvatarDJ Sures
Created on October 2015
Updated on May 2016
Help Index

Remote Mouse

How To Download and Use This Control

  1. Make sure you have the latest version of EZ-Builder installed.
  2. Select Download This Control button below to download the file.
  3. Double click the downloaded file to open it.
  4. The installer will automatically add this control to EZ-Builder.
Download This Control

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