Jump to content

Join our Slack

Talk to other users and have a great time
Slack Server

Welcome to our Community

Click here to get your Exiled Bot license
Donation Store
PleXy

[Contribution] Aura macros

Recommended Posts

Hey guys,

I came up with an idea to script a "quickfix" on auras, which I believe many wants to get going.

This script looks for the color of a non-activated skill, and if it's inactive, it presses the wanted button.

At first, you need the program AutoHotKey, then you need to edit the script, see the instruction within the code.

I hope this will be useful for you as well. :)

I'm also attaching the script as a file. (Unpack it, Zipped because extension AHK wasn't allowed to upload)

;	Copy this script file into multiple script files if you're using multiple auras.
;	You can only use one aura for each script file.
;	1. First of all, remove the ; of the aura you whish to use below.
;	2. Then, set which button you use the aura on, e.g. button E.


WinActivate, ahk_class Direct3DWindowClass
Loop
{
CoordMode, Pixel, Relative

;		// Below are the auras I've added to this script. Remove the ; before one of them!
;PixelSearch, FoundX, FoundY, 526, 595, 680, 625, 0x002749, 0, Fast RGB	;Discipline
;PixelSearch, FoundX, FoundY, 526, 595, 680, 625, 0xAA99FA, 0, Fast RGB	;Clarity
;PixelSearch, FoundX, FoundY, 526, 595, 680, 625, 0xA5BFFE, 0, Fast RGB	;Determination
;PixelSearch, FoundX, FoundY, 526, 595, 680, 625, 0x012144, 0, Fast RGB	;Hatred
;PixelSearch, FoundX, FoundY, 526, 595, 680, 625, 0xC23603, 0, Fast RGB	;Anger
;PixelSearch, FoundX, FoundY, 526, 595, 680, 625, 0xA502A6, 0, Fast RGB	;Wrath
;PixelSearch, FoundX, FoundY, 526, 595, 680, 625, 0x3E0018, 0, Fast RGB	;Purity
;PixelSearch, FoundX, FoundY, 526, 595, 680, 625, 0x7B1731, 0, Fast RGB	;Vitality
;PixelSearch, FoundX, FoundY, 526, 595, 680, 625, 0x0A331C, 0, Fast RGB	;Haste
;PixelSearch, FoundX, FoundY, 526, 595, 680, 625, 0x312E1A, 0, Fast RGB	;Grace

If ErrorLevel = 0
	
Send {w} ; 	// Set which button to activate
Sleep, 1000

}

Enjoy!

Aura-script.zip

Share this post


Link to post
Share on other sites

Thank you so much. This is great! I will try it out tomorrow

EDIT. Do you think it is possible to make a script for every aura out there? And all the different bound key possibilities?

Like anger on e, r and t

Clarity on e r and t

And So on.

Thanks

Share this post


Link to post
Share on other sites

Thank you so much. This is great! I will try it out tomorrow

EDIT. Do you think it is possible to make a script for every aura out there? And all the different bound key possibilities?

Like anger on e, r and t

Clarity on e r and t

And So on.

Thanks

Yeap! I'm working on that right now :)

Share this post


Link to post
Share on other sites

Alright, I edited the first post.

Should work with all auras. :)

Tell me if there's anything thats not working properly.

Enjoy!

Share this post


Link to post
Share on other sites

Yep thanks a lot for sharing your work PleXy!!

btw I'm going to work on improving skills handling and implement aura, totems and revives during next days.

Share this post


Link to post
Share on other sites

Useful as fuck :)

Great work.

Stickied !

Thanks!

Yep thanks a lot for sharing your work PleXy!!

btw I'm going to work on improving skills handling and implement aura, totems and revives during next days.

No problems, glad I could help. :)

Great to hear!!

Share this post


Link to post
Share on other sites

i cant get it to work with vitality every time he uses the aura then turns it off , any ideas ?

You probably haven't changed the "Send {w} ;" to the key you use for Vitality.

Or if you're using multiple auras and u have the same "Send {w} ;" on both.

Can you re-check?

Share this post


Link to post
Share on other sites

i found the problem , he couldnt find the collor i edited the collor and coordinates to have a rectangle around w skill en search for white 0xffffff and when the skill is active the white would be all gone and works perfeclty now even with multiple aura's thank you

Share this post


Link to post
Share on other sites

One problem I found:

It seems like the coordinates can't find any aura that's in the Q slot

I'm not home atm so I can't make new coordinates to make it work on this slot.

Also, it could be that you don't have the same colors as I do, might be different depending on your quality settings etc...

So if doesn't work even if you try on any other slot than Q, use Autohotkey window spy to get another color code.

