Aymen 385 Posted May 25, 2014 Report Share Posted May 25, 2014 This is a small source code i coded today for few people who needed it!Basically this is another workaround for local variables leakage , this will allow you to save data and retrieve it just like local variables but (hopefully) won't get messed up! PS: this uses the file management plugin so make sure to install it first! Enjoy!Thread Safe Variables.ubot 2 Quote Link to post Share on other sites
Marton 48 Posted May 25, 2014 Report Share Posted May 25, 2014 Thanks again Aymen!If you had to choose would you use this approach or your local dictionary plugin? (performance wise) Marton Quote Link to post Share on other sites
Kreatus (Ubot Ninja) 422 Posted May 26, 2014 Report Share Posted May 26, 2014 Is there a new version of file management plugin?I cant open the sample file above.. Quote Link to post Share on other sites
Marton 48 Posted May 26, 2014 Report Share Posted May 26, 2014 Is there a new version of file management plugin?I cant open the sample file above.. I don't remember the last time I updated, but I have version 1.9.0.0 and the above script works with it. Quote Link to post Share on other sites
Aymen 385 Posted May 26, 2014 Author Report Share Posted May 26, 2014 Thanks again Aymen! If you had to choose would you use this approach or your local dictionary plugin? (performance wise) Marton the local dictionary plugin is mainly built to work with the http post plugin so i'm not sure about the other plugins , use the local dictionary as a first choice and keep this workaround as a substitute Is there a new version of file management plugin?I cant open the sample file above.. i'm not sure what version you use!Just go to the file management thread and download the plugin from there , it is the latest version ! 1 Quote Link to post Share on other sites
Kreatus (Ubot Ninja) 422 Posted May 26, 2014 Report Share Posted May 26, 2014 I am using 1.7.0.0 freshly download from your thread.. Quote Link to post Share on other sites
Aymen 385 Posted May 26, 2014 Author Report Share Posted May 26, 2014 I am using 1.7.0.0 freshly download from your thread.. try this link :https://dl.dropboxusercontent.com/u/53719172/files/File%20Management.zip Quote Link to post Share on other sites
Bot-Factory 602 Posted June 2, 2014 Report Share Posted June 2, 2014 Hi Aymen, I did some test with this approach. Unfortunately there are situations where I don't have 4 entries in the list.I don't know if that is a threads error or timing or something else. But when you add a loop while to your code, then you will see what I mean after a while: clear list(%randoms)folder name($special folder("My Documents"), "TestLocalWorkaround")ThreadsLoop()wait(1)loop while($comparison($list total(%randoms), "=", 4)) { clear list(%randoms) ThreadsLoop() wait(2)}define ThreadsLoop { thread { SetValue("random", $random text(10)) add item to list(%randoms, "Thread id : {$plugin function("File Management.dll", "$get threadID")} || value : {$GetValue("random")}", "Don\'t Delete", "Global") } thread { SetValue("random", $random text(10)) add item to list(%randoms, "Thread id : {$plugin function("File Management.dll", "$get threadID")} || value : {$GetValue("random")}", "Don\'t Delete", "Global") } thread { SetValue("random", $random text(10)) add item to list(%randoms, "Thread id : {$plugin function("File Management.dll", "$get threadID")} || value : {$GetValue("random")}", "Don\'t Delete", "Global") } thread { SetValue("random", $random text(10)) add item to list(%randoms, "Thread id : {$plugin function("File Management.dll", "$get threadID")} || value : {$GetValue("random")}", "Don\'t Delete", "Global") }} Unfortunately I have no idea how to troubleshoot that further :-( Dan Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.