ttt1222

ahk
Pixel Based AutoRotations!

1 post in this topic

BeckNqh.jpg 

 

Before start get that stuff: NotePad++ || AutoHotkey || Script for autohotkey: PixelPredator.

Use pixel predator to get color value. Other ahk script show wrong color data for some reason. ||

Please login or register to see this link.

 

Step 0.   


   Make custom icons like:   7lbgVDe.png
(Size must be 64x64 and u need to make .png icons (NOT .ico !!!)
And after u make ur .png icons u need to convert it to .BLP (

Please login or register to see this link.

)

 

Step 1.  

 

Then rename ur icons. How? Go to wowhead.

(or something else if it had icon name)

 

Now do that:

1. open wowhead

2. find spell

3. click on spell icon

4. copy spell name.

 

U get spell name like ability_bullrush

Rename ur coverted 12345.blp  to ability_bullrush.blp

(spell_rush OR ability_mage_firestarter when u do something for druid kek, ITS OK dont worry about that).

And after u done, u get ur ability_bullrush.blp (and alot for other icons) now drop it to wow/interface/icons  (icons folder not exist by default u need to make new folder.)

At this moment, download  any rotation addon wich  show icons   (not bittensspellflash xd). I like hekili so i install it.

 

Now In-Game part:  
 
Setup ur addon, place addon gui where u want.
In addon make show only 1 icon.
Ofc. spells like starfall, warrior jump and like this. Not supported.

(But supported only if can cast throught /cast [@player] Death and Decay or /cast [@target] Death and Decay  (this works for dk, but only from 7.0.1 to 8.3)
 
p.s Ye sure u can make click with ahk for aoe spells but u need to hold cursor over enemy everytime xD 

 

Step 2.   

Download autohotkey. (Ahk)
Create empty .ahk script. 

Open it in notepad++

 

 Step 3.   

Now do "PixelGetColor". Example:

 PixelGetColor, color, 983, 824, RGB
If (color = 0xE97FFF)
{
Send, {c down}
sleep 10
Send, {c up}

 


 What  is that: 


Read:

Please login or register to see this link.

   ---   PixelGetColor - Syntax & Usage | AutoHotkey
PixelGetColor --- search special pixel on screen.
983, 824 window (activewindow)  coordinates where he search that pixel. 
 If (color = 0xHEXvalue). -- if color found then send keydown w8 10 msec send key up.

 

 Okay now we had PixelGetColor part, how to enable it and add other things.


 Simple way: 


 End::
loop
{
PixelGetColor, color, 983, 824, RGB
If (color = 0xE97FFF)
{
Send, {c down}
sleep 10
Send, {c up}
}
PixelGetColor, color, 983, 824, RGB
If (color = 0x00A2E7)
{
Send, {1 down}
sleep 10
Send, {1 up}
}
}
return 


So what is that: Press End key 1 time, it start looped search, for all of this colors in that pixel,

and if hekili show spell with color 0xE97FFF (bc we replaced default icons) ahk do -> send C down\10msec\up and <- then the same for other colors\keys like 0x00A2E7 with key 1.

 

Okay good. But i want to enable and disable that. How2? 

Ez. 

 Just add before code:  

 
^F1::exitapp
F1::Pause, toggle

 ctrl+1  ---  close script
F1 ---  Pause\Resume ahk script.

 

Hmm cute and i had a little problem.

My coordinates are different from ur  how to find my own?

 

Quote

 

 Make another ahk script: 

 ^z::  ; Control+Z hotkey.
MouseGetPos, MouseX, MouseY
PixelGetColor, RGB, %MouseX%, %MouseY%
MsgBox The color at the current cursor position is %RGB%.
MouseGetPos, xpos, ypos
MsgBox, The cursor is at X%xpos% Y%ypos%.
return 

It show correct color and coordinates but   ONLY WHEN WINDOW ACTIVE   DONT FORGET TO CLICK ON WINDOW before click ctrl+z (1 appear color then coords). 

 

Just don't! Use PixelPredator to find color+coords. 

Okay thats good, now lets add simple gui to see some help stuff.

 

How to do that:

 1.  After "return" add this:   

 O::
KeyWait, O
Gui, Add, Text,,    < My text appears here in this line. >
Gui, Add, Text,,  
Gui, Add, Text,,  above empty line.
Gui, Add, Text,,  U can add any symbols after ,,
Gui, Add, Text,, So u can place here ur bind like: I binded Spell1 to key 1 dont forget to make same bind ingame. (Useful for sharing with friends xd)
gui, +alwaysontop
Gui, Show, NoActivate
KeyWait
 O, D
Gui Destroy 

 What is that:  

1. binds key O to create gui so we get: O:: when u click on O it create Gui with text. 

2. KeyWait  O, D - - after u click on key O again it close that gui but not script. (If script closes u make something wrong.)

3. Gui, Show, NoActivate  - - show that gui but not activate it.

(u can click on it and drag away. And still see that gui ingame if windowed because +alwaysontop)

 

Works on every wow addon. From classic to BFA. 

And ye u can make another usefull thing with WA2 and TMW.

(*But in WA2 u can create own pixel square without change any spell icon)

 

And now run\runAs ur ahk script hit ur hotkey to start.

  Now u had ur own rotation "bot". Be happy.

 

 

Finished example for balance dudu BFA:   


Please login or register to see this link.

Balance dudu example script:   

Spoiler
 ^F1::exitapp
F1::Pause, toggle
End::
loop
{
PixelGetColor, color, 983, 824, RGB
If (color = 0xE97FFF)
{
Send, {c down}
sleep 10
Send, {c up}
}
PixelGetColor, color, 983, 824, RGB
If (color = 0x00A2E7)
{
Send, {1 down}
sleep 10
Send, {1 up}
}
PixelGetColor, color, 983, 824, RGB
If (color = 0xC6FF94)
{
Send, {2 down}
sleep 10
Send, {2 up}
}
PixelGetColor, color, 983, 824, RGB
If (color = 0xC89E1E)
{
Send, {3 down}
sleep 10
Send, {3 up}
}
PixelGetColor, color, 983, 824, RGB
If (color = 0xD9F6FA)
{
Send, {4 down}
sleep 10
Send, {4 up}
}
PixelGetColor, color, 983, 824, RGB
If (color = 0xC3A0EC)
{
Send, {y down}
sleep 10
Send, {y up}
}
PixelGetColor, color, 983, 824, RGB
If (color = 0xFFC886)
{
Send, {x down}
sleep 10
Send, {x up}
}
PixelGetColor, color, 983, 824, RGB
If (color = 0x420081)
{
Send, {q down}
sleep 10
Send, {q up}
}
PixelGetColor, color, 983, 824, RGB
If (color = 0x6B0000)
{
Send, {e down}
sleep 10
Send, {e up}
}
}
return
O::
KeyWait, O
Gui, Add, Text,,    < Program binds. >
Gui, Add, Text,, 
Gui, Add, Text,, End - Start rotation, F1 - pause\resume rotation! Ctrl+F1 - Exit. O - Show\Hide This window.
Gui, Add, Text,, 
Gui, Add, Text,,  <  In-game binds. ****Make sure u had same buttons ! >
Gui, Add, Text,, 
Gui, Add, Text,, Кнопки: 1 - Wrath 2 - Sunfire 3 - Moonfire  4 - Stellar Flare
Gui, Add, Text,, Кнопки: Y - Fury of Elune X - Celestial Alignment Q - Starsurge E - Lunar Strike
Gui, Add, Text,, Кнопки: C - Moonkin Form.
Gui, Add, Text,, 
Gui, Add, Text,,           < Setup Hekili. >
Gui, Add, Text,, 
Gui, Add, Text,, Hekili: Single Target always, OR DISABLE STARFALL!!
Gui, Add, Text,, Hekili: On screen pos.  - X 31 Y -271. Icon Width: W 152 H 160 ZOOM 30
Gui, Add, Text,, Hekili: ! MAKE SHOW ONLY 1 BUTTON !
Gui, Add, Text,, 
Gui, Add, Text,,              < TALLENTS: >
Gui, Add, Text,,
Gui, Add, Text,,  | 1 | Х | Х | Х | 2 | 2 or 3 | 1 or 2 |
Gui, Add, Text,,
Gui, Add, Text,,          Good Game. ;3
gui, +alwaysontop
Gui, Show, NoActivate
KeyWait  O, D
Gui Destroy

 

 

1 person likes this

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now