Hi all
Hi all,
I have a Runscript question.
Are scripts i call with runscript running parallel to the callerscript?
]]>
< ![CDATA[
Not exactly, they are run after the current script finishes its execution, or when the script displays a dialog
]]>
< ![CDATA[
so how wil it when i have something like this:
statement #1
statement #2
runscript xy
statement #3
statement #4
i have the problem when i have the code from script xy
inside the caller it work like i want. but when i do a runscript it doesn’t
]]>
< ![CDATA[
gerd reuter I can be wrong, but if the statements don’t have alerts they will be
#1
#2
#3
#4
xy
]]>
< ![CDATA[
So if I understand correct, you could try:
Runscript 12
Runscript xy
Runscript 34
]]>
< ![CDATA[
TrianguloY Helen Jappie
both is not what i want
in xy i ‘reset’ the properties of 4 similar items. e. g. the fontcolor to white in the steps after xy i set the fontcolor of 1 item to black.
when i do reset within the same script it works but not when i want to do this with the script xy. why i want? because i need the script xy often and i want to save code.
]]>
< ![CDATA[
I understand the problem, what you need is either a function call or some include statement.
Function call is not possible this way with javascript because the function would retain links to its creation context.
Maybe some unconditional include script is possible. It would embed the script content directly into the caller, but technically this is difficult. I am not sure I can do it.
]]>
< ![CDATA[
Pierre Hébert thank you pierre i can live with it how it is. the behaviour was a little bit strange for me, but it’s ok now. 😉
]]>
< ![CDATA[
Could one of TrianguloY’s script-writing scripts
addresssolve this problem? ]]>
< ![CDATA[
Carolyn Boyle I don’t think so. He is asking about the ability to run code from a different script, instead of just copy paste the piece of code
]]>
< ![CDATA[
It still seems to me there should be a way to do this with the existing tools. But I need to draw some pictures first to try to pin you down exactly how that might be done.
]]>