All:
I recently saw a question and several answers on this mailing 
list that inspired me to finally play with functions and FvwmButtons 
a little more.  I don't see how to implement what I want to do, 
though, and any advice would be appreciated.  
I am using fvwm 2.2.2 with FvwmCPP on Solaris and/or Linux, and 
although I don't use Netscape to read my E-mail many people 
using my fvwm2rc file do.  I want to provide a Netscape button 
in FvwmButtons that does three jobs:
        Mouse button 1: focus or start netscape
        Mouse button 2: iconize or de-iconize netscape
        Mouse button 3: 
                if( there is a "MailThread" window ) then
                        focus it
                else
                        if( there is a Netscape window ) then
                                # have it open a MailThread
                                netscape -remote 'openInbox'
                        else
                                # start a new NS process in mail
                                netscape -mail
                        endif;
                endif;
Buttons 1 and 2 were easy, thanks to the information on the 
mailing list last week.  
This is for button 1:
        AddToFunc "StartOrFocusNetscape"
        + I None (Netscape*) exec netscape -install
        + I Next (Netscape) Iconify -1
        + I Next (Netscape) Focus
Button 2 just does:
        'Prev (Netscape) Iconify toggle'
Button 3 is too complicated and I don't see that there is any syntax 
that will handle it.  If you could combine conditions then it 
could look similar to the following:
  AddToFunc NSMailFunction
  + "I" Next (MailThread) Iconify -1
  + "I" Next (MailThread) focus
  + "I" None (MailThread) Next(Netscape) Exec exec netscape -remote 'openInbox'
  + "I" None (MailThread) None(Netscape) Exec exec netscape -mail
of course, that is not valid syntax.  Is there some other way 
to do this?  I didn't see it in the manpages or FAQ.  Thanks 
in advance for any help.  
-----
Stephen P. Hill
sph_at_enteract.com
--
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 Tue Sep 28 1999 - 00:25:31 BST