And please, if it's not working, tell me which slot and which aura you're using. Also post the script to make things clear.

Share this post


Link to post
Share on other sites

Hey, i try your script but, it's not work properly.

I dont use official GUI, atm i use shrek_III GUI and its work really nice, maby is that ?

But thx for share dude :)

Share this post


Link to post
Share on other sites

Hey, i try your script but, it's not work properly.

I dont use official GUI, atm i use shrek_III GUI and its work really nice, maby is that ?

But thx for share dude :)

And please, if it's not working, tell me which slot and which aura you're using. Also post the script to make things clear.

Nope, doesn't have anything to do with the GUI

Share this post


Link to post
Share on other sites

;   Copy this script file into multiple script files if you're using multiple auras.
;   You can only use one aura for each script file.
;   1. First of all, remove the ; of the aura you whish to use below.
;   2. Then, set which button you use the aura on, e.g. button E.


WinActivate, ahk_class Direct3DWindowClass
Loop
{
CoordMode, Pixel, Relative

;      // Below are the auras I've added to this script. Remove the ; before one of them!
;PixelSearch, FoundX, FoundY, 526, 595, 680, 625, 0x002749, 0, Fast RGB   ;Discipline
;PixelSearch, FoundX, FoundY, 526, 595, 680, 625, 0xAA99FA, 0, Fast RGB   ;Clarity
;PixelSearch, FoundX, FoundY, 526, 595, 680, 625, 0xA5BFFE, 0, Fast RGB   ;Determination
;PixelSearch, FoundX, FoundY, 526, 595, 680, 625, 0x012144, 0, Fast RGB   ;Hatred
;PixelSearch, FoundX, FoundY, 526, 595, 680, 625, 0xC23603, 0, Fast RGB   ;Anger
;PixelSearch, FoundX, FoundY, 526, 595, 680, 625, 0xA502A6, 0, Fast RGB   ;Wrath
;PixelSearch, FoundX, FoundY, 526, 595, 680, 625, 0x3E0018, 0, Fast RGB   ;Purity
;PixelSearch, FoundX, FoundY, 526, 595, 680, 625, 0x7B1731, 0, Fast RGB   ;Vitality
;PixelSearch, FoundX, FoundY, 526, 595, 680, 625, 0x0A331C, 0, Fast RGB   ;Haste
PixelSearch, FoundX, FoundY, 526, 595, 680, 625, 0xffffff, 0, Fast RGB   ;Grace

If ErrorLevel = 0
   
Send {d} ;    // Set which button to activate
Sleep, 1000

}

As said, it activates the aura and then deactivates it again... haven't tried with the others though.

Share this post


Link to post
Share on other sites

Here are my versions of the aura bot, only working on W and E

Here's W

; Copy this script file into multiple script files if you're using multiple auras.

; You can only use one aura for each script file.

; 1. First of all, remove the ; of the aura you whish to use below.

; 2. Then, set which button you use the aura on, e.g. button E.

WinActivate, ahk_class Direct3DWindowClass

Loop

{

CoordMode, Pixel, Relative

; // Below are the auras I've added to this script. Remove the ; before one of them!

;PixelSearch, FoundX, FoundY, 562, 597, 589, 625, 0xffffff, 0, Fast RGB ;Discipline

;PixelSearch, FoundX, FoundY, 562, 597, 589, 625, 0xffffff, 0, Fast RGB ;Clarity

;PixelSearch, FoundX, FoundY, 562, 597, 589, 625, 0xffffff, 0, Fast RGB ;Determination

;PixelSearch, FoundX, FoundY, 562, 597, 589, 625, 0xffffff, 0, Fast RGB ;Hatred

;PixelSearch, FoundX, FoundY, 562, 597, 589, 625, 0xffffff, 0, Fast RGB ;Anger

;PixelSearch, FoundX, FoundY, 562, 597, 589, 625, 0xffffff, 0, Fast RGB ;Wrath

;PixelSearch, FoundX, FoundY, 562, 597, 589, 625, 0xffffff, 0, Fast RGB ;Purity

;PixelSearch, FoundX, FoundY, 562, 597, 589, 625, 0xffffff, 0, Fast RGB ;Haste

PixelSearch, FoundX, FoundY, 562, 597, 589, 625, 0xffffff, 0, Fast RGB Grace

If ErrorLevel = 0

Send {w} ; // Do not chance this put your aura on W

Sleep, 1000

}

and here is E

; Copy this script file into multiple script files if you're using multiple auras.

; You can only use one aura for each script file.

; 1. First of all, remove the ; of the aura you whish to use below.

; 2. Then, set which button you use the aura on, e.g. button E.

