Jump to content
UBot Underground

Compiled Bot Can't Open A File From Folder.


Recommended Posts

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!

post-28729-0-45790200-1464107227_thumb.jpg

Edited by gl00se
Link to post
Share on other sites
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.

Link to post
Share on other sites

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

Link to post
Share on other sites

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))
}
Link to post
Share on other sites

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 by gl00se
Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...