[Health Autopot & AutoChicken] Soothe your wounds until PoEHUD is safe again menu

User Tag List

Page 6 of 8 FirstFirst ... 2345678 LastLast
Results 76 to 90 of 107
  1. #76
    Gutsuu's Avatar Member
    Reputation
    12
    Join Date
    Feb 2017
    Posts
    10
    Thanks G/R
    13/11
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Script Modifications

    I've tried to use the normal script, but it didn't worked out for me cause of my screenresolution (3440 x 1440 QHD, Windowed Fullscreen). So I made too some modifications of the provided scripts.
    I implimented:
    - random sleeptime after usage
    - second HP-threshold
    - KEY Bindings
    - Quicksilver usage, which should only activate if outside of your Hideout

    I'm sorry if the code is not today standards and dirty, but it fullfills my needs.

    pls, let me know if the code can be optimised CPU- , time-wise or any other way.

    setting.ini
    Code:
    [border]
    ;borderwidth of the game window
    borderleft=0
    borderright=0
    bordertop=0
    borderdown=0
    
    [potion_high]
    ;first HP threshold
    hpremain=
    ;HP-%level
    flask=
    ;give the number/key what should be pressed if HP falls below the first HP-%level
    
    [potion_low]
    ;second HP threshold
    hpremain=
    ;HP-%level
    flask=
    ;give the number/key what should be pressed if HP falls below the second HP-%level
    
    [mana_potion]
    ;Mana threshold
    mpremain=
    ;Mana-%level
    flask=
    ;give the number/key what should be pressed if Mana falls below the Mana-%level
    
    [defensive_potion]
    ;defpotion threshold
    hpremain=
    ;HP-%level
    flask=
    ;give the number/key what should be pressed if HP falls below the HP-%level
    defcd=
    ;ms cooldown time of the flask
    
    [logout]
    ;logout threshold, actual is used for healing or defence flask, if you want to logout, prep in the the script which usage
    hpremain=
    ;HP-%level
    flask=
    ;give the number/key what should be pressed if HP falls below the HP-%level
    
    [quicksilver]
    ;quicksilver usage
    timeleft=
    ;ms time moving until the script will activate a flask (could be used too for skills, for example Blood Rage)
    flask=
    ;give the number/key what should be pressed
    quickcd=
    ;ms cooldown time of the quicksilver flask
    
    
    [anchor]
    logoutbtnx=1720
    ;x-Value of the button when you press ESC
    logoutbtny=575
    ;y-Value of the button when you press ESC
    windoww=3440
    ;width of the screenresolution
    windowh=1440
    ;hight of the screenresolution
    hpmiddlex=150
    ;x-Value of the vertical middle axis of the HP-Globe on the left side
    hpmiddley=435
    ;y-Value of the horizontal middle axis of the HP-Bar over the Character
    hptopy=1165
    ;y-Value of the highest Point of the HP-Globe on the left side, HP & Mana-Globe have both the same y-Value
    mpmiddlex=3290
    ;x-Value of the vertical middle axis of the Mana-Globe on the right side
    mpmiddley=450
    ;y-Value of the horizontal middle axis of the Mana-Bar over the Character
    mptopy=1165
    ;y-Value of the highest Point of the Mana-Globe on the right side, HP & Mana-Globe have both the same y-Value
    chaticonx=22
    ;x-Value of middlepoint of the chaticon over the girl-statue on the left side over the HP-Globe
    chaticony=1175
    ;y-Value of middlepoint of the chaticon over the girl-statue on the left side over the HP-Globe
    hideiconx=2500
    ;x-Value of middlepoint of the Edit button in the Hideout
    hideicony=1355
    ;y-Value of middlepoint of the Edit button in the Hideout
    movposx=1720
    ;x-Value of the moving detection Point in the middle of the screenresolution
    movposy=320
    ;y-Value of the moving detection Point somewhere near the character, best over the characters head, below interference of the auras
    
    [other]
    mousespeed=0
    checkdelay=rand(331,427)
    
    ; -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
    ; KEY Binding
    ; -------------------------------------
    ; ALT+WheelDown: Stash scroll
    ; ALT+WheelUp: Stash scroll
    ; CTRL+WheelDown -> Spam CTRL+CLICK
    ; SHIFT+WheelDown -> Spam SHIFT+CLICK
    ; ALT+H -> Entering Hideout
    ; ALT+R -> Remaining Monsters
    AHK script code
    Code:
    #IfWinActive, Path of Exile ;check if a window with title "Path of Exile", casesensitive
    
    
    Menu, Tray, Icon, Images\Off.ico ;get a icon image
    Menu, Tray, Tip, Antyradio.pl ;tool tip when mouse over icon
    Menu, Tray, Add ;creates a separator line
    Menu, Tray, Add, Windowed (Borders), Border ; create a new menu item
    Menu, Tray, Add, Windowed (Borderless), Borderless
    Menu, Tray, Add, How To Use, HowToUse
    
    ;load border information from ini file
    toggle = 0
    IniRead, bl, setting.ini, border, borderleft
    IniRead, br, setting.ini, border, borderright
    IniRead, bt, setting.ini, border, bordertop
    IniRead, bd, setting.ini, border, borderdown
    IniRead, bd, setting.ini, border, borderdown
    
    
    ;load potion information from ini file
    
    ;high HP
    IniRead, usepotionhphigh, setting.ini, potion_high, hpremain
    IniRead, usepotionflaskindex1, setting.ini, potion_high, flask
    
    ;low HP
    IniRead, usepotionhplow, setting.ini, potion_low, hpremain
    IniRead, usepotionflaskindex2, setting.ini, potion_low, flask
    
    
    ;load defensive potion information from ini file
    IniRead, usepotiondefensive, setting.ini, defensive_potion, hpremain
    IniRead, usedefensivepotionflaskindex, setting.ini, defensive_potion, flask
    IniRead, usedefcd, setting.ini, defensive_potion, defcd
    
    ;load mana potion information from ini file
    IniRead, usepotionmp, setting.ini, mana_potion, mpremain
    IniRead, usemanapotionflaskindex, setting.ini, mana_potion, flask
    
    ;load quicksilver potion information from ini file
    IniRead, usepotionquick, setting.ini, quicksilver, timeleft
    IniRead, usequickpotionflaskindex, setting.ini, quicksilver, flask
    IniRead, usequickcd, setting.ini, quicksilver, quickcd
    
    ;load logout information from ini file
    IniRead, logouthp, setting.ini, logout, hpremain
    IniRead, logoutflaskindex, setting.ini, logout, flask
    
    ;load anchor information from ini file
    IniRead, defaultLogoutX, setting.ini, anchor, logoutbtnx
    IniRead, defaultLogoutY, setting.ini, anchor, logoutbtny
    
    IniRead, defaultWindowWidth, setting.ini, anchor, windoww
    IniRead, defaultWindowHeight, setting.ini, anchor, windowh
    
    IniRead, defaultHPMiddleX, setting.ini, anchor, hpmiddlex
    IniRead, defaultHPMiddleY, setting.ini, anchor, hpmiddley
    IniRead, defaultHPTopY, setting.ini, anchor, hptopy
    
    IniRead, defaultMPMiddleX, setting.ini, anchor, mpmiddlex
    IniRead, defaultMPMiddleY, setting.ini, anchor, mpmiddley
    IniRead, defaultMPTopY, setting.ini, anchor, mptopy
    
    IniRead, defaultChatX, setting.ini, anchor, chaticonx
    IniRead, defaultChatY, setting.ini, anchor, chaticony
    
    IniRead, defaultHideX, setting.ini, anchor, hideiconx
    IniRead, defaultHideY, setting.ini, anchor, hideicony
    
    IniRead, defaultMovX, setting.ini, anchor, movposx
    IniRead, defaultMovY, setting.ini, anchor, movposy
    
    
    
    ;load other information from ini file
    IniRead, mousespeed, setting.ini, other, mousespeed ;0~100(instant~slow)
    IniRead, checkdelay, setting.ini, other, checkdelay
    
    ;HP-Potion
    defaultUsePotion1HPY := floor(defaultHPTopY + (defaultWindowHeight-defaultHPTopY-bd) * (1-usepotionhphigh/100))
    
    defaultUsePotion2HPY := floor(defaultHPTopY + (defaultWindowHeight-defaultHPTopY-bd) * (1-usepotionhplow/100))
    
    ;Def-Potion
    defaultUseDefensivePotionHPY :=  floor(defaultHPTopY + (defaultWindowHeight-defaultHPTopY-bd) * (1-usepotiondefensive/100))
    
    ;MP-Potion
    defaultUseManaPotionMPY := floor(defaultMPTopY + (defaultWindowHeight-defaultMPTopY-bd) * (1-usepotionmp/100))
    
    defaultLogoutHPY := floor(defaultHPTopY + (defaultWindowHeight-defaultHPTopY-bd) * (1-logouthp/100))
    
    adjustLogout_X := 0
    adjustLogout_Y := 0
    return
    
    
    ;debug
    `::
    MouseGetPos, xpos, ypos 
    MsgBox, The cursor is at X%xpos% Y%ypos%. 
    return
    
    
    ;`:: 
    ;run, cports.exe /close * * * * PathofExile_x64.exe
    ;return
    
    F3::
    WinGetPos,,, w, h, A
    heightResizeRatio := (h-bt-bd)/(defaultWindowHeight-bt-bd)
    ; calculate log out button position
    if (adjustLogout_X == 0 && adjustLogout_Y == 0)
    {
        adjustLogout_X := w/2
        ;adjustLogout_Y := (defaultLogoutY-bt)*heightResizeRatio+bt
    	adjustLogout_Y := defaultLogoutY
    }
    
    ; calculate HP center position and chat icon position
    HX := defaultHPMiddleX
    HY := defaultHPMiddleY
    MX := defaultMPMiddleX
    MY := defaultMPMiddleY
    CX := defaultChatX
    CY := defaultChatY
    HIX:= defaultHideX
    HIY:= defaultHideY
    MOX:= defaultMovX
    MOY:= defaultMovY
    
    
    ;use this to check if the position is correct
    MouseMove HX, HY
    ;MouseMove MX, MY
    ;MouseMove CX, CY
    
    ; calculate use potion and logout HP Y
    adjustUsePotion1HPY := defaultUsePotion1HPY
    adjustUsePotion2HPY := defaultUsePotion2HPY
    adjustUseDefensivePotionHPY := defaultUseDefensivePotionHPY
    adjustUseManaPotionMPY := defaultUseManaPotionMPY
    adjustLogoutHPY := defaultLogoutHPY
    
    ;use this to check if the position is correct
    ;MouseMove HX, adjustUsePotion1HPY
    ;MouseMove HX, adjustUsePotion2HPY
    ;MouseMove HX, adjustUseDefensivePotionHPY
    MouseMove MX, adjustUseManaPotionMPY
    ;MouseMove HX, adjustLogoutHPY
    
    
    ;calculate chat icon search region, top left:(chatX1, chatY1), buttom right:(chatX2, chatY2)
    chatX1 := CX-7
    chatX2 := CX+7
    chatY1 := CY-7
    chatY2 := CY+7
    
    ;calculate hideout icon search region, top left:(hiX1, hiY1), buttom right:(hiX2, hiY2)
    hiX1 := HIX
    hiX2 := HIX
    hiY1 := HIY
    hiY2 := HIY
    
    ;calculate use potion hp search region, top left:(hp1_X1, hp1_Y1), buttom right:(hp1_X2, hp1_Y2)
    hp1_X1 := HX-7
    hp1_X2 := HX+7
    hp1_Y1 := adjustUsePotion1HPY-7
    hp1_Y2 := adjustUsePotion1HPY+7
    hp5_Y1 := adjustUsePotion2HPY-7
    hp5_Y2 := adjustUsePotion2HPY+7
    
    
    ;calculate use defensive potion hp search region, top left:(hp3_X1, hp3_Y1), buttom right:(hp3_X2, hp3_Y2)
    hp3_X1 := HX-7
    hp3_X2 := HX+7
    hp3_Y1 := adjustUseDefensivePotionHPY-7
    hp3_Y2 := adjustUseDefensivePotionHPY+7
    
    ;calculate use mana potion mp search region, top left:(mp1_X1, mp1_Y1), buttom right:(mp1_X2, mp1_Y2)
    mp1_X1 := MX-7
    mp1_X2 := MX+7
    mp1_Y1 := adjustUseManaPotionMPY-7
    mp1_Y2 := adjustUseManaPotionMPY+7
    
    ;calculate log out hp search region, top left:(hp2_X1, hp2_Y1), buttom right:(hp2_X2, hp2_Y2)
    hp2_X1 := HX-7
    hp2_X2 := HX+7
    hp2_Y1 := adjustLogoutHPY-7
    hp2_Y2 := adjustLogoutHPY+7
    
    ;calculate movearea search region, top left:(movX1, movY1), buttom right:(movX2, movY2)
    movX1 := MOX
    movX2 := MOX
    movY1 := MOY
    movY2 := MOY
    
    ;get hp center color and chat icon color used for pixel search later
    PixelGetColor, hpcolor1 , %HX%, %adjustUsePotion1HPY% ; get color GRB
    PixelGetColor, hpcolor1rgb , %HX%, %adjustUsePotion1HPY%, RGB ; get color RGB
    
    PixelGetColor, hpcolor5 , %HX%, %adjustUsePotion2HPY% ; get color GRB
    PixelGetColor, hpcolor5rgb , %HX%, %adjustUsePotion2HPY%, RGB ; get color RGB
    
    PixelGetColor, hpcolor2 , %HX%, %adjustLogoutHPY% ; get color GRB
    PixelGetColor, hpcolor2rgb , %HX%, %adjustLogoutHPY%, RGB ; get color RGB
    
    PixelGetColor, hpcolor3 , %HX%, %adjustUseDefensivePotionHPY% ; get color GRB
    PixelGetColor, hpcolor3rgb , %HX%, %adjustUseDefensivePotionHPY%, RGB ; get color RGB
    
    PixelGetColor, mpcolor1 , %MX%, %adjustUseManaPotionMPY% ; get color GRB
    PixelGetColor, mpcolor1rgb , %MX%, %adjustUseManaPotionMPY%, RGB ; get color RGB
    
    PixelGetColor, chaticoncolor , %CX%, %CY% 
    PixelGetColor, chaticoncolorrgb , %CX%, %CY%, RGB
    
    PixelGetColor, HOcolor , %HIX%, %HIY% 
    PixelGetColor, HOcolorrgb , %HIX%, %HIY%, RGB
    
    ;HOcolor:= put here your Pixelcolor
    ;HOcolorrgb := put here your RGB Pixelcolor
    
    PixelGetColor, MoveColor , %MOX%, %MOY% 
    PixelGetColor, MoveColorrgb , %MOX%, %MOY%, RGB
    
    
    
    ;pop up a gui showing the finding color for user to double check
    gui, new
    gui, Default
    gui, +LastFound ; make the GUI window the last found window for use by the line below.
    gui, add, groupbox, w205 h200, Colors found:
    gui, add, text, yp+25 xp+10, Chat Icon Color:
    gui, add, Progress, xp+80 yp-5 w100 h20 c%chaticoncolorrgb%,100
    gui, add, text, yp+25 xp-80, HP-High Potion:
    gui, add, Progress, xp+80 yp-5 w100 h20 c%hpcolor1rgb%,100
    gui, add, text, yp+25 xp-80, HP-Low Potion:
    gui, add, Progress, xp+80 yp-5 w100 h20 c%hpcolor5rgb%,100
    gui, add, text, yp+25 xp-80, Logout Color:
    gui, add, Progress, xp+80 yp-5 w100 h20 c%hpcolor2rgb%,100
    gui, add, text, yp+25 xp-80, Def. Potion Color:
    gui, add, Progress, xp+80 yp-5 w100 h20 c%hpcolor3rgb%,100
    gui, add, text, yp+25 xp-80, Mana Color:
    gui, add, Progress, xp+80 yp-5 w100 h20 c%mpcolor1rgb%,100
    gui, add, button, xp-80 yp+25 w25 h25 gDone, OK
    gui, show, ,Activated
    Menu, Tray, Icon, Images\On.ico
    
    
    ; Functions
    RandomSleep(min,max){
    	Random, r, %min%, %max%
    	r:=floor(r/Speed)
    	Sleep %r%
    	return
    }
    
    AutoClicks(){
    BlockInput On 
    Send {blind}{Lbutton down}{Lbutton up} 
    BlockInput Off
    }
    
    
    ;start searching (render a frame takes 0.03 sec in 30FPS, so we set the search time to 0.1 sec to make sure it won't search the same frame twice)
    Loop 
    {
        IfWinActive, Path of Exile
        {
            ;find the orange chat Icon (makes sure you are on a character)
            ;variable ErrorLevel is set to 0 if the color was found in the specified region, 1 if it was not found,
            ; or 2 if there was a problem that prevented the command from conducting the search.
            PixelSearch, FoundoX, FoundoY, %chatX1%, %chatY1%, %chatX2%, %chatY2%, %chaticoncolor%, 5, Fast    
            if ErrorLevel = 0
            {
    				;use potion when HP-High reaches the ratio user set
    				PixelSearch, FoundhX, FoundhY, %hp1_X1%, %hp1_Y1%, %hp1_X2%, %hp1_Y2%, %hpcolor1%, 5, Fast
    				if ErrorLevel = 1
    				{
    					SendInput, %usepotionflaskindex1%
    					RandomSleep(89,128)
    				}
    				
    				;use potion when HP-Low reaches the ratio user set
    				PixelSearch, FoundhX, FoundhY, %hp1_X1%, %hp5_Y1%, %hp1_X2%, %hp5_Y2%, %hpcolor5%, 5, Fast
    				if ErrorLevel = 1
    				{
    					SendInput, %usepotionflaskindex2%
    					RandomSleep(89,128)
    				}
    
    				;use defensive potion when HP reaches the ratio user set
    				PixelSearch, FoundhX, FoundhY, %hp3_X1%, %hp3_Y1%, %hp3_X2%, %hp3_Y2%, %hpcolor3%, 5, Fast
    				if ErrorLevel = 1
    				{
    					if (A_TickCount > defcdnext)
    						{
    							SendInput, %usedefensivepotionflaskindex%
    							defcdnext:= A_TickCount + usedefcd - 200
    						}
    				}
    
    				;use mana potion when MP reaches the ratio user set
    				PixelSearch, FoundhX, FoundhY, %mp1_X1%, %mp1_Y1%, %mp1_X2%, %mp1_Y2%, %mpcolor1%, 5, Fast
    				if ErrorLevel = 1
    				{
    					SendInput, %usemanapotionflaskindex%
    					RandomSleep(89,128)
    				}
    				
    				
    				;Quicksilver
    				PixelSearch, FoundhX, FoundhY, %hiX1%, %hiY1%, %hiX2%, %hiY2%, %HOcolor%, 1, Fast
    				if ErrorLevel = 1
    				{
    					if (A_TickCount > tlast)
    					{
    						PixelSearch, FoundhX, FoundhY, %movX1%, %movY1%, %movX2%, %movY2%,%MoveColor%, 10, Fast
    						if ErrorLevel = 1
    						{
    							PixelGetColor, MoveColor , %MOX%, %MOY%
    							PixelGetColor, MoveColorrgb , %MOX%, %MOY%, RGB
    							tlast:= A_TickCount
    							RandomSleep(89,128)
    							PixelSearch, FoundhX, FoundhY, %movX1%, %movY1%, %movX2%, %movY2%, %MoveColor%, 10, Fast
    							if ErrorLevel = 1
    							{
    								SendInput, %usequickpotionflaskindex%
    								tlast := (A_TickCount + usequickcd - 100)
    								Goto, JumpToEnd
    							}
    							tlast:= A_TickCount + usepotionquick
    							PixelGetColor, MoveColor , %MOX%, %MOY%
    							PixelGetColor, MoveColorrgb , %MOX%, %MOY%, RGB
    							JumpToEnd:
    						}
    					}
    				}
    							
    				;log out when HP reaches the ratio user set
    				PixelSearch, FoundhX, FoundhY, %hp2_X1%, %hp2_Y1%, %hp2_X2%, %hp2_Y2%, %hpcolor2%, 5, Fast
    				if ErrorLevel = 1
    				{
    					SendInput, %logoutflaskindex%
    					RandomSleep(89,128)
    				;	run, cports.exe /close * * * * PathofExile_x64.exe
    				}
    			
            }
        }
        Sleep, checkdelay
    }
    return
    
    Border:
    MsgBox, Windowed (Borders all around)
    ;For Windowed (with Borders all round)
    bl = 0
    br = 0
    bt = 29
    bd = 0
    IniWrite, %bl%, setting.ini, border, borderleft
    IniWrite, %br%, setting.ini, border, borderright
    IniWrite, %bt%, setting.ini, border, bordertop
    IniWrite, %bd%, setting.ini, border, borderdown1212
    return
    
    Borderless:
    MsgBox, Borderless (No Borders)
    ;For Fullscreen Borderless
    bl = 0
    br = 0
    bt = 0
    bd = 0
    IniWrite, %bl%, setting.ini, border, borderleft
    IniWrite, %br%, setting.ini, border, borderright
    IniWrite, %bt%, setting.ini, border, bordertop
    IniWrite, %bd%, setting.ini, border, borderdown
    return
    
    Done:
    gui, submit, nohide
    gui, destroy
    return
    
    HowToUse:
    MsgBox, `: Instant Logout`nF3: Activate`nF4: Reload`nF12: Exit`nCtrl+X: resync
    return
    
    ^x::
    SendInput, {Enter}
    sleep, 20
    SendInput, {/}oos
    SendInput, {Enter}
    return
    
    F4::Reload
    F12::ExitApp
    
    ; KEY Binding
    ; Legend:   ! = Alt      ^ = Ctrl     + = Shift 
    ; -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
    !WheelDown::Send {Right} ; ALT+WheelDown: Stash scroll
    return
    !WheelUp::Send {Left} ; ALT+WheelUp: Stash scroll
    return
    ^WheelDown::AutoClicks() ; CTRL+WheelDown -> Spam CTRL+CLICK
    return
    +WheelDown::AutoClicks() ; SHIFT+WheelDown -> Spam SHIFT+CLICK
    return   
    ; -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
    $!H::Send {Enter} /hideout {Enter} ; ALT+H
    return
    $!R::Send {Enter} /remaining {Enter} ; ALT+R
    return
    The Hideout-Check is done by checking the Edit-button and his color, so if you start the script you have to be in the Hideout. After you find the exact color of the pixel you can take this color and impliment it in the AHK script (comment the two "PixelGetColor, HOcolor" lines and uncomment the "HOcolor" below). Now you can start the script even outside your hideout.

    hf, I hope somebody enjoys my effort

    happy for any feedback, thx

    edit1: I too put comments in the INI-File for understanding.
    edit2: If you have an other screenresolution as me, use the window spy of the ahk script and change the setting.ini to your Pixelvalues.
    edit3: corrected description setting.ini
    edit4: floor pixelvalues in the script
    Last edited by Gutsuu; 11-01-2018 at 02:38 PM.

    [Health Autopot & AutoChicken] Soothe your wounds until PoEHUD is safe again
  2. Thanks levelmax, Yisherkins, DeeThree, teh_m4st3r (4 members gave Thanks to Gutsuu for this useful post)
  3. #77
    Yisherkins's Avatar Banned
    Reputation
    2
    Join Date
    Oct 2018
    Posts
    3
    Thanks G/R
    3/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Gutsuu View Post
    I've tried to use the normal script, but it didn't worked out for me cause of my screenresolution (3440 x 1440 QHD, Windowed Fullscreen). So I made too some modifications of the provided scripts.
    I implimented:
    - random sleeptime after usage
    - second HP-threshold
    - KEY Bindings
    - Quicksilver usage, which should only activate if outside of your Hideout

    I'm sorry if the code is not today standards and dirty, but it fullfills my needs.

    pls, let me know if the code can be optimised CPU- , time-wise or any other way.

    setting.ini
    Code:
    [border]
    ;borderwidth of the game window
    borderleft=0
    borderright=0
    bordertop=0
    borderdown=0
    
    [potion_high]
    ;first HP threshold
    hpremain=
    ;HP-%level
    flask=
    ;give the number/key what should be pressed if HP falls below the first HP-%level
    
    [potion_low]
    ;second HP threshold
    hpremain=
    ;HP-%level
    flask=
    ;give the number/key what should be pressed if HP falls below the second HP-%level
    
    [mana_potion]
    ;Mana threshold
    mpremain=
    ;Mana-%level
    flask=
    ;give the number/key what should be pressed if Mana falls below the Mana-%level
    
    [defensive_potion]
    ;defpotion threshold
    hpremain=
    ;HP-%level
    flask=
    ;give the number/key what should be pressed if HP falls below the HP-%level
    defcd=
    ;ms cooldown time of the flask
    
    [logout]
    ;logout threshold, actual is used for healing or defence flask, if you want to logout, prep in the the script which usage
    hpremain=
    ;HP-%level
    flask=
    ;give the number/key what should be pressed if HP falls below the HP-%level
    
    [quicksilver]
    ;quicksilver usage
    timeleft=
    ;ms time moving until the script will activate a flask (could be used too for skills, for example Blood Rage)
    flask=
    ;give the number/key what should be pressed
    quickcd=
    ;ms cooldown time of the quicksilver flask
    
    
    [anchor]
    logoutbtnx=1720
    ;x-Value of the button when you press ESC
    logoutbtny=575
    ;y-Value of the button when you press ESC
    windoww=3440
    ;width of the screenresolution
    windowh=1440
    ;hight of the screenresolution
    hpmiddlex=150
    ;x-Value of the middle axe of the HP-Globe on the left side
    hpmiddley=435
    ;y-Value of the middle axe of the HP-Bar over the Character
    hptopy=1165
    ;y-Value of the highest Point of the HP-Globe on the left side, HP & Mana-Globe have both the same y-Value
    mpmiddlex=3290
    ;x-Value of the middle axe of the Mana-Globe on the right side
    mpmiddley=450
    ;y-Value of the middle axe of the Mana-Bar over the Character
    mptopy=1165
    ;y-Value of the highest Point of the Mana-Globe on the right side, HP & Mana-Globe have both the same y-Value
    chaticonx=22
    ;x-Value of middlepoint of the chaticon over the girl-statue on the left side over the HP-Globe
    chaticony=1175
    ;y-Value of middlepoint of the chaticon over the girl-statue on the left side over the HP-Globe
    hideiconx=2500
    ;x-Value of middlepoint of the Edit button in the Hideout
    hideicony=1355
    ;y-Value of middlepoint of the Edit button in the Hideout
    movposx=1720
    ;x-Value of the moving detection Point in the middle of the screenresolution
    movposy=320
    ;y-Value of the moving detection Point somewhere near the character, best over the characters head, below interference of the auras
    
    [other]
    mousespeed=0
    checkdelay=rand(331,427)
    
    ; -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
    ; KEY Binding
    ; -------------------------------------
    ; ALT+WheelDown: Stash scroll
    ; ALT+WheelUp: Stash scroll
    ; CTRL+WheelDown -> Spam CTRL+CLICK
    ; SHIFT+WheelDown -> Spam SHIFT+CLICK
    ; ALT+H -> Entering Hideout
    ; ALT+R -> Remaining Monsters
    AHK script code
    Code:
    #IfWinActive, Path of Exile ;check if a window with title "Path of Exile", casesensitive
    
    
    Menu, Tray, Icon, Images\Off.ico ;get a icon image
    Menu, Tray, Tip, Antyradio.pl ;tool tip when mouse over icon
    Menu, Tray, Add ;creates a separator line
    Menu, Tray, Add, Windowed (Borders), Border ; create a new menu item
    Menu, Tray, Add, Windowed (Borderless), Borderless
    Menu, Tray, Add, How To Use, HowToUse
    
    ;load border information from ini file
    toggle = 0
    IniRead, bl, setting.ini, border, borderleft
    IniRead, br, setting.ini, border, borderright
    IniRead, bt, setting.ini, border, bordertop
    IniRead, bd, setting.ini, border, borderdown
    IniRead, bd, setting.ini, border, borderdown
    
    
    ;load potion information from ini file
    
    ;high HP
    IniRead, usepotionhphigh, setting.ini, potion_high, hpremain
    IniRead, usepotionflaskindex1, setting.ini, potion_high, flask
    
    ;low HP
    IniRead, usepotionhplow, setting.ini, potion_low, hpremain
    IniRead, usepotionflaskindex2, setting.ini, potion_low, flask
    
    
    ;load defensive potion information from ini file
    IniRead, usepotiondefensive, setting.ini, defensive_potion, hpremain
    IniRead, usedefensivepotionflaskindex, setting.ini, defensive_potion, flask
    IniRead, usedefcd, setting.ini, defensive_potion, defcd
    
    ;load mana potion information from ini file
    IniRead, usepotionmp, setting.ini, mana_potion, mpremain
    IniRead, usemanapotionflaskindex, setting.ini, mana_potion, flask
    
    ;load quicksilver potion information from ini file
    IniRead, usepotionquick, setting.ini, quicksilver, timeleft
    IniRead, usequickpotionflaskindex, setting.ini, quicksilver, flask
    IniRead, usequickcd, setting.ini, quicksilver, quickcd
    
    ;load logout information from ini file
    IniRead, logouthp, setting.ini, logout, hpremain
    IniRead, logoutflaskindex, setting.ini, logout, flask
    
    ;load anchor information from ini file
    IniRead, defaultLogoutX, setting.ini, anchor, logoutbtnx
    IniRead, defaultLogoutY, setting.ini, anchor, logoutbtny
    
    IniRead, defaultWindowWidth, setting.ini, anchor, windoww
    IniRead, defaultWindowHeight, setting.ini, anchor, windowh
    
    IniRead, defaultHPMiddleX, setting.ini, anchor, hpmiddlex
    IniRead, defaultHPMiddleY, setting.ini, anchor, hpmiddley
    IniRead, defaultHPTopY, setting.ini, anchor, hptopy
    
    IniRead, defaultMPMiddleX, setting.ini, anchor, mpmiddlex
    IniRead, defaultMPMiddleY, setting.ini, anchor, mpmiddley
    IniRead, defaultMPTopY, setting.ini, anchor, mptopy
    
    IniRead, defaultChatX, setting.ini, anchor, chaticonx
    IniRead, defaultChatY, setting.ini, anchor, chaticony
    
    IniRead, defaultHideX, setting.ini, anchor, hideiconx
    IniRead, defaultHideY, setting.ini, anchor, hideicony
    
    IniRead, defaultMovX, setting.ini, anchor, movposx
    IniRead, defaultMovY, setting.ini, anchor, movposy
    
    
    
    ;load other information from ini file
    IniRead, mousespeed, setting.ini, other, mousespeed ;0~100(instant~slow)
    IniRead, checkdelay, setting.ini, other, checkdelay
    
    ;HP-Potion
    defaultUsePotion1HPY := defaultHPTopY + (defaultWindowHeight-defaultHPTopY-bd) * (100-usepotionhphigh) / 100
    
    defaultUsePotion2HPY := defaultHPTopY + (defaultWindowHeight-defaultHPTopY-bd) * (100-usepotionhplow) / 100
    
    ;Def-Potion
    defaultUseDefensivePotionHPY :=  defaultHPTopY + (defaultWindowHeight-defaultHPTopY-bd) * (100-usepotiondefensive) / 100
    
    ;MP-Potion
    defaultUseManaPotionMPY := defaultMPTopY + (defaultWindowHeight-defaultMPTopY-bd) * (100-usepotionmp) / 100
    
    defaultLogoutHPY := defaultHPTopY + (defaultWindowHeight-defaultHPTopY-bd) * (100-logouthp) / 100
    
    adjustLogout_X := 0
    adjustLogout_Y := 0
    return
    
    
    ;debug
    `::
    MouseGetPos, xpos, ypos 
    MsgBox, The cursor is at X%xpos% Y%ypos%. 
    return
    
    
    ;`:: 
    ;run, cports.exe /close * * * * PathofExile_x64.exe
    ;return
    
    F3::
    WinGetPos,,, w, h, A
    heightResizeRatio := (h-bt-bd)/(defaultWindowHeight-bt-bd)
    ; calculate log out button position
    if (adjustLogout_X == 0 && adjustLogout_Y == 0)
    {
        adjustLogout_X := w/2
        ;adjustLogout_Y := (defaultLogoutY-bt)*heightResizeRatio+bt
    	adjustLogout_Y := defaultLogoutY
    }
    
    ; calculate HP center position and chat icon position
    HX := defaultHPMiddleX
    HY := defaultHPMiddleY
    MX := defaultMPMiddleX
    MY := defaultMPMiddleY
    CX := defaultChatX
    CY := defaultChatY
    HIX:= defaultHideX
    HIY:= defaultHideY
    MOX:= defaultMovX
    MOY:= defaultMovY
    
    
    ;use this to check if the position is correct
    MouseMove HX, HY
    ;MouseMove MX, MY
    ;MouseMove CX, CY
    
    ; calculate use potion and logout HP Y
    adjustUsePotion1HPY := defaultUsePotion1HPY
    adjustUsePotion2HPY := defaultUsePotion2HPY
    adjustUseDefensivePotionHPY := defaultUseDefensivePotionHPY
    adjustUseManaPotionMPY := defaultUseManaPotionMPY
    adjustLogoutHPY := defaultLogoutHPY
    
    ;use this to check if the position is correct
    ;MouseMove HX, adjustUsePotion1HPY
    ;MouseMove HX, adjustUsePotion2HPY
    ;MouseMove HX, adjustUseDefensivePotionHPY
    MouseMove MX, adjustUseManaPotionMPY
    ;MouseMove HX, adjustLogoutHPY
    
    
    ;calculate chat icon search region, top left:(chatX1, chatY1), buttom right:(chatX2, chatY2)
    chatX1 := CX-7
    chatX2 := CX+7
    chatY1 := CY-7
    chatY2 := CY+7
    
    ;calculate hideout icon search region, top left:(hiX1, hiY1), buttom right:(hiX2, hiY2)
    hiX1 := HIX
    hiX2 := HIX
    hiY1 := HIY
    hiY2 := HIY
    
    ;calculate use potion hp search region, top left:(hp1_X1, hp1_Y1), buttom right:(hp1_X2, hp1_Y2)
    hp1_X1 := HX-7
    hp1_X2 := HX+7
    hp1_Y1 := adjustUsePotion1HPY-7
    hp1_Y2 := adjustUsePotion1HPY+7
    hp5_Y1 := adjustUsePotion2HPY-7
    hp5_Y2 := adjustUsePotion2HPY+7
    
    
    ;calculate use defensive potion hp search region, top left:(hp3_X1, hp3_Y1), buttom right:(hp3_X2, hp3_Y2)
    hp3_X1 := HX-7
    hp3_X2 := HX+7
    hp3_Y1 := adjustUseDefensivePotionHPY-7
    hp3_Y2 := adjustUseDefensivePotionHPY+7
    
    ;calculate use mana potion mp search region, top left:(mp1_X1, mp1_Y1), buttom right:(mp1_X2, mp1_Y2)
    mp1_X1 := MX-7
    mp1_X2 := MX+7
    mp1_Y1 := adjustUseManaPotionMPY-7
    mp1_Y2 := adjustUseManaPotionMPY+7
    
    ;calculate log out hp search region, top left:(hp2_X1, hp2_Y1), buttom right:(hp2_X2, hp2_Y2)
    hp2_X1 := HX-7
    hp2_X2 := HX+7
    hp2_Y1 := adjustLogoutHPY-7
    hp2_Y2 := adjustLogoutHPY+7
    
    ;calculate movearea search region, top left:(movX1, movY1), buttom right:(movX2, movY2)
    movX1 := MOX
    movX2 := MOX
    movY1 := MOY
    movY2 := MOY
    
    ;get hp center color and chat icon color used for pixel search later
    PixelGetColor, hpcolor1 , %HX%, %adjustUsePotion1HPY% ; get color GRB
    PixelGetColor, hpcolor1rgb , %HX%, %adjustUsePotion1HPY%, RGB ; get color RGB
    
    PixelGetColor, hpcolor5 , %HX%, %adjustUsePotion2HPY% ; get color GRB
    PixelGetColor, hpcolor5rgb , %HX%, %adjustUsePotion2HPY%, RGB ; get color RGB
    
    PixelGetColor, hpcolor2 , %HX%, %adjustLogoutHPY% ; get color GRB
    PixelGetColor, hpcolor2rgb , %HX%, %adjustLogoutHPY%, RGB ; get color RGB
    
    PixelGetColor, hpcolor3 , %HX%, %adjustUseDefensivePotionHPY% ; get color GRB
    PixelGetColor, hpcolor3rgb , %HX%, %adjustUseDefensivePotionHPY%, RGB ; get color RGB
    
    PixelGetColor, mpcolor1 , %MX%, %adjustUseManaPotionMPY% ; get color GRB
    PixelGetColor, mpcolor1rgb , %MX%, %adjustUseManaPotionMPY%, RGB ; get color RGB
    
    PixelGetColor, chaticoncolor , %CX%, %CY% 
    PixelGetColor, chaticoncolorrgb , %CX%, %CY%, RGB
    
    PixelGetColor, HOcolor , %HIX%, %HIY% 
    PixelGetColor, HOcolorrgb , %HIX%, %HIY%, RGB
    
    ;HOcolor:= put here your Pixelcolor
    ;HOcolorrgb := put here your RGB Pixelcolor
    
    PixelGetColor, MoveColor , %MOX%, %MOY% 
    PixelGetColor, MoveColorrgb , %MOX%, %MOY%, RGB
    
    
    
    ;pop up a gui showing the finding color for user to double check
    gui, new
    gui, Default
    gui, +LastFound ; make the GUI window the last found window for use by the line below.
    gui, add, groupbox, w205 h200, Colors found:
    gui, add, text, yp+25 xp+10, Chat Icon Color:
    gui, add, Progress, xp+80 yp-5 w100 h20 c%chaticoncolorrgb%,100
    gui, add, text, yp+25 xp-80, HP-High Potion:
    gui, add, Progress, xp+80 yp-5 w100 h20 c%hpcolor1rgb%,100
    gui, add, text, yp+25 xp-80, HP-Low Potion:
    gui, add, Progress, xp+80 yp-5 w100 h20 c%hpcolor5rgb%,100
    gui, add, text, yp+25 xp-80, Logout Color:
    gui, add, Progress, xp+80 yp-5 w100 h20 c%hpcolor2rgb%,100
    gui, add, text, yp+25 xp-80, Def. Potion Color:
    gui, add, Progress, xp+80 yp-5 w100 h20 c%hpcolor3rgb%,100
    gui, add, text, yp+25 xp-80, Mana Color:
    gui, add, Progress, xp+80 yp-5 w100 h20 c%mpcolor1rgb%,100
    gui, add, button, xp-80 yp+25 w25 h25 gDone, OK
    gui, show, ,Activated
    Menu, Tray, Icon, Images\On.ico
    
    
    ; Functions
    RandomSleep(min,max){
    	Random, r, %min%, %max%
    	r:=floor(r/Speed)
    	Sleep %r%
    	return
    }
    
    AutoClicks(){
    BlockInput On 
    Send {blind}{Lbutton down}{Lbutton up} 
    BlockInput Off
    }
    
    
    ;start searching (render a frame takes 0.03 sec in 30FPS, so we set the search time to 0.1 sec to make sure it won't search the same frame twice)
    Loop 
    {
        IfWinActive, Path of Exile
        {
            ;find the orange chat Icon (makes sure you are on a character)
            ;variable ErrorLevel is set to 0 if the color was found in the specified region, 1 if it was not found,
            ; or 2 if there was a problem that prevented the command from conducting the search.
            PixelSearch, FoundoX, FoundoY, %chatX1%, %chatY1%, %chatX2%, %chatY2%, %chaticoncolor%, 5, Fast    
            if ErrorLevel = 0
            {
    				;use potion when HP-High reaches the ratio user set
    				PixelSearch, FoundhX, FoundhY, %hp1_X1%, %hp1_Y1%, %hp1_X2%, %hp1_Y2%, %hpcolor1%, 5, Fast
    				if ErrorLevel = 1
    				{
    					SendInput, %usepotionflaskindex1%
    					RandomSleep(89,128)
    				}
    				
    				;use potion when HP-Low reaches the ratio user set
    				PixelSearch, FoundhX, FoundhY, %hp1_X1%, %hp5_Y1%, %hp1_X2%, %hp5_Y2%, %hpcolor5%, 5, Fast
    				if ErrorLevel = 1
    				{
    					SendInput, %usepotionflaskindex2%
    					RandomSleep(89,128)
    				}
    
    				;use defensive potion when HP reaches the ratio user set
    				PixelSearch, FoundhX, FoundhY, %hp3_X1%, %hp3_Y1%, %hp3_X2%, %hp3_Y2%, %hpcolor3%, 5, Fast
    				if ErrorLevel = 1
    				{
    					if (A_TickCount > defcdnext)
    						{
    							SendInput, %usedefensivepotionflaskindex%
    							defcdnext:= A_TickCount + usedefcd - 200
    						}
    				}
    
    				;use mana potion when MP reaches the ratio user set
    				PixelSearch, FoundhX, FoundhY, %mp1_X1%, %mp1_Y1%, %mp1_X2%, %mp1_Y2%, %mpcolor1%, 5, Fast
    				if ErrorLevel = 1
    				{
    					SendInput, %usemanapotionflaskindex%
    					RandomSleep(89,128)
    				}
    				
    				
    				;Quicksilver
    				PixelSearch, FoundhX, FoundhY, %hiX1%, %hiY1%, %hiX2%, %hiY2%, %HOcolor%, 1, Fast
    				if ErrorLevel = 1
    				{
    					if (A_TickCount > tlast)
    					{
    						PixelSearch, FoundhX, FoundhY, %movX1%, %movY1%, %movX2%, %movY2%,%MoveColor%, 10, Fast
    						if ErrorLevel = 1
    						{
    							PixelGetColor, MoveColor , %MOX%, %MOY%
    							PixelGetColor, MoveColorrgb , %MOX%, %MOY%, RGB
    							tlast:= A_TickCount
    							RandomSleep(89,128)
    							PixelSearch, FoundhX, FoundhY, %movX1%, %movY1%, %movX2%, %movY2%, %MoveColor%, 10, Fast
    							if ErrorLevel = 1
    							{
    								SendInput, %usequickpotionflaskindex%
    								tlast := (A_TickCount + usequickcd - 100)
    								Goto, JumpToEnd
    							}
    							tlast:= A_TickCount + usepotionquick
    							PixelGetColor, MoveColor , %MOX%, %MOY%
    							PixelGetColor, MoveColorrgb , %MOX%, %MOY%, RGB
    							JumpToEnd:
    						}
    					}
    				}
    							
    				;log out when HP reaches the ratio user set
    				PixelSearch, FoundhX, FoundhY, %hp2_X1%, %hp2_Y1%, %hp2_X2%, %hp2_Y2%, %hpcolor2%, 5, Fast
    				if ErrorLevel = 1
    				{
    					SendInput, %logoutflaskindex%
    					RandomSleep(89,128)
    				;	run, cports.exe /close * * * * PathofExile_x64.exe
    				}
    			
            }
        }
        Sleep, checkdelay
    }
    return
    
    Border:
    MsgBox, Windowed (Borders all around)
    ;For Windowed (with Borders all round)
    bl = 0
    br = 0
    bt = 29
    bd = 0
    IniWrite, %bl%, setting.ini, border, borderleft
    IniWrite, %br%, setting.ini, border, borderright
    IniWrite, %bt%, setting.ini, border, bordertop
    IniWrite, %bd%, setting.ini, border, borderdown1212
    return
    
    Borderless:
    MsgBox, Borderless (No Borders)
    ;For Fullscreen Borderless
    bl = 0
    br = 0
    bt = 0
    bd = 0
    IniWrite, %bl%, setting.ini, border, borderleft
    IniWrite, %br%, setting.ini, border, borderright
    IniWrite, %bt%, setting.ini, border, bordertop
    IniWrite, %bd%, setting.ini, border, borderdown
    return
    
    Done:
    gui, submit, nohide
    gui, destroy
    return
    
    HowToUse:
    MsgBox, `: Instant Logout`nF3: Activate`nF4: Reload`nF12: Exit`nCtrl+X: resync
    return
    
    ^x::
    SendInput, {Enter}
    sleep, 20
    SendInput, {/}oos
    SendInput, {Enter}
    return
    
    F4::Reload
    F12::ExitApp
    
    ; KEY Binding
    ; Legend:   ! = Alt      ^ = Ctrl     + = Shift 
    ; -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
    !WheelDown::Send {Right} ; ALT+WheelDown: Stash scroll
    return
    !WheelUp::Send {Left} ; ALT+WheelUp: Stash scroll
    return
    ^WheelDown::AutoClicks() ; CTRL+WheelDown -> Spam CTRL+CLICK
    return
    +WheelDown::AutoClicks() ; SHIFT+WheelDown -> Spam SHIFT+CLICK
    return   
    ; -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
    $!H::Send {Enter} /hideout {Enter} ; ALT+H
    return
    $!R::Send {Enter} /remaining {Enter} ; ALT+R
    return
    The Hideout-Check is done by checking the Edit-button and his color, so if you start the script you have to be in the Hideout. After you find the exact color of the pixel you can take this color and impliment it in the AHK script (comment the two "PixelGetColor, HOcolor" lines and uncomment the "HOcolor" below). Now you can start the script even outside your hideout.

    hf, I hope somebody enjoys my effort

    happy for any feedback, thx

    edit1: I too put comments in the INI-File for understanding.

    edit2: If you have an other screenresolution as me, use the window spy of the ahk script and change the setting.ini to your Pixelvalues.
    Having trouble understanding what ";x-Value of the middle axe of the HP-Globe on the left side" means. More specifically the "middle axe" part. Any help would be greatly appreciated.

  4. Thanks Gutsuu (1 members gave Thanks to Yisherkins for this useful post)
  5. #78
    Gutsuu's Avatar Member
    Reputation
    12
    Join Date
    Feb 2017
    Posts
    10
    Thanks G/R
    13/11
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Yisherkins View Post
    Having trouble understanding what ";x-Value of the middle axe of the HP-Globe on the left side" means. More specifically the "middle axe" part. Any help would be greatly appreciated.
    I'm sorry for the not exact description. I meant the vertical middle axe of the Globe

    Picture:
    Path-of-Exile-14.jpg

    I put the vertical middle axes of the globes marked with the green line in (hpmiddlex & mpmiddlex) and circled in green the highest point of the globes ("hptopy & mptopy"). You can choose where to put your topy-value, for example if you have reserved mana, than it will look that y-value base as 100%.
    Last edited by Gutsuu; 11-01-2018 at 05:50 AM.

  6. Thanks Yisherkins, teh_m4st3r (2 members gave Thanks to Gutsuu for this useful post)
  7. #79
    Yisherkins's Avatar Banned
    Reputation
    2
    Join Date
    Oct 2018
    Posts
    3
    Thanks G/R
    3/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Gutsuu View Post
    I'm sorry for the not exact description. I meant the vertical middle axe of the Globe

    Picture:
    Path-of-Exile-14.jpg

    I put the vertical middle axes of the globes marked with the green line in (hpmiddlex & mpmiddlex) and circled in green the highest point of the globes ("hptopy & mptopy"). You can choose where to put your topy-value, for example if you have reserved mana, than it will look that y-value base as 100%.
    So does that mean you put the value "hpmiddlex" anywhere on that green line on the hp globe? Or does it have to be a specific point on that line. The screenshot was very helpful though, you should consider making a screenshot with all points labeled that you are meant to enter into your ini file, as im sure something visual would be very helpful to a lot of people. Thanks so much for taking the time to respond to me.
    Last edited by Yisherkins; 11-01-2018 at 01:45 PM.

  8. #80
    Gutsuu's Avatar Member
    Reputation
    12
    Join Date
    Feb 2017
    Posts
    10
    Thanks G/R
    13/11
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Yisherkins View Post
    So does that mean you put the value "hpmiddlex" anywhere on that green line on the hp globe? Or does it have to be a specific point on that line. The screenshot was very helpful though, you should consider making a screenshot with all points labeled that you are meant to enter into your ini file, as im sure something visual would be very helpful to a lot of people. Thanks so much for taking the time to respond to me.
    An X-Value has the same value on a vertical line, from the bottom until the top of the screen. And the Y-Value has the same Value on a horizontal line.

    screenshot.png

    So specific to your question. It has to be an x-value near that vertical middle line-axis of the globe. Because you take only the X-Value it isn't a problem at all, if you take the value from the bottom or from the top of the screen. Althoug it would be quite akward to meassure the right axis from so far away of the globe, so i suggest you go near the globe to take the x-value (as a tip: just take the x-value when you meassure "hptopy").
    Last edited by Gutsuu; 11-01-2018 at 03:01 PM.

  9. Thanks Yisherkins, teh_m4st3r (2 members gave Thanks to Gutsuu for this useful post)
  10. #81
    Yisherkins's Avatar Banned
    Reputation
    2
    Join Date
    Oct 2018
    Posts
    3
    Thanks G/R
    3/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Gutsuu View Post
    An X-Value has the same value on a vertical line, from the bottom until the top of the screen. And the Y-Value has the same Value on a horizontal line.

    screenshot.png

    So specific to your question. It has to be an x-value near that vertical middle line-axis of the globe. Because you take only the X-Value it isn't a problem at all, if you take the value from the bottom or from the top of the screen. Althoug it would be quite akward to meassure the right axis from so far away of the globe, so i suggest you go near the globe to take the x-value (as a tip: just take the x-value when you meassure "hptopy").
    Ah, I understand now. Sorry about that it was a bit confusing. Thanks again for the explanation.

  11. #82
    allahutapap's Avatar Member
    Reputation
    1
    Join Date
    Nov 2018
    Posts
    12
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Can you take a look and tell me what the 12345 values are ? It's bit confusing for me, I'm running 2560 x 1440 cus I dunno how you read it...

    Screenshot Help !!!

  12. #83
    Gutsuu's Avatar Member
    Reputation
    12
    Join Date
    Feb 2017
    Posts
    10
    Thanks G/R
    13/11
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by allahutapap View Post
    Can you take a look and tell me what the 12345 values are ? It's bit confusing for me, I'm running 2560 x 1440 cus I dunno how you read it...

    Screenshot Help !!!
    pls, play it in borderless mode, i never used it otherwise. You can point with the mouse pointer at the searching point (the game window has to be active, otherwise it will give you the wrong Pixelvalues).

    Info Window Spy Example:
    Window: 150, 1160 (default) ---> 150 = X-Value ; 1160 = Y-Value

    I think now you know how to use the Window Spy Tool and you can find your own points of interest.

    gl, hf

  13. Thanks teh_m4st3r (1 members gave Thanks to Gutsuu for this useful post)
  14. #84
    DeeThree's Avatar Member
    Reputation
    4
    Join Date
    Feb 2018
    Posts
    32
    Thanks G/R
    30/3
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    @Gutsuu

    Can you explain what this value is for?

    mpmiddley=450
    ;y-Value of the horizontal middle axis of the Mana-Bar over the Character

    Also if it is being used to measure manna level does it also need to be at the mid point of the mana level when using a reservation or just the middle of the bar itself period?

    TIA

  15. #85
    Gutsuu's Avatar Member
    Reputation
    12
    Join Date
    Feb 2017
    Posts
    10
    Thanks G/R
    13/11
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by DeeThree View Post
    @Gutsuu

    Can you explain what this value is for?

    mpmiddley=450
    ;y-Value of the horizontal middle axis of the Mana-Bar over the Character

    Also if it is being used to measure manna level does it also need to be at the mid point of the mana level when using a reservation or just the middle of the bar itself period?

    TIA
    Those values "hpmiddley & mpmiddley" were from the provided script, they aren't actually used in my modified script. They were used to adjust the Screenres. but only worked if 19:6 Ratio. I just deleted those lines in the script, but didn't cleaned everything out. I said, it's a bit of a patchwork of diffrent scripts. Those mini-bars are directly over the character, sometimes they are deactivated in the POE Options, so you have to activate them first. But like I already said, they are not used in my script.

  16. Thanks DeeThree, teh_m4st3r (2 members gave Thanks to Gutsuu for this useful post)
  17. #86
    DeeThree's Avatar Member
    Reputation
    4
    Join Date
    Feb 2018
    Posts
    32
    Thanks G/R
    30/3
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thank you for the answer and the work on the script. Health mostly seems to work, Mana seems a bit inconsistent with a reservation, not tried it with a full pool though.

  18. #87
    teh_m4st3r's Avatar Member
    Reputation
    2
    Join Date
    Dec 2007
    Posts
    1
    Thanks G/R
    5/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    A couple more resolutions here for folks. (This is based on Gutsuu's excellent modifications.)

    2560x1080
    Code:
    [anchor]
    logoutbtnx=1272
    ;x-Value of the button when you press ESC
    logoutbtny=432
    ;y-Value of the button when you press ESC
    windoww=2560
    ;width of the screenresolution
    windowh=1080
    ;hight of the screenresolution
    hpmiddlex=113
    ;x-Value of the vertical middle axis of the HP-Globe on the left side
    hpmiddley=435
    ;y-Value of the horizontal middle axis of the HP-Bar over the Character
    hptopy=873
    ;y-Value of the highest Point of the HP-Globe on the left side, HP & Mana-Globe have both the same y-Value
    mpmiddlex=2450
    ;x-Value of the vertical middle axis of the Mana-Globe on the right side
    mpmiddley=999
    ;y-Value of the horizontal middle axis of the Mana-Bar over the Character
    mptopy=873
    ;y-Value of the highest Point of the Mana-Globe on the right side, HP & Mana-Globe have both the same y-Value
    chaticonx=15
    ;x-Value of middlepoint of the chaticon over the girl-statue on the left side over the HP-Globe
    chaticony=882
    ;y-Value of middlepoint of the chaticon over the girl-statue on the left side over the HP-Globe
    hideiconx=1854
    ;x-Value of middlepoint of the Edit button in the Hideout
    hideicony=1016
    ;y-Value of middlepoint of the Edit button in the Hideout
    movposx=1280
    ;x-Value of the moving detection Point in the middle of the screenresolution
    movposy=210
    ;y-Value of the moving detection Point somewhere near the character, best over the characters head, below interference of the auras
    And here's 2560x1440.
    Code:
    [anchor]
    logoutbtnx=1281
    ;x-Value of the button when you press ESC
    logoutbtny=574
    ;y-Value of the button when you press ESC
    windoww=2560
    ;width of the screenresolution
    windowh=1440
    ;hight of the screenresolution
    hpmiddlex=145
    ;x-Value of the vertical middle axis of the HP-Globe on the left side
    hpmiddley=435
    ;y-Value of the horizontal middle axis of the HP-Bar over the Character
    hptopy=1164
    ;y-Value of the highest Point of the HP-Globe on the left side, HP & Mana-Globe have both the same y-Value
    mpmiddlex=2410
    ;x-Value of the vertical middle axis of the Mana-Globe on the right side
    mpmiddley=450
    ;y-Value of the horizontal middle axis of the Mana-Bar over the Character
    mptopy=1165
    ;y-Value of the highest Point of the Mana-Globe on the right side, HP & Mana-Globe have both the same y-Value
    chaticonx=22
    ;x-Value of middlepoint of the chaticon over the girl-statue on the left side over the HP-Globe
    chaticony=1175
    ;y-Value of middlepoint of the chaticon over the girl-statue on the left side over the HP-Globe
    hideiconx=1617
    ;x-Value of middlepoint of the Edit button in the Hideout
    hideicony=1345
    ;y-Value of middlepoint of the Edit button in the Hideout
    movposx=1275
    ;x-Value of the moving detection Point in the middle of the screenresolution
    movposy=360
    ;y-Value of the moving detection Point somewhere near the character, best over the characters head, below interference of the auras
    Last edited by teh_m4st3r; 11-19-2018 at 02:34 AM. Reason: more resolutions

  19. Thanks Dant121 (1 members gave Thanks to teh_m4st3r for this useful post)
  20. #88
    DeeThree's Avatar Member
    Reputation
    4
    Join Date
    Feb 2018
    Posts
    32
    Thanks G/R
    30/3
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by teh_m4st3r View Post
    Could you please post your version of the 2546x1440 script that you modified? I'm struggling to get it to work.
    I'm using it at 1920x1080, you'll need to press ` at each spot described in the setting.ini and enter the X-Y coordinates for your resolution. The descriptions are for the entry ABOVE each one. Once done save the ini and press F3 to see if it grabbed the right colors. You also need the archive linked in the first post for the image files.

    setting.ini - Pastebin.com

    autopot.ahk - Pastebin.com

  21. #89
    sarskever's Avatar Member
    Reputation
    1
    Join Date
    Jan 2011
    Posts
    20
    Thanks G/R
    0/0
    Trade Feedback
    2 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Gutsuu View Post
    Those values "hpmiddley & mpmiddley" were from the provided script, they aren't actually used in my modified script. They were used to adjust the Screenres. but only worked if 19:6 Ratio. I just deleted those lines in the script, but didn't cleaned everything out. I said, it's a bit of a patchwork of diffrent scripts. Those mini-bars are directly over the character, sometimes they are deactivated in the POE Options, so you have to activate them first. But like I already said, they are not used in my script.
    Thanks a lot for your script, my resolution happens to be the same as you but mana and quicksilver don't seem to work. Edited the ini, ran it with f3 in hideout to retreive values. HP flask is being used correctly but it's not using mana and quicksilver at all. Any additonal action I should take that I missed?

  22. #90
    Gutsuu's Avatar Member
    Reputation
    12
    Join Date
    Feb 2017
    Posts
    10
    Thanks G/R
    13/11
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by sarskever View Post
    Thanks a lot for your script, my resolution happens to be the same as you but mana and quicksilver don't seem to work. Edited the ini, ran it with f3 in hideout to retreive values. HP flask is being used correctly but it's not using mana and quicksilver at all. Any additonal action I should take that I missed?
    I just tried it, both worked fine. You can't test mana without really needing it. It will only use the potion if you really need mana and drops below threshold. At least with my enhacement "Bubbling Divine Mana Flask of Gluttony". The Quicksilver flask works too fine for me, it will only activate quicksilver outside your hideout while you are moving.

    These are my settings:
    Code:
    [border]
    ;borderwidth of the game window
    borderleft=0
    borderright=0
    bordertop=0
    borderdown=0
    
    [potion_high]
    ;first HP threshold
    hpremain=77
    ;HP-%level
    flask=1
    ;give the number/key what should be pressed if HP falls below the first HP-%level
    
    [potion_low]
    ;second HP threshold
    hpremain=60
    ;HP-%level
    flask=2R
    ;give the number/key what should be pressed if HP falls below the second HP-%level
    
    [mana_potion]
    ;Mana threshold
    mpremain=25
    ;Mana-%level
    flask=3
    ;give the number/key what should be pressed if Mana falls below the Mana-%level
    
    [defensive_potion]
    ;defpotion threshold
    hpremain=85
    ;HP-%level
    flask=4
    ;give the number/key what should be pressed if HP falls below the HP-%level
    defcd=7100
    ;ms cooldown time of the flask
    
    [logout]
    ;logout threshold, actual is used for healing or defence flask, if you want to logout, prep in the the script which usage
    hpremain=20
    ;HP-%level
    flask=12345
    ;give the number/key what should be pressed if HP falls below the HP-%level
    
    [quicksilver]
    ;quicksilver usage
    timeleft=750
    ;ms time moving until the script will activate a flask (could be used too for skills, for example Blood Rage)
    flask=5-
    ;give the number/key what should be pressed
    quickcd=6100
    ;ms cooldown time of the quicksilver flask
    
    
    [anchor]
    logoutbtnx=1720
    ;x-Value of the button when you press ESC
    logoutbtny=575
    ;y-Value of the button when you press ESC
    windoww=3440
    ;width of the screenresolution
    windowh=1440
    ;hight of the screenresolution
    hpmiddlex=150
    ;x-Value of the vertical middle axis of the HP-Globe on the left side
    hpmiddley=435
    ;y-Value of the horizontal middle axis of the HP-Bar over the Character
    hptopy=1165
    ;y-Value of the highest Point of the HP-Globe on the left side, HP & Mana-Globe have both the same y-Value
    mpmiddlex=3290
    ;x-Value of the vertical middle axis of the Mana-Globe on the right side
    mpmiddley=450
    ;y-Value of the horizontal middle axis of the Mana-Bar over the Character
    mptopy=1165
    ;y-Value of the highest Point of the Mana-Globe on the right side, HP & Mana-Globe have both the same y-Value
    chaticonx=22
    ;x-Value of middlepoint of the chaticon over the girl-statue on the left side over the HP-Globe
    chaticony=1175
    ;y-Value of middlepoint of the chaticon over the girl-statue on the left side over the HP-Globe
    hideiconx=2500
    ;x-Value of middlepoint of the Edit button in the Hideout
    hideicony=1355
    ;y-Value of middlepoint of the Edit button in the Hideout
    movposx=1720
    ;x-Value of the moving detection Point in the middle of the screenresolution
    movposy=320
    ;y-Value of the moving detection Point somewhere near the character, best over the characters head, below interference of the auras
    
    [other]
    mousespeed=0
    checkdelay=rand(331,427)
    
    ; -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
    ; KEY Binding
    ; -------------------------------------
    ; ALT+WheelDown: Stash scroll
    ; ALT+WheelUp: Stash scroll
    ; CTRL+WheelDown -> Spam CTRL+CLICK
    ; SHIFT+WheelDown -> Spam SHIFT+CLICK
    ; ALT+H -> Entering Hideout
    ; ALT+R -> Remaining Monsters

Page 6 of 8 FirstFirst ... 2345678 LastLast

Similar Threads

  1. [Selling] RANK1 WoW-Accounts-SCARAB LORD-INVINCIBLE-TIER 3-Get Your Account Now! MoP is Near !
    By V1rTualMMO in forum WoW-US Account Buy Sell Trade
    Replies: 4
    Last Post: 09-13-2012, 08:29 PM
  2. [Selling] RANK1 WoW-Accounts-SCARAB LORD-INVINCIBLE-TIER 3-Get Your Account Now! MoP is Near !
    By V1rTualMMO in forum WoW-EU Account Buy Sell Trade
    Replies: 0
    Last Post: 09-13-2012, 02:37 AM
  3. [Buying] Buying your gold, fast easy and safe!
    By Zergdude in forum Diablo 3 Buy Sell Trade
    Replies: 9
    Last Post: 07-16-2012, 06:05 PM
  4. Replies: 43
    Last Post: 02-16-2009, 08:13 PM
All times are GMT -5. The time now is 05:40 PM. Powered by vBulletin® Version 4.2.3
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Google Authenticator verification provided by Two-Factor Authentication (Free) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search