FAQFAQ   SearchSearch   UsergroupsUsergroups   RegisterRegister   ProfileProfile    Log inLog in   RSS Feed

can I change variables in an external script?

 
Post new topic   Reply to topic    Salling Software Forums Forum Index -> Scripting Salling Clicker for Mac
View previous topic :: View next topic  
Author Message
kseiferlin
Junior Member


Joined: 05 Jun 2006
Posts: 28

PostPosted: Thu Jun 29, 2006 10:37 am    Post subject: can I change variables in an external script? Reply with quote

I have a script that calls an external script using the "execute uuid" method. In the external script I declared a property, and its value is changed in the external script. Can I access the (changed) value in the calling script? If not, can I return variables to the calling script when I use "run script"?

Load script doesn't work- it does for some reason not return to the calling script. The first statement after load script, execute script and run script are never executed.

Any method to pass information back to the calling script would help. Is there anyone who can suggest something?
Back to top
View user's profile Send private message
salling
Site Admin


Joined: 27 Jul 2004
Posts: 7498
Location: Stockholm, Sweden

PostPosted: Thu Jun 29, 2006 4:06 pm    Post subject: Reply with quote

Hi,

You have two options:

1. Don't use multiple scripts...

2. Pass information forward/backward through some common (temp) file.

Best.
--
Jonas
Back to top
View user's profile Send private message Send e-mail Visit poster's website
kseiferlin
Junior Member


Joined: 05 Jun 2006
Posts: 28

PostPosted: Thu Jun 29, 2006 5:49 pm    Post subject: Reply with quote

Thanks, Jonas.

It at least saved me googling for a solution. I just copied the template, added specific functions to it and still call it using execute uuid. Works fine. My only conern was that I would have to change many scripts that use the called sub-script when I find ways to improve it. Anyway, it works, and thanks for clarification.

Karsten
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Salling Software Forums Forum Index -> Scripting Salling Clicker for Mac All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group