webpro 31 Posted September 22, 2012 Report Share Posted September 22, 2012 Ok i need to understand why this doesn't work ? If i create images of captcha (using image recognition) with the CLICK COMMAND and run the node, it works fine (individually).But if i put them in a IF/IF ELSE command, i get WRONG captcha when i run the node ??? Ex: if($exists(<image="___IMAGE___8___IMAGE___">)) { then { click(<image="___IMAGE___7___IMAGE___">, "Left Click", "No") } else if($exists(<image="___IMAGE___13___IMAGE___">)) { click(<image="___IMAGE___14___IMAGE___">, "Left Click", "No") } else if($exists(<image="___IMAGE___15___IMAGE___">)) { click(<image="___IMAGE___16___IMAGE___">, "Left Click", "No") } else if($exists(<image="___IMAGE___19___IMAGE___">)) { click(<image="___IMAGE___20___IMAGE___">, "Left Click", "No") } else if($exists(<image="___IMAGE___25___IMAGE___">)) { click(<image="___IMAGE___26___IMAGE___">, "Left Click", "No") } else { } } Quote Link to post Share on other sites
Legend 181 Posted September 23, 2012 Report Share Posted September 23, 2012 Have you tried it with separate if/then statements rather than using if/else if? Quote Link to post Share on other sites
webpro 31 Posted September 23, 2012 Author Report Share Posted September 23, 2012 Hmmmm no. I will try this in a couple of hours. Thanks for having a brain instead of me hahahahaHope it works... Quote Link to post Share on other sites
webpro 31 Posted September 23, 2012 Author Report Share Posted September 23, 2012 I just tried and it doesn't work now i'm lost here. CLICK comands are working fine indvidually (there's only 8 captcha possibilites to solve) when running each nodes (image recognition used on each of them).IF/$EXISTS/THEN/CLICK are working fine also individually (8 working fine). But when i add them in a loop it says "wrong image" bad solving and i also get this error trying to runIF/$exists/THEN/CLICK/IF ELSE/CLICKlike stated above. Is it a bug as automization won't work no matter what i try ? Quote Link to post Share on other sites
Legend 181 Posted September 23, 2012 Report Share Posted September 23, 2012 Have you tried $search page instead of $exists? They are supposed to do the same thing but they tend not to at times... Quote Link to post Share on other sites
webpro 31 Posted September 23, 2012 Author Report Share Posted September 23, 2012 Well i just tried but i don't know how to use the $search along with images ?As i can see, there's no image recognition feature with $search Let me knowThanks Quote Link to post Share on other sites
Legend 181 Posted September 23, 2012 Report Share Posted September 23, 2012 Ah... you're right... I know its a silly question, but the actual images are showing in your code and not the "___IMAGE___19___IMAGE___" showing here, right? Had to make sure... Quote Link to post Share on other sites
webpro 31 Posted September 23, 2012 Author Report Share Posted September 23, 2012 Yeah and no you're not silly as i'm dumb so better be safe hehehehe... It's something which would be hot if we could import the images too ! It's not the first time it happens. That everything works fine but not automized. Lots of sites i'm working on with this issue and it's out my hands. So it's another project of mine put ice until this issue is resolved. Might be UB itself which is having problems so i will wait unless someone pin points the problems ? Could be me trust me hahahahahaha Quote Link to post Share on other sites
LoWrIdErTJ - BotGuru 904 Posted September 23, 2012 Report Share Posted September 23, 2012 if the if statements are working with a captcha, that if "image" shown click that associated image from the group of images shown? I had to work with something like this before, and becomes a pain to deal with as the imaging system looks for the image and has to meet a qualifing found percentage, so its best to have the same exists image as the click image, with unique identifer colors, attributes around it Quote Link to post Share on other sites
webpro 31 Posted September 23, 2012 Author Report Share Posted September 23, 2012 I see... wow now that's something else ! So i guess like you said, this will be a pain in somewhere heheheheheSome will work and out of nowhere, some won't and sometimes, some will (what's happening right now) ! I guess the image recognition system will get better overtime Thanks guys Quote Link to post Share on other sites
LoWrIdErTJ - BotGuru 904 Posted September 24, 2012 Report Share Posted September 24, 2012 yeah its about the % of the image selected matching the image showing, So if for instance its animated images its likely best to have it loop 10 times over the if statement so it checks quickly and hopefully captures the aniamted area correctly to click it. Quote Link to post Share on other sites
webpro 31 Posted September 24, 2012 Author Report Share Posted September 24, 2012 Damn i'm giving up ! So many hours spent. Last shot i tried is: SURF (defined)IF/$EXISTS image recognition 1a/THEN/CLICK/image recognition 1bIF/$EXISTS image recognition 2a/THEN/CLICK/image recognition 2bIF/$EXISTS image recognition 3a/THEN/CLICK/image recognition 3bIF/$EXISTS image recognition 4a/THEN/CLICK/image recognition 4b (not inside any commands beside SURF) SURF2 (defined)IF/$EXISTS image recognition 1a/THEN/CLICK/image recognition 1b IF ELSE/$EXISTS image recognition 2a/THEN/CLICK/image recognition 2b IF ELSE/$EXISTS image recognition 3a/THEN/CLICK/image recognition 3b IF ELSE/$EXISTS image recognition 4a/THEN/CLICK/image recognition 4b (all inside the IF command)etc... and some worked and some didn't. Sometimes those that worked stopped working, then it started to work again and so on. So i guess it's a limitation of UB for now that is. I just hope that further releases will get better regarding image recognition. I tried so many images recognitions and ways, that i'm fed up hahahahaha THE HELL WITH IT Cheers (unless someone has an idea ?) Quote Link to post Share on other sites
warriorfullights 0 Posted September 25, 2012 Report Share Posted September 25, 2012 It is part of creating such program. It will be worth it once you figured it out. Don't give up. http://imagicon.info/cat/5-34/boredom.gif 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.