WinActivate, ahk_class Direct3DWindowClass

Loop

{

CoordMode, Pixel, Relative

; // Below are the auras I've added to this script. Remove the ; before one of them!

;PixelSearch, FoundX, FoundY, 588, 597, 615, 625, 0xffffff, 0, Fast RGB ;Discipline

;PixelSearch, FoundX, FoundY, 588, 597, 615, 625, 0xffffff, 0, Fast RGB ;Clarity

;PixelSearch, FoundX, FoundY, 588, 597, 615, 625, 0xffffff, 0, Fast RGB ;Determination

;PixelSearch, FoundX, FoundY, 588, 597, 615, 625, 0xffffff, 0, Fast RGB ;Hatred

;PixelSearch, FoundX, FoundY, 588, 597, 615, 625, 0xffffff, 0, Fast RGB ;Anger

;PixelSearch, FoundX, FoundY, 588, 597, 615, 625, 0xffffff, 0, Fast RGB ;Wrath

;PixelSearch, FoundX, FoundY, 588, 597, 615, 625, 0xffffff, 0, Fast RGB ;Purity

PixelSearch, FoundX, FoundY, 588, 597, 615, 625, 0xffffff, 0, Fast RGB Vitality

;PixelSearch, FoundX, FoundY, 588, 597, 615, 625, 0xffffff, 0, Fast RGB ;Haste

;PixelSearch, FoundX, FoundY, 588, 597, 615, 625, 0xffffff, 0, Fast RGB ;Grace

If ErrorLevel = 0

Send {e} ; // Do not chance this put you aura on E

Sleep, 1000

}

these uses the white of the letters when its inactive the letters are white and when active they will be gray

if u want to use these on other letters you have to chance the x1,y1 and x2,y2

i hope this will help

Share this post


Link to post
Share on other sites

So, I had a look and I see that the horizontal values just differ by 26 px each. Due to that I had a look at how autohk actually works and I tried to come up with a generic aura casting tool.

My basic idea is to

1) define what key your skills belong to

2) then loop through each possible skill and check for aura

3) if aura is not active, activate

I came up with this here but I have no PoE installation here, so I cannot test it.

; Define below what keys represent your lower skill bar (from left to right, 5 keys)
; Comment out keys that don't have an aura or an aura you don't wish to use by adding a ; in front of the line

aHK1 = a
aHK2 = s
aHK3 = d
aHK4 = f
aHK5 = g


; BELOW BE DRAGONS

; Function to check if a variable exists
varExist(ByRef v) { ; Requires 1.0.46+
    return &v = &n ? 0 : v = "" ? 2 : 1 
}

WinActivate, ahk_class Direct3DWindow Class
Loop
{
	; Get active window title
	WinGetActiveTitle, Title
	if (Title = "Path of Exile")
	{
 	   if varExist("aHK1") = 1
 	   {
        	CoordMode, Pixel, Relative
	        PixelSearch, FoundX, FoundY, 536, 597, 563, 625, 0xffffff, 0, Fast RGB
        	if ErrorLevel = 0
	        {
        	    Send {%aHK1%} ;
	        }
	    }

	    if varExist("aHK2") = 1
	    {
	        CoordMode, Pixel, Relative
        	PixelSearch, FoundX, FoundY, 562, 597, 589, 625, 0xffffff, 0, Fast RGB
	        if ErrorLevel = 0
        	{
	            Send {%aHK2%} ;
        	}
	    }

	    if varExist("aHK3") = 1
	    {
        	CoordMode, Pixel, Relative
	        PixelSearch, FoundX, FoundY, 588, 597, 615, 625, 0xffffff, 0, Fast RGB
	        if ErrorLevel = 0
        	{
	            Send {%aHK3%} ;
        	}
	    }

	    if varExist("aHK4") = 1
	    {
        	CoordMode, Pixel, Relative
	        PixelSearch, FoundX, FoundY, 614, 597, 641, 625, 0xffffff, 0, 0, Fast RGB
        	if ErrorLevel = 0
	        {
        	    Send {%aHK4%} ;
	        }
	    }

	    if varExist("aHK5") = 1
	    {
        	CoordMode, Pixel, Relative
	        PixelSearch, FoundX, FoundY, 640, 597, 667, 625, 0xffffff, 0, 0, Fast RGB
        	if ErrorLevel = 0
	        {
        	    Send {%aHK5%} ;
	        }
	    }
	}

    Sleep, 1000
}

Share this post


Link to post
Share on other sites

Great stuff man, job well done! :)

I'll use this right away.

One note: For me it didnt work with any aura on aHK5, so I changed my coordinates to 649, 597, 679, 625 to make it work.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...