On Thu, Mar 13, 2003 at 04:22:50PM +0100, Remko Troncon wrote:
> > If you  know the position of  a button, you could  use the WarpPointer
> > command to place the pointer on the button and then press <return>.
> 
> Can you send a return event with an FVWM command ?
No, that does not work reliably.  I tried it once, but it is so
flaky that I removed the code.  Many applications don't accept
keyboard input when not focused.
While we are talking about simulating key presses:  When the
pointer is already over the button you can as well simulate a
button press.  It does not work perfectly either, but much
better than simulating key presses.  Try
  Next (FvwmButtons) WarpToWindow <x> <y>
  FakeClick depth <d> press 1 release 1
<x>, <y> = coordinates of button inside the window
<d> = the 'depth' of the window that should receive the events,
      try 3 first and if that does not work, try higher values.
      1 would be the root window and 2 the frame window.
Bye
Dominik ^_^  ^_^
--
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 Mar 13 2003 - 09:47:23 GMT