Jump to content



Photo

Print Screen From .txt File

printscreen loop

  • Please log in to reply
1 reply to this topic

#1 ZonkDonkey

ZonkDonkey

    Member

  • Fellow UBotter
  • PipPip
  • 18 posts
  • OS:Windows 10
  • Total Memory:More Than 9Gb
  • Framework:v4.5+, unsure
  • License:Professional Edition

Posted 31 May 2016 - 05:06 PM

Hello,

 

I am trying to create a bot that will navigate to a list of websited defined in a text file and then run through the list to take a screenshot. I have a feeling I am going to need a loopwhile type command but I'm getting lost on how to set it up.

 

Here is roughly what I have so far:

 

define Screenshot(#screenshot) {
    clear list(%ScreenshotURLs)
    add list to list(%ScreenshotURLs,$list from file("{$special folder("Application")}\\screenshot_urls"),"Delete","Global")
    LoadAndWait()
    navigate($next list item(%ScreenshotURLs),"Wait")
    LoadAndWait()
    save browser image($special folder("Application"))
    loop while("") {
    }
}

Thanks for the help!



#2 abbas786

abbas786

    Advanced Member

  • Fellow UBotter
  • PipPipPip
  • 448 posts
  • OS:Windows 7
  • Total Memory:2Gb
  • Framework:v4.5+, unsure
  • License:Developer Edition

Posted 31 May 2016 - 05:21 PM

Try this

define Screenshot(#screenshot) {
    clear list(%ScreenshotURLs)
    add list to list(%ScreenshotURLs,$list from file("{$special folder("Application")}\\screenshot_urls"),"Delete","Global")
    set(#ListCounter,0,"Global")
    loop while($comparison(#ListCounter,"< Less than",$list total(%ScreenshotURLs))) {
        LoadAndWait()
        navigate($next list item(%ScreenshotURLs),"Wait")
        LoadAndWait()
        save browser image($special folder("Application"))
        increment(#ListCounter)
    }
}


YouTube Views [ High Retention . Social Media Referrer , Suggested Video Referrer, None Geo / Geo Targeted Views ] - YouTube Video Ranking Service [ Rank Any Video Like A PRO ]   

All IN ONE - Ultimate Ubot Plugin [ Email Plugin - Datagrid Plugin - Graphical Chart Plugin - Image Processing Plugin - Video Processing Plugin - Zip / UnZip Plugin - OS Plugin - Php and Python Plugin - Cyrpto Plugin - Data Conversion Plugin - Youtube Plugin

 

Ultimate Captcha Plugin [ Solve reCaptcha NoCaptcha Within Ubot Studio -  Also Supports EX Browser using Chrome and FixFox ]






Also tagged with one or more of these keywords: printscreen, loop

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users