Blue Eye Logo

Blue Eye Macro

Automation is freedom
It is currently Tue Dec 11, 2018 8:39 am

All times are UTC




Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: Shin's Web Login Dekaron Macro
Thanked: 3 time(s)  Unread post Posted: Thu Jan 16, 2014 8:44 pm 
Active User
Active User
User avatar



Joined: Sun May 13, 2012 6:32 pm
Posts: 38
Been thanked: 9 time(s)
Has thanked: 8 time(s)
Contribution Points: 95
Prerequisites
1. Install Google Chrome
2. Set Google Chrome as default internet browser.
3. Google Chrome Settings > Show advanced settings > Privacy > Content Settings > Cookies > Manage exceptions... > Add
Code:
[*.].dekaron.com

This will sign any user off when you close the web browser
4. Change the User Name & Password in the macro.
5. Extract all the images to your hard drive and change all the image locations of the macro.

Questions:
    Is there a way to load that URL when i call the System.Launch ?
    Is there a way to load the image location as a variable? Then just add {variableName}image.png
    Is there a way to load username and passwords to a variable from a text file?
Ver 0.6

Code:
 begin
     // USER INFORMATION
     Variable.Set("userName", "user")
     Variable.Set("password", "password")
     // DEPENDING HOW FAST YOUR COMPUTER / INTERNET SPEED
     Variable.Set("browserLoadingTimeFast", "15000")
     Variable.Set("browserLoadingTimeMedium", "30000")
     Variable.Set("browserLoadingTimeSlow", "45000")
     // MINI LAUNCHER LOADING TIME
     Variable.Set("miniLauncherLoadingTime", "10000")
     // GAME LOADING TIME THIS WILL VARY A LOT DEPENDING ON YOUR COMPUTER SPECS
     Variable.Set("gameLoadingTime", "180000")
     // LOAD URL
     Function.Execute("loadURL")
     // INPUT ALL THE USER INFORMATION
     Function.Execute("inputInfo")
     // ERROR CHECKING - CHECK FOR PASSWORD RESET
     // ERROR CHECKING - CHECK FOR TERMS OF USE CHANGE
     // ERROR CHECKING - CHECK FOR RED POPUP
     Function.Execute repeatedly("errorChecking", "3")
     // CLICK THE PLAY BUTTON
     Function.Execute("playButton")
     // FINALLY LOAD THE GAME
     Function.Execute("startGame")
 end

function("loadURL")
     begin
          // LAUNCH GOOGLE CHROME. MAKE SURE PATH IS CORRECT
          System.Launch application("http://www.blueeye-macro.com/", "yes")
          Macro.Pause("500")
          Window.Get active window id("browserID")
          Window.Maximize("{browserID}", "Yes")
          Window.Bring to front("{browserID}", "Yes")
          Macro.Pause("{browserLoadingTimeFast}")
     end
function

function("inputInfo")
     begin
          // ENTER USERNAME PASSWORD
          Keyboard.Type text("{userName}")
          Macro.Pause("500")
          Keyboard.Press key("{<tab>}")
          Macro.Pause("500")
          Keyboard.Type text("{password}")
          Macro.Pause("500")
          Keyboard.Press key("{<tab>}")
          Macro.Pause("500")
          Keyboard.Press key("{<enter>}")
          Macro.Pause("{browserLoadingTimeFast}")
     end
function

function("errorChecking")
     // CHANGE PASSWORD WINDOW BYPASS
     if  Image.Can be located on screen("imagesLocation\btn_next.gif", "100")
          begin
               Mouse.Click at image("imagesLocation\btn_next.gif", "100", "Left")
               Macro.Pause("{browserLoadingTimeFast}")
               Function.Abort()
          end
     // TERMS OF USE CHANGES WINDOW BYPASS - ONCE PRESSED ILL NEVER SHOW AGAIN. FOR SOME REASON THERE SITE ALWAYS SHOWS IT AGAIN LOL
     if  Image.Can be located on screen("{imagesLocation}\termsOfUseChanges.png", "100")
          begin
               Mouse.Click at image("imagesLocation\termsOfUseChanges.png", "100", "Left")
               Macro.Pause("{browserLoadingTimeFast}")
               Function.Abort()
          end
     // RED POPUP CLICK DONT DISPLAY AGAIN - ONCE CLICKED IT WILL NEVER SHOW AGAIN
     if  Image.Can be located on screen("imagesLocation\red_popup_dont_show_again.png", "100")
          begin
               Mouse.Click at image("imagesLocation\red_popup_dont_show_again.png", "100", "Left")
               Macro.Pause("{browserLoadingTimeFast}")
               Function.Abort()
          end
function

function("playButton")
     if  Image.Can be located on screen("imagesLocation\btn_play.png", "100")
          begin
               Mouse.Click at image("imagesLocation\btn_play.png", "100", "Left")
               Macro.Pause("{browserLoadingTimeFast}")
          end
function

