gl00se 0 Posted May 24, 2016 Report Share Posted May 24, 2016 (edited) Hey there! I just started using uBot recently and it's an amazing piece of software. Unfortunately, I have a small problem, which I am sure can be fixed really fast! To explain my situation, when I am running this bot in the uBot, it's working perfectly, no errors what so ever, but when I compile it and make it a standalone .exe, it won't open the file from a folder anymore. Basically, what happens is that a dialog windows appears so that I can choose a file. The whole point of writing this bot was NOT to do that hehe . Hopefully, I explained it well enough. If you can see from the source code, the problem appears right after the "Upload the photo". Thanks! Edited May 24, 2016 by gl00se Quote Link to post Share on other sites
pash 504 Posted May 24, 2016 Report Share Posted May 24, 2016 Information you too fewAt least the sample code. File compile (.exe). Quote Link to post Share on other sites
gl00se 0 Posted May 24, 2016 Author Report Share Posted May 24, 2016 ui text box("Minimal Value of Cycles",#minVal) ui text box("Maximal Value of Cycles",#maxVal) ui text box("Minimal Pause (Seconds)",#minPause) ui text box("Maximal Pause (Seconds)",#maxPause) ui text box("Full Path for Picture Upload Folder",#picUpload) ui text box("Full Path for Title Upload File",#titleUpload) loop($rand(#minVal,#maxVal)) { allow popups("No") click(<id="dropdownAdd">,"Left Click","No") wait for browser event("Everything Loaded","") click(<innertext="Upload a Photo">,"Left Click","No") wait for browser event("Everything Loaded","") add list to list(%photos,$get files(#picUpload,"Yes"),"Delete","Global") change file field(<name="imageToUpload">,$next list item(%photos)) click(<value="Upload">,"Left Click","No") wait(10) change dropdown($element offset(<tagname="option">,0),"Amateur") click($element offset(<tagname="option">,0),"Left Click","No") change dropdown(<name="board">,"Just some fine looking women") add list to list(%title,$list from file(#titleUpload),"Delete","Global") type text(<name="title">,$random list item(%title),"Standard") click(<name="submit">,"Left Click","No") wait($rand(#minPause,#maxPause)) } This is the source code. Just a tip, the website in question is NSFW. Quote Link to post Share on other sites
pash 504 Posted May 24, 2016 Report Share Posted May 24, 2016 No, what's wrong for code.checkhttps://www.google.com/search?q=Compiled+Bot+Can't+Open+site:network.ubotstudio.com Quote Link to post Share on other sites
gl00se 0 Posted May 24, 2016 Author Report Share Posted May 24, 2016 I said that I can open the compiled bots. Here is the ubot file, could you please check and see if it's working for you? But you have to compile it and then run it. You will also need one text file with some generic titles such as "Horny babe", etc. and one folder with few images.sex com bot.ubot Quote Link to post Share on other sites
pash 504 Posted May 24, 2016 Report Share Posted May 24, 2016 try ui text box("Minimal Value of Cycles",#minVal) ui text box("Maximal Value of Cycles",#maxVal) ui text box("Minimal Pause (Seconds)",#minPause) ui text box("Maximal Pause (Seconds)",#maxPause) ui text box("Full Path for Picture Upload Folder",#picUpload) ui text box("Full Path for Title Upload File",#titleUpload) clear list(%photos) clear list(%title) add list to list(%photos,$get files(#picUpload,"Yes"),"Delete","Global") add list to list(%title,$list from file(#titleUpload),"Delete","Global") loop($rand(#minVal,#maxVal)) { allow popups("No") click(<id="dropdownAdd">,"Left Click","No") wait for browser event("Everything Loaded","") click(<innertext="Upload a Photo">,"Left Click","No") wait for browser event("Everything Loaded","") change file field(<name="imageToUpload">,$next list item(%photos)) click(<value="Upload">,"Left Click","No") wait(10) change dropdown($element offset(<tagname="option">,0),"Amateur") click($element offset(<tagname="option">,0),"Left Click","No") change dropdown(<name="board">,"Just some fine looking women") type text(<name="title">,$random list item(%title),"Standard") click(<name="submit">,"Left Click","No") wait($rand(#minPause,#maxPause)) } Quote Link to post Share on other sites
gl00se 0 Posted May 24, 2016 Author Report Share Posted May 24, 2016 (edited) Hey, thanks. Your code is working, but that was never the problem. After I run complied .exe, the bot won't choose files from the folder, it is opening a window dialog instead. That is the problem all along, not the code. Edited May 24, 2016 by gl00se 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.