In some cases, our customers want to locate the position of the cursor at a point on the screen where, if it is not hidden, it would go unnoticed. This is why you can place the cursor in the position you want.
The Robot (assistant that is located in the taskbar) has the option to move the mouse pointer and this is possible by altering some parameters on the computer where the software is installed. For this it is necessary to go to the folder where the player is installed by opening the "Run" window and typing ".4yousee"
The file to manipulate is called "settings.json" and we recommend opening it with specialized text editors such as Sublime Text or Notepad ++, however if you do not have these you can open it with Notepad. The information inside the file will look like the following image:
When the move parameter is set to false (as shown in the image above), the mouse cursor will not move. This means that if you, after manipulating the computer, left the cursor in the left corner, it will stay there and then disappear.
When the move parameter is set to true (as the image below shows), the mouse cursor will move to the center of the screen. This means that if you, after manipulating the computer, left the cursor in the left corner, it will move to the center of the screen and then disappear.
Set Cursor Position on Screen
- Step 1:
Open the file settings.json(1) found inside the C:\Users\Username\.4yousee folder or in C:\.4yousee:
- Step 2:
Set the move (1) field to true (2).
Then, enter the next information:
position: It is the field where the coordinates will be specified so that the cursor is located on the screen;
- x: Horizontal position where the cursor will be;
- y: Horizontal position where the cursor will be;
In case you want the cursor position to be horizontally (x) 150 and vertically (y) 200, the settings.json file will look like the following image:
- Step 3:
Save the file.
- Step 4:
- In Windows
In the taskbar, click on Reload Settings (1). If you do not have the program open, start it and the 4YouSee logo will appear on the taskbar.
- In Linux
If the robot is running at the time of configuration, it must be restarted using the following command:
Using Ubuntu 14.04
initctl --session restart 4youseeRobot
Using Ubuntu 16.04 o 18.04
systemctl --user restart 4youseeRobot
In case the Robot is not being executed, it needs to be started for the settings to be applied.
Set cursor position on two or more screens
In case of two or more screens, if the move parameter is enabled, the cursor will be in the center of the first screen. To configure the cursor position when the player is on two or more screens it will be necessary to make a calculation to know where you want the cursor to be.
For example, in case you have two displays with the following dimensions:
First screen: 1,366 x 768
Second screen: 1,200 x 700
Place the cursor pointer in the center of the second screen
- Step 1: Calculate the value of x.
Since the intention is to leave the cursor in the middle of the second screen, the value of x will be the value of the first screen plus half of the second, I mean:
x= 1.366 (first screen dimension) + 600 (half of the second screen)
Finally the horizontal value of the cursor would be x=1.966
- Step 2: Calculate the value of y.
As the intention is to leave the cursor in the middle of the second screen, the value of and will be the value of the second screen, since it is on it that you want to place, that is:
- Step 3: Edit the Settings.json file mentioned in step 1 and configure it to be as shown in the following image.
It is important that it be identical as this image shows, considering the signs.
Now, run steps 4 and step 5 in the example for the settings to be applied.