Re: FVWM: Binding a mouse click to a key press

From: Mikhael Goikhman <migo_at_homemail.com>
Date: Sun, 21 Apr 2002 17:56:04 +0000

On 19 Apr 2002 22:52:31 +0100, Andy Arbon wrote:
>
> I have an icon on my desktop which when clicked causes a panel
> containing other apps to slide out from the side. What I'd like to do is
> add in a keyboard binding to trigger the panel slide in/out. Can anyone
> tell me how to do that?
>
> I've included a few relevant lines below for illustration
>
> #
> *BarButtons: (Panel(left, delay 0, steps 16, position 100 270p, smooth) SubPanel "Module FvwmButtons SubPanel") Icon mini.penguin.xpm
>
> # To define the panel as an instance of
> # FvwmButtons with a different name:
> *SubPanel: (1x10 Swallow (NoClose, UseOld) licq 'Exec licq &')
> *SubPanel: Geometry 150x500-100+100
> *SubPanel: (Swallow XClock 'Exec xclock -digital -bg beige -update 1 -geometry 100x20&')
> *SubPanel: (1x2 Swallow XLoad 'Exec xload -hl black -bg beige -fg blue -update 1 -jumpscroll 1 -label "CPU Load" &')
> *SubPanel: (1x4 Swallow FvwmPager "FvwmPager 0 3")

Try this in 2.4.x:

  AddToFunc SimulateClickOnButtonBar
  + I Next (BarButtons, CirculateHit) WarpToWindow 50 50
  + I FakeClick depth 0 wait 200 press 1 wait 100 release 1

  Key C A MC SimulateClickOnButtonBar

Press Ctrl-Alt-C anywhere to collapse/expand your panel.

If you use 2.5.x, you may even restore the original pointer position,
but I don't give an example for this, since there soon be a better way.

Regards,
Mikhael.
--
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 Sun Apr 21 2002 - 12:56:55 BST

This archive was generated by hypermail 2.3.0 : Mon Aug 29 2016 - 19:37:53 BST