button with 2 mouse actions

Hi, I’d like a button with tow different actions for differnet mouse buttons but I cant’t get it to work…
mouse 1 should start 3ddesk
mouse 2 should give me next desk ( GotoDesk 1 0 0 3 ??? )
tried
*MyButtons1a: (1x1, Frame 0, Icon workspace.png, Action(Mouse 1) “Exec exec 3ddesk” Action(Mouse 2) " GotoDesk 1 0 0 3")
in sevral versions …didn;t work

any thoughts ???
:smiley: :smiley:

You’re missing a comma:

*MyButtons1a: (1x1, Frame 0, Icon workspace.png, Action (Mouse 1) "Exec exec 3ddesk",  Action (Mouse 2) "GotoDesk 1 0 0 3")

– Thomas Adam

nope… that aint the solution (altough it was missing in the above post).
Anyone got a button with two mouse-actions working ?

tnks

I think perhaps you’re missing what I’m saying. :slight_smile: It works for me. Just out of interest, what version of FVWM are you running?

– Thomas Adam

I dont use a buttons launcher since so many months ago, but I use to use thousand of them and even with 5 different actions attached to some of them. This config should really work:

*MyButtons1a: (1x1, Frame 0, Icon workspace.png, \
    Action (Mouse 1) "Exec exec 3ddesk",  \
    Action (Mouse 2) "GotoDesk 1 0 0 3")

If it does not, check that the applications are correct and in the path (in the case of GotoDesk check that the parameters are correct) and check also that the button is there (I assume that the icon appears, then it should be there). By the way, what does happen is you only bind one action to the button?