Blue Eye Logo

Blue Eye Macro

Automation is freedom
It is currently Thu Jan 21, 2021 8:17 pm

All times are UTC




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: Warlock Auto-hunt (fireball) no need for active window
Thanked: 0 time(s)  Unread post Posted: Sat Jan 23, 2016 4:23 pm 
New User
New User



Joined: Thu Jan 21, 2016 4:04 am
Posts: 12
Been thanked: 2 time(s)
Has thanked: 1 time(s)
Contribution Points: 31
Another one.

My primary character is the Arcanist, and many times, I'm in a pinch for Pieces of Caelium or just general materials. You can tweak the order of this macro's code, but it's highly focused on the Fireball only, then tabbing to a different MOB.
Also keep in mind that the code provides error-checking and correction with the "searchForColor" function at the end. While your character casts Fireball, the macro will check if a casting bar appears in blue AT SPECIFIC COORDINATES and if there isn't a MOB, you will start moving. Enjoy!

I'm going to work on a powerful PVP macro for Warlocks/Arcanists (which includes health/mana pots and skill chains), and if I could get a high level character of another class to work on, I'd like to see any of your favorite skills, skill chains, and fighting tactics.

Code:
 begin loop()
     Variable.Add (Math)("b", "1")
     Window.Send press keys("AikaClient", "yes", "0", "{<tab>}")
     Window.Send hold keys("AikaClient", "yes", "0", "{<tab>}")
     Window.Send release keys("AikaClient", "yes", "0", "{<tab>}")
     Macro.Pause("500")
     Window.Send press keys("AikaClient", "yes", "0", "2")
     Window.Send hold keys("AikaClient", "yes", "0", "2")
     Window.Send release keys("AikaClient", "yes", "0", "2")
     Macro.Pause("500")
     Color.Limit area of interest to coordinates("578", "518", "100", "40")
     Function.Execute with timeout("searchForColor", "50000")
     Macro.Pause("500")
     if  Variable.Is equal to("b", "0")
          begin
               Window.Send press keys("AikaClient", "yes", "0", "w")
               Window.Send press keys("AikaClient", "yes", "0", "e")
               Window.Send hold keys("AikaClient", "yes", "0", "w")
               Window.Send hold keys("AikaClient", "yes", "0", "e")
               Macro.Pause("1000")
               Window.Send release keys("AikaClient", "yes", "0", "w")
               Window.Send release keys("AikaClient", "yes", "0", "e")
          end
 end

function("searchForColor")
     if  Color.At coordinate is not (RGB)("16", "154", "90", "618", "542")
          begin
               Variable.Subtract (Math)("b", "1")
          end
function
 

_________________
I'm doing this for Kimi ;)


Top
 Profile  
Reply with quote  
 Post subject: Re: Warlock Auto-hunt (fireball) no need for active window
Thanked: 0 time(s)  Unread post Posted: Sun Jan 24, 2016 3:48 am 
Partner / License admin
Partner / License admin
User avatar



Joined: Sun Oct 10, 2010 5:16 pm
Posts: 2130
Location: USA
Been thanked: 493 time(s)
Has thanked: 37 time(s)
Contribution Points: 17321
At the beginning of your script, you use "press keys" and "hold/release keys"...why do you use hold/release without a pause in between them? Essentially it's the same as press key (if there's no pause). Is "press keys" not going through or something? Or is it just in case one doesn't work?

Later in your script you use hold/release with a pause in between, so you obviously know how they work...therefore, I'm assuming there's a reason behind it. Just curious.

_________________
----------------------------------------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  
 Post subject: Re: Warlock Auto-hunt (fireball) no need for active window
Thanked: 0 time(s)  Unread post Posted: Sun Jan 24, 2016 4:11 am 
New User
New User



Joined: Thu Jan 21, 2016 4:04 am
Posts: 12
Been thanked: 2 time(s)
Has thanked: 1 time(s)
Contribution Points: 31
Believe it or not, I was playing around with the three functions. It turns out that for some things, just press is enough. But for Aika and other hotkey-oriented games, the press and hold gesture needs to be at some 15ms or so. I think I can configure what press duration is in the BlueMacro client settings, but I find that doing this is an ok workaround. Particularly when I want to press keys very quickly later ;)

_________________
I'm doing this for Kimi ;)


Top
 Profile  
Reply with quote  
 Post subject: Re: Warlock Auto-hunt (fireball) no need for active window
Thanked: 1 time(s)  Unread post Posted: Sun Jan 24, 2016 1:29 pm 
Partner / License admin
Partner / License admin
User avatar



Joined: Sun Oct 10, 2010 5:16 pm
Posts: 2130
Location: USA
Been thanked: 493 time(s)
Has thanked: 37 time(s)
Contribution Points: 17321
Got it :)

You said you "thought" you could adjust the key press delay...you can. It's under settings:
Attachment:
Capture.PNG
Capture.PNG [ 75.72 KiB | Viewed 1941 times ]
But for changing speeds later in the script, what you described would probably work best.

_________________
----------------------------------------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  [ 4 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