Hi!
i wrote a funktion which creates a FvwmForm in a file to print out messages]DestroyFunc FuncShowMultipleMessages
AddToFunc FuncShowMultipleMessages
- I Piperead ‘echo SetEnv MsgCount $1’
- I Piperead
echo 'DestroyModuleConfig FvwmForm-MultipleMessages: *' > ${FVWM_USERDIR}/FvwmForm-MultipleMessages; \ echo '*FvwmForm-MultipleMessages: WarpPointer' >> ${FVWM_USERDIR}/FvwmForm-MultipleMessages; \ echo "*FvwmForm-MultipleMessages: Title \\"$0\\"" >> ${FVWM_USERDIR}/FvwmForm-MultipleMessages
- I Piperead
start=1; MsgCount=$(($MsgCount+1)); while [ "$start" -lt "$MsgCount" ]; do \ echo '*FvwmForm-MultipleMessages: Line left' >> ${FVWM_USERDIR}/FvwmForm-MultipleMessages; \ echo "*FvwmForm-MultipleMessages: Text \\"\\$MSG${start}\\"" >> ${FVWM_USERDIR}/FvwmForm-MultipleMessages; \ start=$(($start+1)); \ done
- I Piperead
echo '*FvwmForm-MultipleMessages: Line center' >> ${FVWM_USERDIR}/FvwmForm-MultipleMessages; \ echo '*FvwmForm-MultipleMessages: Button quit \" Ok \"' >> ${FVWM_USERDIR}/FvwmForm-MultipleMessages; \ echo '*FvwmForm-MultipleMessages: Command !(rm -f ${FVWM_USERDIR}/FvwmForm-MultipleMessages)' >> ${FVWM_USERDIR}/FvwmForm-MultipleMessages
- I Schedule 100 Module FvwmForm FvwmForm-MultipleMessages “MSG1=$2” “MSG2=$3” “MSG3=$4” “MSG4=$5” “MSG5=$6” “MSG6=$7” “MSG7=$8” [/code]
It will call e.g. over a key like this]key K A CM FuncShowMultipleMessages “Mouse Bindings for Titlebar” 7
“Mouse 1: Drag moves window”
" Maximize on double click"
“Mouse 2: Drag moves window”
" Raise or lower with click"
“Mouse 3: WindowOps2 menu with click”
" WindowsOps menu with ALT + click"
“Mouse 4/5: Rolling wheel up/down shades/unshades”[/code]
Now, I’ve more than 9 lines and I want to changeecho "*FvwmForm-MultipleMessages: Text \\"\\$MSG${start}\\"" >> ${FVWM_USERDIR}/FvwmForm-MultipleMessages; \
respectively[code] - I Schedule 100 Module FvwmForm FvwmForm-MultipleMessages “MSG1=$2” “MSG2=$3” “MSG3=$4” “MSG4=$5” “MSG5=$6” “MSG6=$7” “MSG7=$8” “MSG8=$9”
[/code]
intoecho "*FvwmForm-MultipleMessages: Text \\"$${start}\\"" >> ${FVWM_USERDIR}/FvwmForm-MultipleMessages; \
and[code] - I Schedule 100 Module FvwmForm FvwmForm-MultipleMessages
[/code]
but the invocation won’t work. I’ve tried several implementations with 2,3,4, $ signs, without the {}, with a [] but nothing works. I’ve searchd in the forum, red Fvwm manpages, but found nothing which worked as expected. The only thing I’ve got is the content of the start variable (1, 2, 3, … or ${start}) but not the content of $1, $2, $3, …
What do I wrong?
Thanks in advance,
Thomas