Anyone:
Lately I’ve run up against a serious roadblock to a script I’m writing.
What I need from someone is try out this simple test script and tell me if it crashes ZB2 for them, too.
If so, I’m wondering if anyone can explain what causes the problem. Is it the code? Is there other code I should be using?
To make things more complicated, I’ve found that it crashes ZB2 consistantly IF IT IS THE FIRST SCRIPT RUN AFTER OPENING ZB2. Otherwise, once ZB2 has been up and running for a while, and I’ve loaded other scripts first, running this little test script will only SOMETIMES crash ZB2.
Is this just me or can someone else duplicate the problem?
Here’s the test script (run right after starting ZB2 and press Save Light):
// Light save and load test - Svengali
[VarDef,SourceLight,“testlight.zli”]
[IButton,“save light”,“put”,
[FileNameSetNext,SourceLight]
[IKeyPress,13,[IPress,LIGHT:Save]]
]
[IButton,“load light”,“get”,
[FileNameSetNext,SourceLight]
[IKeyPress,13,[IPress,LIGHT:Load]]
]
Thanks for any feedback, Sven
p.s. What the script buttons do is automatically save the current light setup to a predesignated file, then reload it.
[edit]
Here’s the txt file…