mehcul 1 Posted January 7, 2018 Report Share Posted January 7, 2018 (edited) Hello, i want to save a screenshot of a side and the name of the picture should be the result&date&time&second but i dont know how to do that.i try at random.orgThe result is at the picture 100 so thename of the jpg should be 100&date&time&second.jpg for helping i would be thankfull.regardsmehcul Edited January 7, 2018 by mehcul Quote Link to post Share on other sites
Code Docta (Nick C.) 638 Posted January 7, 2018 Report Share Posted January 7, 2018 simple enough comment("using browser 21 above go to \"Tools\" >> \"Options\" browser, and change the browser to 21 and restart ubot") navigate("https://www.random.org/","Wait") wait for element(<name="true-random-integer-generator-button">,15,"Appear") click(<name="true-random-integer-generator-button">,"Left Click","No") wait for element(<id="true-random-integer-generator-result">,15,"Appear") set(#result,$scrape attribute(<id="true-random-integer-generator-result">,"innertext"),"Global") comment("saves to desktop just replace wtih Application\\name of folder this will be in the same folder as your bot inside the directory name of folder") save element image(<id="true-random-integer-generator">,"{$special folder("Desktop")}\\{#result}-{$replace($replace($plugin function("DateTime Manipulation.dll", "$datetime manipulation", $date, "UBOT", "Sortable date/time", "en-US", "en-US"),"T","-"),":","-")}.jpg") comment("00&date&time&second.jpg") navigate("{$special folder("Desktop")}\\{#result}-{$replace($replace($plugin function("DateTime Manipulation.dll", "$datetime manipulation", $date, "UBOT", "Sortable date/time", "en-US", "en-US"),"T","-"),":","-")}.jpg","Wait") stop script comment("replaces T with - stakced inside the following replace just replace with & if you wish") alert($replace($plugin function("DateTime Manipulation.dll", "$datetime manipulation", $date, "UBOT", "Sortable date/time", "en-US", "en-US"),"T","-")) comment("replaces colon with -") alert($replace($replace($plugin function("DateTime Manipulation.dll", "$datetime manipulation", $date, "UBOT", "Sortable date/time", "en-US", "en-US"),"T","-"),":","-")) you will need a plugin to make it easierdatetime manipulation plugin from hererandom dot org.ubot Using another browser may cause the browser to freeze. Regards,CD 1 Quote Link to post Share on other sites
mehcul 1 Posted January 8, 2018 Author Report Share Posted January 8, 2018 Much thanx Code Docta, always fantastic. 1 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.