MULTIBOXING COMMANDS

ClickMouse

Clicks a specified location in a DAOC window.

Syntax

ClickMouse ( [x y] [button] [test] [release] [press] )

Parameters

X and Y are the client coordinates that get clicked. If you omit them, Mojo copies the coordinates of the mouse cursor in the foreground window.

Button can be Lbutton or Rbutton. If you omit it, the default is Lbutton.

Test causes ClickMouse to move the cursor to the target.

Press is the word press. Release is the word release. For more info about them, see below.

You can write parameters in any order, but X must come before Y.

Examples

The following hotkey left-clicks position x = 200, y = 300 in all DAOC windows. X and Y are what Microsoft calls client coordinates (explained below).

ClickMouse ( 200 300 )

The following hotkey right-clicks position x = 530, y = 827 in all DAOC windows. X and Y are what Microsoft calls client coordinates (explained below).

ClickMouse ( rbutton 530 827 )

X and Y

X and Y are relative to the DAOC window that you want to click, not the screen. This is shown in the picture below.

To be more precise, they are relative to the borderless part of DAOC’s window.

In programmer lingo, ClickMouse uses client coordinates for X and Y, not screen coordinates.

How do you find which X and Y numbers to use? Move the mouse on top of it and look at the upper left corner of Mojo’s Geeky Stuff tab. Mojo calls these numbers win position.

DAOC must be in the foreground (active) when you do this, otherwise Mojo will show you client coordinates that are relative to some other window.

Client coordinates for visible objects are always positive. If you find yourself writing a negative number for ClickMouse, you are doing something wrong. Either you are using screen coordinates or you are using client coordinates relative to the wrong window.

Remarks

To make it easier to write ClickMouse hotkeys, you can write “test” in it. When you include “test” ClickMouse does everything it normally does, but in addition it moves the cursor to the target location so you can see (1) whether ClickMouse executed and (2) the location of your X and Y numbers. Here’s an example.

ClickMouse ( test 200 300 )

You can write arguments in any order except that X always comes before Y. For example, the following two lines are equivalent:

ClickMouse ( 500 RButton 890 test )
ClickMouse ( test RButton 500 890 )

This is a simple, initial implementation of this command. It may get more complex in future builds.

To test whether you’ve written the X and Y numbers correctly for your desired target, add test to ClickMouse. This will make the cursor move to the target.

Press and Release

The Press and Release parameters allow you to specify whether ClickMouse presses a mouse button in the game or releases it. I added them to enable dragging and mirroring mouse actions. You don’t need them for other purposes.

Related

Send and Accept Group Invites with One Key Press

This page was first published on January 27, 2018 and last modified on February 2, 2018