theninjamanz 29 Posted March 15, 2010 Report Share Posted March 15, 2010 Hi there. I have some text files that need to be loaded for my ubot to work. Instead of having to manually find the txt file everytime I power up would it be possible for the script to load the location values automatically. IE. If I have a text file that contacts account information in a CSV.And the location of that file is/accounts/accounts.csv where / is the same location of the ubot, Is it possible to have those values loaded in when ubot starts up? Thanks Quote Link to post Share on other sites
crazyflx 22 Posted March 15, 2010 Report Share Posted March 15, 2010 What I'm about to say has only worked for my compiled bots, and only works when your .txt or .csv file is stored in the same folder (or subfolder) as your compiled .exe file. If you're looking to have the values loaded by uBot without you having to find the file every time, you could run this command: add to listlist from file/accounts/accounts.csv It literally should look just like that. When you leave out everything from the front of the "/accounts/accounts.csv" file, the compiled bot just assumes that the file it is looking for is stored in the same folder as the .exe file itself. Quote Link to post Share on other sites
theninjamanz 29 Posted March 15, 2010 Author Report Share Posted March 15, 2010 cheers for that. Quote Link to post Share on other sites
crazyflx 22 Posted March 15, 2010 Report Share Posted March 15, 2010 No problem Quote Link to post Share on other sites
easternfade 0 Posted March 15, 2010 Report Share Posted March 15, 2010 What I'm about to say has only worked for my compiled bots, and only works when your .txt or .csv file is stored in the same folder (or subfolder) as your compiled .exe file. If you're looking to have the values loaded by uBot without you having to find the file every time, you could run this command: add to listlist from file/accounts/accounts.csv It literally should look just like that. When you leave out everything from the front of the "/accounts/accounts.csv" file, the compiled bot just assumes that the file it is looking for is stored in the same folder as the .exe file itself. Interesting.. I could never get this to work in a non-compiled bot. Have you tried loading or saving dynamically created file names? e.g. /accounts/accounts-{1}.csv I have never been able to get this to work unfortunately. It just does not create the file at all and silently fails. Quote Link to post Share on other sites
alcr 135 Posted March 15, 2010 Report Share Posted March 15, 2010 Why not just always have the files in the document folder? Much more stable for now (yes we are going to implement a $local folder) Quote Link to post Share on other sites
jewcat 0 Posted March 16, 2010 Report Share Posted March 16, 2010 Can't wait for a $local folder to come in. until then I'll have to try this out with a compiled bot. Quote Link to post Share on other sites
theninjamanz 29 Posted March 17, 2010 Author Report Share Posted March 17, 2010 $local sounds great. But what would be really special is $savestate. Which will save everything as you have it loaded in all UI fields 1 Quote Link to post Share on other sites
webautomationlab 21 Posted March 17, 2010 Report Share Posted March 17, 2010 $local sounds great. But what would be really special is $savestate. Which will save everything as you have it loaded in all UI fields THIS ^^^ 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.