fakankun 0 Posted November 10, 2010 Report Share Posted November 10, 2010 ok so what i want to do it access different scripts from my ui. is that possible? like say a click this drop down and three option pop up, one to create accounts, one to scrap content and one to post to bookmarks. is it possible to design the ui this way? Quote Link to post Share on other sites
fakankun 0 Posted November 10, 2010 Author Report Share Posted November 10, 2010 something like this:http://www.youtube.com/watch?v=tP7Ek8zx6V0 she has a scraper, then she switches to the downloader, all in the same bot, but thru the ui Quote Link to post Share on other sites
MiriamMB 63 Posted November 10, 2010 Report Share Posted November 10, 2010 by creating a script for downloading and a script for scraping. The scripts will show up in your compiled bot when you're done. Quote Link to post Share on other sites
fakankun 0 Posted November 10, 2010 Author Report Share Posted November 10, 2010 so i shouldn't stack them all on the same script then right? cause i have a login script, a scraper, and submitter. they're all stack on top of each other i should leave them in separate tabs you mean? Quote Link to post Share on other sites
MiriamMB 63 Posted November 10, 2010 Report Share Posted November 10, 2010 by the way, that video is of an old version of UBot Studio. When you compile, you will get tabs instead of a menu with the different scripts. You can try breaking your script up into different scripts to see if that's what you prefer. It depends on you and what works best for you. Quote Link to post Share on other sites
fakankun 0 Posted November 10, 2010 Author Report Share Posted November 10, 2010 ok that looks good, with the tabs. can't believe i made software, super cool. one more question about this though, is it possible to have like check boxes for each site so that the software only visits the sites that are checked? so if one site goes down or something instead of me having to remake the software i can just skip it Quote Link to post Share on other sites
JohnB 255 Posted November 10, 2010 Report Share Posted November 10, 2010 Yes, you can do that very easily. How many sites are you working with? The number of sites will determine the best course of action to take. Quote Link to post Share on other sites
fakankun 0 Posted November 10, 2010 Author Report Share Posted November 10, 2010 about 13 but i may add more, and i know for sure in future bots i will have at least 30 Quote Link to post Share on other sites
JohnB 255 Posted November 10, 2010 Report Share Posted November 10, 2010 Ok, that's not bad at all. What I would do is use the UI Window and place the check boxes in there. The way I accomplish this is place each siye in a sub, create an if/then statement for each site like this: If-->Evaluate--> #checkbox variable = False Then-->run sub(site name) That way if the box is checked it won't run that sub. John Quote Link to post Share on other sites
fakankun 0 Posted November 10, 2010 Author Report Share Posted November 10, 2010 lol, wow that's freakin awesome! ok, now i have another question i made 3 scripts, one had ui elements i opened a NEW bot and made 3 tabs, one for each of the separate scripts i did the include thing in each tab and added one bot per tab, and i did the run sub thing too for each tab but the third tab didn't have the ui elements like the third script had by itself even more when i tried to add the ui to the "included" bot the variable didn't come up that it was suppose to apply to within the sub what im wondering is, do i have to set the variable again? Quote Link to post Share on other sites
IRobot 43 Posted November 10, 2010 Report Share Posted November 10, 2010 UI elements cannot be accessed from an included bot. Quote Link to post Share on other sites
IRobot 43 Posted November 10, 2010 Report Share Posted November 10, 2010 Please correct me if I'm wrong, but don't you mean: If-->Evaluate--> #checkbox variable = True Then-->run sub(site name) That way if the box is unchecked it won't run that sub. Quote Link to post Share on other sites
fakankun 0 Posted November 10, 2010 Author Report Share Posted November 10, 2010 UI elements cannot be accessed from an included bot.oh ok, so i would have to set the variables again and set the ui elements again? and the variable within the sub would read it all? Quote Link to post Share on other sites
fakankun 0 Posted November 10, 2010 Author Report Share Posted November 10, 2010 Ok, that's not bad at all. What I would do is use the UI Window and place the check boxes in there. The way I accomplish this is place each siye in a sub, create an if/then statement for each site like this: If-->Evaluate--> #checkbox variable = False Then-->run sub(site name) That way if the box is checked it won't run that sub. Johnim running into an issue with the checkbox, first how do i get the ui checkbox into the ui window? second with the qualifier, i click evaluate, make the first value #checkbox, make condition =, but do i type true or false into the second value? or is there a way to add that qualifier? Quote Link to post Share on other sites
IRobot 43 Posted November 10, 2010 Report Share Posted November 10, 2010 so i would have to set the variables again and set the ui elements again? and the variable within the sub would read it all?You could set the variable in the main bot and pass it to the included bot via sub parameters. Quote Link to post Share on other sites
IRobot 43 Posted November 10, 2010 Report Share Posted November 10, 2010 im running into an issue with the checkbox, first how do i get the ui checkbox into the ui window?Just drag it into the ui window. Refresh, and access it via the Ubot Settings menu. second with the qualifier, i click evaluate, make the first value #checkbox, make condition =, but do i type true or false into the second value? Yes. Quote Link to post Share on other sites
fakankun 0 Posted November 10, 2010 Author Report Share Posted November 10, 2010 You could set the variable in the main bot and pass it to the included bot via sub parameters.what would that look like? i don't see anywhere to add variables to the include command or the run sub command Quote Link to post Share on other sites
IRobot 43 Posted November 10, 2010 Report Share Posted November 10, 2010 what would that look like? i don't see anywhere to add variables to the include command or the run sub commandIn the included bot add a sub. In that sub, add parameters (under the variable command). In the main bot, use 'run sub' to run the included bot's sub, and fill in the parameter's (variable's) values. Quote Link to post Share on other sites
fakankun 0 Posted November 10, 2010 Author Report Share Posted November 10, 2010 ok so bot 1 ---> make sub (set variables in that sub) main bot -----> include bot 1 -----> run sub (do i set the variables outside of the sub? because there is nowhere in the run sub command for parameters) Quote Link to post Share on other sites
IRobot 43 Posted November 10, 2010 Report Share Posted November 10, 2010 ok so bot 1 ---> make sub (set variables in that sub)No.Please read my post again. You will need to add parameters to bot 1, in order to see the included bot's sub's parameters in the main bot. Quote Link to post Share on other sites
fakankun 0 Posted November 10, 2010 Author Report Share Posted November 10, 2010 No.Please read my post again. You will need to add parameters to bot 1, in order to see the included bot's sub's parameters in the main bot.but i have added parameters in bot 1, but in the main bot all that shows is "include" and "run sub" the parameters from bot 1 work, like the lists and variables but the ui elements aren't showing in top part. sorry if im misunderstanding you Quote Link to post Share on other sites
fakankun 0 Posted November 10, 2010 Author Report Share Posted November 10, 2010 and i forgot to mention the ui aren't picking up the variables, which is the problem Quote Link to post Share on other sites
fakankun 0 Posted November 10, 2010 Author Report Share Posted November 10, 2010 No.Please read my post again. You will need to add parameters to bot 1, in order to see the included bot's sub's parameters in the main bot.here is a screen shot of what im talking about the first one is the parameters from bot 1, the second is the main bot with the include of bot 1 and the run sub of bot 1. the third is the me trying to add ui elements but they don't see the parameters from bot 1 Quote Link to post Share on other sites
IRobot 43 Posted November 10, 2010 Report Share Posted November 10, 2010 The first image shows that you've not added parameters to the rss submitter sub. To add a parameter, select it from under variable commands. Quote Link to post Share on other sites
fakankun 0 Posted November 10, 2010 Author Report Share Posted November 10, 2010 The first image shows that you've not added parameters to the rss submitter sub. To add a parameter, select it from under variable commands.im sorry i don't know what that means. what kind of parameter? 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.