botoballs 2 Posted September 24, 2013 Report Share Posted September 24, 2013 Hi I was doing a project and most of the time I had to click on images to verify things. I've been thinking if I just save all those images into a folder it'll be alot quicker.Wanted to ask how or what is the script code to do this?Basic I have a folder with about 10 images. I want the bot to search a webpage that has one of the images in my folder and then click it.Is this possible for pro version? Please assist? Thanks Quote Link to post Share on other sites
LazyBotter 188 Posted September 24, 2013 Report Share Posted September 24, 2013 I dont think searching the webpage for an "image" is possible, but you could save the image attributes like the "src" or "image name" to a text document and select the images that way. Here is a little example: set(#Image_Name, "Os2i-0NYDtjUtM:", "Global") navigate("https://www.google.co.uk/search?hl=en&site=imghp&tbm=isch&source=hp&biw=812&bih=608&q=funny+pictures&oq=f&gs_l=img.3.1.0l10.4398.25162.0.29722.6.6.0.0.0.0.159.750.0j6.6.0....0...1ac.1.27.img..0.6.749.HO49c7ZncqQ", "Wait") wait for browser event("Everything Loaded", "") click(<name=#Image_Name>, "Left Click", "No") This will find the 3rd pic from the left. Carl Quote Link to post Share on other sites
HelloInsomnia 1103 Posted September 25, 2013 Report Share Posted September 25, 2013 You can convert the images to md5 hashes and check them that way - although this will only work if the images are literally the same as in no resizing or editing. Ubot Dev has a free md5 plugin here: http://ubotdev.com/md5-hash-generator Quote Link to post Share on other sites
UBotDev 276 Posted September 25, 2013 Report Share Posted September 25, 2013 You can convert the images to md5 hashes and check them that way - although this will only work if the images are literally the same as in no resizing or editing. Ubot Dev has a free md5 plugin here: http://ubotdev.com/md5-hash-generatorHe would actually need to encode to base64 not MD5, like described here: http://www.ubotstudio.com/forum/index.php?/topic/13458-call-a-css-file-locally-and-or-image-locally/&do=findComment&comment=74773 Quote Link to post Share on other sites
HelloInsomnia 1103 Posted September 25, 2013 Report Share Posted September 25, 2013 He would actually need to encode to base64 not MD5, like described here: http://www.ubotstudio.com/forum/index.php?/topic/13458-call-a-css-file-locally-and-or-image-locally/&do=findComment&comment=74773 To check to see if the images are the same you can check the md5 hashes, if you want to display the images in the ui or something then yes base64. Quote Link to post Share on other sites
UBotDev 276 Posted September 25, 2013 Report Share Posted September 25, 2013 To check to see if the images are the same you can check the md5 hashes, if you want to display the images in the ui or something then yes base64.Ah sorry, you are right...not sure where I found base64. MD5 should be sufficient for this job. Quote Link to post Share on other sites
webpro 31 Posted September 30, 2013 Report Share Posted September 30, 2013 Man keep this thread rolling !I'm looking for tutorials on anything related to base64 and MD5 as i too need to play around images Quote Link to post Share on other sites
HelloInsomnia 1103 Posted September 30, 2013 Report Share Posted September 30, 2013 Man keep this thread rolling !I'm looking for tutorials on anything related to base64 and MD5 as i too need to play around images If you want to add images into your bot ui then you can convert them into base 64, here is a website that does that: http://www.base64-image.de/ This site will retrun a very long string of characters and you can use that in various ways. It would be good to just try it out, it will also do gifs so if you want to add loading images you can use http://ajaxload.info/ and get a loading image and then convert it to base64 and that way you don't need to store the images for your bots externally. As for MD5 you can convert things into MD5. This can be good to tell if something is the same for example on Virus Total they give you the MD5 hash of the item that was scanned, but somebody could give you the scan of something and then name something else or change it slightly and upload that instead. If you were to convert the item to MD5 and check it against the VT scan then you can know if its the exact same thing or not. Same goes with images if they are the exact same then the MD5 hash will be the same, however, if the image has been cropped by a single pixel then the MD5 hashes won't be the same. 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.