FAQFAQ   SearchSearch   UsergroupsUsergroups   RegisterRegister   ProfileProfile    Log inLog in   RSS Feed

Can you access a script's UUID from within the script

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


Joined: 30 Apr 2008
Posts: 29

PostPosted: Thu May 15, 2008 11:51 pm    Post subject: Can you access a script's UUID from within the script Reply with quote

and if so how....?

thanks.
Back to top
View user's profile Send private message Yahoo Messenger
milleph
Junior Member


Joined: 30 Apr 2008
Posts: 29

PostPosted: Fri May 16, 2008 4:43 am    Post subject: the point... Reply with quote

is that this would avoid having to replicate some much script and allow you to keep javascript in fewer (if not one) js file driven by multiple xml files. I'm writing some (hopefully) useful stuff and javascript's lack of a #include directive is truely painful.

Anyone?
Back to top
View user's profile Send private message Yahoo Messenger
milleph
Junior Member


Joined: 30 Apr 2008
Posts: 29

PostPosted: Sat May 17, 2008 1:10 pm    Post subject: Ah haah Reply with quote

just realized why i'm talking to myself - dumb question.....
Back to top
View user's profile Send private message Yahoo Messenger
salling
Site Admin


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

PostPosted: Tue May 20, 2008 6:51 pm    Post subject: Reply with quote

You cannot get the UUID per se. You can, however, use the global script property/variable "resourcesPath" to work out the path to the script bundle where the XML file and other resources may be.

Not sure if this is useful to your project, but I thought I should make a note of it anyways.

Best.
--
Jonas
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Salling Software Forums Forum Index -> Scripting Salling Clicker for Windows 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 can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group