Hi,
first of all many thanks for implementing function plugins for data handling.
It would be helpfull if this concept would be extended to get information from gnuplot like the Mouse coordinates and Mouse clicks and pressed keys.
e.g.
import for mouse coordinates from "sharedobj[:symbol]"
import for bind {allwindows} [<key-sequence>] from "sharedobj[:symbol]"
best regards
Norbert
Your request is not clear. In what way would that be different from importing a function using the current command and then binding it to a hotkey using the "bind" command?
Ok, I did not know that the importet functions can be used for this purpose.
Regarding the mouse:
Why is bind restrictet to Button1 and why is the Shift modifyer not useable ?
Why only Button1? I suppose because binding the other mouse buttons would break labeling and zooming.
Shift:
But yes, it would be possible to extend the "bind" syntax to allow "Shift-Button1" as an argument. "Alt-Button1" and "Ctrl-Button1" already work.
Labeling is one of the reasons for my request.
It would be nice if some time "Shift-Alt-Button2" etc would work.
Thanks a lot
Norbert
Now in 5.3
Better late than never?
Hi,
Am Sun, 14 Oct 2018 05:50:00 -0000
schrieb "Ethan Merritt" sfeam@users.sourceforge.net:
I tried to figure out how this work, but there is no documentation nor
an example available. It would be nice to have a skeleton for such
funtions. Or better I did not find any.
Please provide both, because without it it takes probably much more
time to find out the requirements than to write usefull functions.
Thanks a lot.
Norbert
Related
Feature Requests:
#402Am Sun, 14 Oct 2018 05:50:00 -0000
schrieb "Ethan Merritt" sfeam@users.sourceforge.net:
In any Case :)
Thanks!
Best regards
Norbert
Related
Feature Requests:
#402Sorry if I was not clear. What's now in 5.3 is the ability to bind mouse keys 2 or 3, including modifiers alt- ctrl- shift-.
I may not understand what you are asking for beyond that. Gnuplot has for a long time made the mouse coordinates and key captures available in the user variables MOUSE_foo. For example after typing
<alt-f>
in response to "pause mouse key"You are free to pass any or all of these values to an external library routine. You could even bind such a library call to the key press. Does that help?
Last edit: Ethan Merritt 2018-10-14