function("adminPrompt")
     begin
          Keyboard.Press key("{<tab>}")
          Macro.Pause("500")
          Keyboard.Press key("{<tab>}")
          Macro.Pause("500")
          Keyboard.Press key("{<tab>}")
          Macro.Pause("500")
          Keyboard.Press key("{<return>}")
          Macro.Pause("{miniLauncherLoadingTime}")
     end
function

function("startGame")
     if  Image.Can be located on screen("imagesLocation\Attendance Login\btn_start.png", "100")
          begin
               Mouse.Click at image("imagesLocation\btn_start.png", "100", "Left")
               Macro.Pause("{gameLoadingTime}")
          end
function
 


Attachments:
File comment: Images needed for this macro to work.
images.rar [36.63 KiB]
Downloaded 108 times

_________________
Image
Top
 Profile  
Reply with quote  
 Post subject: Re: Shin's Web Login Dekaron Macro
Thanked: 1 time(s)  Unread post Posted: Tue Feb 11, 2014 6:38 pm 
Silver Contributor
Silver Contributor



Joined: Wed Jan 29, 2014 7:47 pm
Posts: 240
Location: United States
Been thanked: 49 time(s)
Has thanked: 2 time(s)
Contribution Points: 802
Just stumbled across this, good share. I have a suggestion though, instead of setting a browser load time wait variable, you can actually bypass waiting by just checking if the next event state has occurred.

So say you are waiting 35000 after logging in now. Well instead of doing that, you can just do a:

while (state is not present)
Macro.Pause

This will allow it to keep waiting until something occurs.

For the state logic, you can do an Image or RGB color check. I assume there's always something constant about the screen state after you login or open a browser.

_________________
- A good programmer is not someone who knows every language but someone who can think logically.


Top
 Profile  
Reply with quote  
 Post subject: Re: Shin's Web Login Dekaron Macro
Thanked: 0 time(s)  Unread post Posted: Wed Feb 12, 2014 2:05 am 
Active User
Active User
User avatar



Joined: Sun May 13, 2012 6:32 pm
Posts: 38
Been thanked: 9 time(s)
Has thanked: 8 time(s)
Contribution Points: 95
astyss wrote:
Just stumbled across this, good share. I have a suggestion though, instead of setting a browser load time wait variable, you can actually bypass waiting by just checking if the next event state has occurred.

So say you are waiting 35000 after logging in now. Well instead of doing that, you can just do a:

while (state is not present)
Macro.Pause

This will allow it to keep waiting until something occurs.

For the state logic, you can do an Image or RGB color check. I assume there's always something constant about the screen state after you login or open a browser.

Thank you for the feedback. Ill take that into consideration next time i edit this script and re-post the result :)

_________________
Image


Top
 Profile  
Reply with quote  
 Post subject: Re: Shin's Web Login Dekaron Macro
Thanked: 0 time(s)  Unread post Posted: Sun Jun 08, 2014 6:31 pm 
New User
New User



Joined: Fri Jun 06, 2014 12:43 pm
Posts: 5
Been thanked: 0 time(s)
Has thanked: 1 time(s)
Contribution Points: 14
astyss wrote:
Just stumbled across this, good share. I have a suggestion though, instead of setting a browser load time wait variable, you can actually bypass waiting by just checking if the next event state has occurred.

So say you are waiting 35000 after logging in now. Well instead of doing that, you can just do a:

while (state is not present)
Macro.Pause

This will allow it to keep waiting until something occurs.

For the state logic, you can do an Image or RGB color check. I assume there's always something constant about the screen state after you login or open a browser.


I just found this thread from doing research on Google, and this is actually quite important to people guessing how many milieseconds to wait until something happens. Definitely helped with a completely unrelated problem I had.


Top
 Profile  
Reply with quote  
 Post subject: Re: Shin's Web Login Dekaron Macro
Thanked: 1 time(s)  Unread post Posted: Thu Jan 22, 2015 1:54 am 
Active User
Active User



Joined: Thu Jan 15, 2015 7:19 pm
Posts: 48
Been thanked: 2 time(s)
Has thanked: 0 time(s)
Contribution Points: 2
thanks for help :D


Top
 Profile  
Reply with quote  
 Post subject: Re: Shin's Web Login Dekaron Macro
Thanked: 0 time(s)  Unread post Posted: Thu Mar 26, 2015 1:40 am 
New User
New User



Joined: Thu Mar 26, 2015 1:29 am
Posts: 14
Been thanked: 0 time(s)
Has thanked: 9 time(s)
Contribution Points: 10
Ohhh thx !! :cry:


Top
 Profile  
Reply with quote  
 Post subject: Re: Shin's Web Login Dekaron Macro
Thanked: 0 time(s)  Unread post Posted: Fri Sep 21, 2018 4:57 pm 
New User
New User



Joined: Sun Sep 16, 2018 4:35 pm
Posts: 22
Location: Brasil
Been thanked: 2 time(s)
Has thanked: 4 time(s)
Contribution Points: 54
Thanks for that, i will try this macro ^.^


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 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