Re: Mouse coordinates to output file
François Schosseler <[email protected]> Sat, 12 Mar 2022 14:48:52 +0100
| Newsgroups | gmane.comp.graphics.gnuplot.user |
|---|---|
| Message-ID | <[email protected]> |
Le 11/03/2022 à 17:28, David Brant a écrit :
> Correction!
> I must have moved mouse after click, but before return.
> Just tried again carefully without moving and it looks spot on 🙂
>
> Just wondered if it might be possible to remove the enter(return)
> option to make it a one click step?
Well then maybe test on another key to quit the loop like :
set print 'your_file.txt'
pause mouse key "Set point, click=validate, your key=[esc]\\n"
until ( MOUSE_KEY == your choice of escape key) {
print MOUSE_X, MOUSE_Y
pause mouse key
}
I don't remember why I used the first version. It was some time ago.
F.
_______________________________________________
gnuplot-info mailing list
[email protected]
Membership management via: https://lists.sourceforge.net/lists/listinfo/gnuplot-info