AutomationNinja 194 Posted December 6, 2012 Report Share Posted December 6, 2012 Heyall' I am trying to build a bot that switches proxies. But no dice so far. So in my UI I have a check box to "use proxies" a drop down so they choose IP or HTTP, a private proxie file, a field for private proxie user name and another field for private proxie password. I am also not sure what should have the bot do if they choose HTTP. I figured they could put their URL's in the private proxie file instead of the I.P.'s. - I figure that would work. Whaddya think? This is the code I am using: define Set PROXIE COMMANDS { clear list(%proxys) add list to list(%proxys, $list from file(#privateproxiefile), "Delete", "Global") set list position(%proxys, 0)}define Change Proxy { if($comparison(#useproxies, "=", $true)) { then { if($comparison(#proxietype, "=", 2)) { then { set proxy credentials(#privateproxieusername, #privateproxipassword) } change proxy($next list item(%proxys)) else { if($comparison(#proxietype, "=", "HTTP")) { then { navigate(%proxys, "Wait") } else { } } } } } else { } }}Set PROXIE COMMANDS()Change Proxy() Quote Link to post Share on other sites
VaultBoss 310 Posted December 6, 2012 Report Share Posted December 6, 2012 I am also not sure what should have the bot do if they choose HTTP. Get stuck, maybe?.. Quote Link to post Share on other sites
Twitter Dominator 125 Posted December 6, 2012 Report Share Posted December 6, 2012 your in luck i was just re writing one for private proxies ui check box("Use Proxies", #use proxies) ui open file("Proxies", #proxies) ui text box("Proxy Username", #privateproxyusername) ui text box("Proxy Password", #privateproxypassword) clear list(%proxies) add list to list(%proxies, $list from file(#proxies), "Delete", "Global") if($comparison(#use proxies, "=", "true")) { then { change proxy($random list item(%proxies)) set proxy credentials(#privateproxyusername, #privateproxypassword) navigate("https://www.whatismyip.com", "Wait") wait(4) } } 3 Quote Link to post Share on other sites
Twitter Dominator 125 Posted December 6, 2012 Report Share Posted December 6, 2012 Heyall' I am trying to build a bot that switches proxies. But no dice so far. So in my UI I have a check box to "use proxies" a drop down so they choose IP or HTTP, a private proxie file, a field for private proxie user name and another field for private proxie password. I am also not sure what should have the bot do if they choose HTTP. I figured they could put their URL's in the private proxie file instead of the I.P.'s. - I figure that would work. Whaddya think? This is the code I am using: define Set PROXIE COMMANDS { clear list(%proxys) add list to list(%proxys, $list from file(#privateproxiefile), "Delete", "Global") set list position(%proxys, 0)}define Change Proxy { if($comparison(#useproxies, "=", $true)) { then { if($comparison(#proxietype, "=", 2)) { then { set proxy credentials(#privateproxieusername, #privateproxipassword) } change proxy($next list item(%proxys)) else { if($comparison(#proxietype, "=", "HTTP")) { then { navigate(%proxys, "Wait") } else { } } } } } else { } }}Set PROXIE COMMANDS()Change Proxy() part of the problem with your code was the 3 different spellings of proxi proxy and proxie keep it all proxy ( correct spelling ) and it should also work 1 Quote Link to post Share on other sites
AutomationNinja 194 Posted December 6, 2012 Author Report Share Posted December 6, 2012 thanks I will plug it in as see what happens. One more question. in my proxy file I only had IP's am I suppose to put the port in their as well? Like so: ip,port Quote Link to post Share on other sites
Twitter Dominator 125 Posted December 6, 2012 Report Share Posted December 6, 2012 thanks I will plug it in as see what happens. One more question. in my proxy file I only had IP's am I suppose to put the port in their as well? Like so: ip,port yes put the 127.1.1.1:80 (example ip only) port in the text file 1 Quote Link to post Share on other sites
AutomationNinja 194 Posted December 6, 2012 Author Report Share Posted December 6, 2012 ok cool Quote Link to post Share on other sites
AutomationNinja 194 Posted December 6, 2012 Author Report Share Posted December 6, 2012 Any idea what this script error means? Error: Invalid URI: The hostname could not be parsed Source: Untitled Bot > Untitled Script > if > then > change proxy Quote Link to post Share on other sites
AutomationNinja 194 Posted December 7, 2012 Author Report Share Posted December 7, 2012 oh damn I think I just realized what I did. man I am slow.... Moral of the story: Don't do drugs and stay in school. 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.