Quick question, I’m sure I’m just overlooking something:
I have a FvwmScript that has the function named “SingleClic” in it. Everything works fine, and when I click on the button the resulting code is executed.
Because you’re probably using FvwmCommand in the wrong way. If you can, enclose whatever evaluation you need to within a PipeRead command and just echo the sendtomodule command inside that.
But it does nothing. I’ve tried a whole bunch of other variations on this command, but no luck… or else I wouldn’t be posting
By the way… In the above example, running the moveweathermap.sh script works fine, without any FvwmCommand interaction, but this is more of a test of how to send a signal to a FvwmScript using FvwmCommand.
I’m only getting tiny sporadic pieces of information from you, Mike – it’s like having to do the whole “question → answer” thing in reverse. You give me some symptoms, and I then have to work out what the question was, and the interim that took you to the answer. :P It’s not fun, or meant to be that way. ;)
The reason why I suggest “PipeRead” to you is because it’s probably the command you ought to be using. So many people I have helped in the past have used FvwmCommand when it was utterly superfluous to their means.
However, despite my own efforts, SendToModule to my own FvwmScript failed for the SingleClic event. The snippet below however approximate it:
Main
Case message of
SingleClic :
Begin
Set $str2 = hellothere
ChangeTitle 1 $str2
End
10 :
Begin
Set $str2 = hellothere
ChangeTitle 1 $str2
End
End
Such that one can then do:
SendToModule somename SendString 1 10 somname
What’s contained within label “10:” is all that the single clic event would be doing. YMMV on this one — I am not a big FvwmScript user.