Using the Mouse Click action

Touch Portal Action Guides

This overview will show you how to use the Mouse Click action from the input action category. This action lets you simulate a mouse click on your computer.

Step 01: Adding Mouse click action

We start by adding the action to our button. Start a new button, call it what ever you like and add the action from the action list:

This will show you the setup popup of the action.



Step 02: Mouse click Method

There are two mouse click methods to choose from. The default is the method before version 2.3 of Touch Portal which was being used.

From version 2.3 we have extended the Mouse event with a, Windows only, Low level method of clicking on a screen. We have added this because the default virtual method was not able to produce a reliable location when there is a multiple screen setup in which 1 monitor has scaling different than 100%.



Step 03: Mouse click type

When you use your mouse you have several options to click. Options such as left mouse button click, right mouse button click, middle mouse button click and left button double click. In Touch Portal you can select which of these types of clicks can be used for the action.



Step 04: Mouse click duration

The mouse click duration is the setting for how long the mouse button is pressed down before it is released again. For most cases you can just let this be the default but for some situations you may want to change this. The duration is in milliseconds.

The mouse click duration will have no effect when using the Low Level method.



Step 05: Mouse location

You can set up the location of the chosen click type. Currently we support two types:

1. Specific location

You can set exact locations just by editing the 2 fields. The first is for the x location (horizontal pixel) and the second is for the y location (vertical pixel). We have added the ability to place your mouse on the location and pressing the M key on your keyboard will fill in that location in the fields automatically. This will make setting up this button a lot easier.

2. Just click at where the mouse is

There are also situations where you do not know where you want to click but you just want to click at the location of the mouse where it is when you press the button on Touch Portal. Use the checkbox called "Use the mouse position" to accomplish that. It will click wherever the mouse is at the time the action is executed.



End Result

Now you will understand the mouse action and you are able to use it in your actions flows where ever you need it.


Back to Guide Overview