On Thu, Jul 18, 2002 at 09:08:56AM +0200, Uwe Pross wrote:
> On July 18, 2002 at 00:02 -0600, Rob 'Feztaa' Park wrote:
> >
> > Why not just use a clipboard? Then the strings are inserted with
> > something called "the middle mouse button". You can get fancy clipboard
> > applications that hold more than one string at once. Try freshmeat.
>
> I found a program called xclip which may be used to achieve what I
> want. It can set and read the xselection. So thanks for the clipboard
> hint.
>
> I tried to use it in conjunction with the fvwm FakeClick command but
> without success. Maybe someone has an idea why it does not work:
>
> DestroyFunc InsertTextInApplication
> AddToFunc InsertTextInApplication
> + I Exec echo -n $* | $[HOME]/bin/xclip
> + I FakeClick press 2 wait 250 release 2
>
> AddToMenu InsertPopup
> + "Insert 109141029347" Function InsertTextInApplication 109141029347
>
> When I select the menu entry above nothing happens. But I can insert
> the number above by pressing the middle mouse button afterwards.
As the description of the FakeClick command in the man page says,
there is no general solution to send clicks from fvwm to
applications. On one hand, applications may (but rarely do)
ignore events that were not generated by the X server. And on the
other hand events are sent to a specific sub window. They do not
propagate from the window on the bottom to the hierarchy up to the
first window that wants these events. There is no way to find out
the window in which the application expected the click. That's
the reason for the "depth" option of the FakeClick command. But
one depth setting may be good for one application and fail on
another one.
Bye
Dominik ^_^ ^_^
--
Dominik Vogt, mail: dominik.vogt_at_schlund.de, phone: 0721/91374-382
Schlund + Partner AG, Erbprinzenstr. 4-12, D-76133 Karlsruhe
--
Visit the official FVWM web page at <URL: http://www.fvwm.org/>.
To unsubscribe from the list, send "unsubscribe fvwm" in the body of a
message to majordomo_at_fvwm.org.
To report problems, send mail to fvwm-owner_at_fvwm.org.
Received on Thu Jul 18 2002 - 03:18:00 BST