1 WindowTitle {FvwmScript-ComExample}
3 Font -adobe-helvetica-bold-r-*-*-12-*
9 Set $ComName = {ComExample-}$pid
11 Set $DATADIR = {xFVWM_DATADIRx}
13 # run fvwm-script-ComExample.pl
14 Do {Exec }$Perl{ -w }$DATADIR{/fvwm-script-ComExample.pl --com-name=}$ComName{ &}
17 Set $Startup = (SendMsgAndGet $ComName {startup} 1)
20 Set $tmp = {An error occur at startup!}
27 #----------------------------------------
34 Flags NoReliefString NoFocus
57 #---------------------------------------
66 Title {Send Msg Count}
71 Set $tmp = (SendMsgAndGet $ComName {count} 1)
80 Flags NoReliefString NoFocus
82 Title {No count Msg Send}
90 #---------------------------------------
99 Title {Send An Unknown Msg}
104 Set $tmp = (SendMsgAndGet $ComName {unknown} 1)
105 Set $tmp = {Returned value: }$tmp
114 Flags NoReliefString NoFocus
116 Title {No unknown Msg Send}
124 #---------------------------------------
125 # A "multilines" answer
133 Title {A "Multilines" Msg}
138 Set $tmp = (SendMsgAndGet $ComName {multilines} 1)
139 Set $t1 = (Parse $tmp 1)
140 Set $t2 = (Parse $tmp 2)
141 Set $t3 = (Parse $tmp 3)
152 Flags NoReliefString NoFocus
154 Title {No multiline Msg Send}
166 Flags NoReliefString NoFocus
168 Title {No multilines Msg Send}
180 Flags NoReliefString NoFocus
182 Title {No multilines Msg Send}
190 #---------------------------------------
203 # say to fvwm-script-ComExample.pl to exit the 0 says that we do not
205 Set $dummy = (SendMsgAndGet $ComName {exit} 0)