Blue Eye Logo

Blue Eye Macro

Automation is freedom
It is currently Sun Sep 23, 2018 7:40 pm

All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Need some help guys. Thanks in advance.
Thanked: 0 time(s)  Unread post Posted: Wed May 02, 2018 9:46 pm 
New User
New User



Joined: Wed May 02, 2018 9:28 pm
Posts: 1
Been thanked: 0 time(s)
Has thanked: 0 time(s)
Contribution Points: 10
Hi Guys,

Please advise how can I insert CAPTCHA correctly in correct order?. Im new to this whole scripting. Thanks for your help though. :)

p/s: All digits 1-9 colors are different.

https://drive.google.com/file/d/1yG0fgOcRWFwr7n7NnDqTN84J9pHsF2zw/view?usp=sharing

I've tried with below script, its not working as per my expectations.
My objectives:
1. Identify the numbers displayed.
2. Type in numbers in sequence (Max digit is 4)
3. Click continue
4. Repeat above

Code:
while  Color.Pixel pattern can be located on screen("183,79,143,-1,0,183,79,143,1,-1,183,79,143,8,-9,192,160,174", "0")
     begin
          Keyboard.Insert text("1")
          Macro.Pause("1500")
          or
          while  Color.Pixel pattern can be located on screen("196,191,102,-7,9,196,191,102,10,1,231,120,68,-3,16,231,120,68,-15,-4,196,191,102", "0")
               begin
                    Keyboard.Insert text("2")
                    Macro.Pause("1500")
                    or
                    while  Color.Pixel pattern can be located on screen("152,148,127,-5,7,151,148,127,9,1,247,197,180,1,15,247,197,180,-8,0,151,148,127", "0")
                         begin
                              Keyboard.Insert text("3")
                              Macro.Pause("1500")
                              or
                              while  Color.Pixel pattern can be located on screen("219,33,76,1,0,219,33,76,2,-14,219,33,76,-16,22,196,191,102,1,0,196,191,102,16,4,196,191,102,-19,-38,196,191,102", "0")
                                   begin
                                        Keyboard.Insert text("4")
                                        Macro.Pause("1500")
                                        or
                                        while  Color.Pixel pattern can be located on screen("183,79,143,14,-1,183,79,143,9,9,183,79,143,-1,-20,184,219,124,-11,25,184,219,124", "0")
                                             begin
                                                  Keyboard.Insert text("5")
                                                  Macro.Pause("1500")
                                                  or
                                                  while  Color.Pixel pattern can be located on screen("124,101,123,-8,22,127,112,136,15,1,192,160,174,-13,-13,192,160,174,17,-2,192,160,174", "0")
                                                       begin
                                                            Keyboard.Insert text("6")
                                                            Macro.Pause("1500")
                                                            or
                                                            while  Color.Pixel pattern can be located on screen("76,72,64,-12,-3,76,72,64,-1,0,76,72,64,6,15,76,72,64,7,20,192,160,174,-22,-13,192,160,174", "0")
                                                                 begin
                                                                      Keyboard.Insert text("7")
                                                                      Macro.Pause("1500")
                                                                      or
                                                                      while  Color.Pixel pattern can be located on screen("192,160,98,7,-11,190,160,100,-2,-2,192,160,98,9,11,247,197,180,4,24,247,197,180", "0")
                                                                           begin
                                                                                Keyboard.Insert text("8")
                                                                                Macro.Pause("1500")
                                                                                or
                                                                                while  Color.Pixel pattern can be located on screen("113,111,97,-2,2,113,111,97,2,19,149,127,102,2,-10,149,127,102,-11,-22,149,127,102", "0")
                                                                                     begin
                                                                                          Keyboard.Insert text("9")
                                                                                          Macro.Pause("1500")
                                                                                     end


Top
 Profile  
Reply with quote  
 Post subject: Re: Need some help guys. Thanks in advance.
Thanked: 0 time(s)  Unread post Posted: Thu May 03, 2018 11:36 am 
Partner / License admin
Partner / License admin
User avatar



Joined: Sun Oct 10, 2010 5:16 pm
Posts: 1818
Location: USA
Been thanked: 389 time(s)
Has thanked: 30 time(s)
Contribution Points: 16313
Yea, you won't be able to do it like you wrote. Looks like you figured out it's not going to output the correct order and if there's a number on there twice it's really going to mess it up. That's because you used, "pixel pattern on screen". I would assume your results were like this:
- whatever the lowest number was, it would write that first
- then it would go sequentially 1-9 and start over again
- so basically if the number was 7654, your results were probably 4567
- if there was a double like 7665, your result was 5675 (totally wrong and in the wrong order)

There's another macro on the forum that is similar to this, viewtopic.php?f=304&t=22422. That thread has some good information on how to set it up and there's some videos on it also. You basically need to do the same thing to set it up, but not as complicated as they get with that one.

You need to start the same way. Is the captcha box on the screen? If yes, use the coordinates of the first box to determine which color/number it is and then record/write that number. Then do the same for the remaining three. The key that you were missing is to use the coordinates of the boxes to determine the order.

Take a look at some of those other threads and give it a go. If you're still having trouble, just let us know.

_________________
----------------------------------------Syrifina---------------------------------------------------
PM me for licenses and/or licensing information: Click Here
[Be sure to include and update your profile with your BE ID]

Forum Rules
Reminder of rules regarding Contribution points
Getting started in 1, 2, 3
Virtual Drivers; Manual Installers


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC


You cannot post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  


Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group