Please note that you can subscribe to the individual forums. A subscription for news only covers the news.
calling multiple procedures after openprogam
First of all, my compliments on this great program! I'm currently trying to rewrite a script from V2 that I've enjoyed a few years ago (Master JOHN), working on 4.0 B5 now. Just at the very start of rewriting though. And I can't solve the issue below, so I hope you can help me with this. Not sure if it is a bug or whether I'm doing something wrong.
I'm trying to write a 'solver' procedure that should help fix issues when a status needs to be reset or a flag needs to be removed/set. Idea is to run the procedure every time the program starts.
So in events I call 'OpenProgram=welcome'
In welcome I have the following lines:
;this line runs fine every time the program is opened
I think this line isn't needed, but figured I'd try
; this line only runs the first time a script starts (so after all reports are deleted)
; this line runs fine every time the program is opened
Just for completeness, the flags and procedures look like this:
EndReport=Ready to start, Sir, i've maximized the screen
;this procedure can be used in order to solve problems
text=This script requires version 4.0 beta 3 or higher of VirtualMaster
I'm wondering why the 'test' flag only is set once and not every time the program starts.
I've done some testing and it seems to be related to the condition. If I remove the statement if=.. it does seem to run. Is this intended behavior or did I misinterpret how this condition should work?
It is not intended. august and day09 should work as normal flags. Can you verify in the report that they are set when the program starts and before the solver is called?
To do more, I must have a script that causes the problem and the corresponding report. If you can't solve it yourself, you can send them to firstname.lastname@example.org.
At the moment I am quite busy with the new version and my own sub, so I don't know how fast I will be able to look at it.
The problem is solved in the new beta 8.