silk
Experienced
Posts: 32
|
Post by silk on Dec 12, 2020 14:55:53 GMT
Hi,
When using the readmouse instruction, mouse coordinates are saved in the following variables : MOUSE_X and MOUSE_Y. Then you can use these coordinates to relocate your bitmap where you clicked.
show circle 0 0 50 255 0 0 readmouse l 1 10000 range 1 1 hide 1 readmouse l 1 10000 relocate 1 MOUSE_X MOUSE_Y unhide 1 delay 5000
In this script you have to click on the red circle to make it disappear, and then it will reappear where you clicked again. Note that you can also store mouse coordinates in your own variables. For instance :
set $first_axis MOUSE_X set $second_axis MOUSE_Y
|
|