Thumbnail

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.

+ How To Add This Control To Your Project (Click to Expand)
  1. Make sure you have the latest version of ARC installed.
  2. Select the Get button in this page to download the archive file.
  3. Double click the downloaded archive file to execute installer.
  4. The installer will add this control to ARC.
  5. Load ARC and press the Project -> Add Control button from the menu.
  6. Choose the Misc category tab.
  7. Press the Remote Mouse icon to add the control to your project.

Manual

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