Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- InstantFlask = 2
- PortalScrollX := 0
- PortalScrollY := 1
- WisdomScrollX := 0
- WisdomScrollY := 0
- isRunning = 1
- isInChat = 0
- #IfWinActive, Path of Exile
- ~Enter::
- {
- if (isRunning) {
- isRunning = 0
- isInChat = 1
- } else {
- isRunning = 1
- isInChat = 0
- }
- Return
- }
- ~ESC::
- {
- if (isInChat) {
- isInChat = 0
- isRunning = 1
- }
- Return
- }
- #If isRunning
- #IfWinActive, Path of Exile ahk_class Direct3DWindowClass
- ~R::
- {
- SendInput, {F6 down}{F7 down}
- keywait r, L
- SendInput, {F6 up}{F7 up}
- Return
- }
- #IfWinActive, Path of Exile ahk_class Direct3DWindowClass
- q::
- {
- SendInput, {F9}{F6 down}q{F6 up}{F9}
- Return
- }
- #IfWinActive, Path of Exile ahk_class Direct3DWindowClass
- ~F1::
- {
- BlockInput On
- SendInput, {Enter}/remaining{Enter}
- BlockInput Off
- Return
- }
- #IfWinActive, Path of Exile
- ~F2::
- {
- BlockInput On
- SendInput, {Enter}/oos{Enter}
- BlockInput Off
- Return
- }
- #IfWinActive, Path of Exile ahk_class Direct3DWindowClass
- ~F3::
- {
- BlockInput On
- SendInput, {LButton}{Enter}/itemlevel{Enter}
- Sleep, 100
- SendInput, {LButton}
- BlockInput Off
- Return
- }
- #IfWinActive, Path of Exile ahk_class Direct3DWindowClass
- ~F4::
- {
- MouseGetPos, mousePosX, mousePosY
- WinGetPos,,,width,height
- slotZeroX := (width*0.67)
- slotZeroY := (height*0.57)
- spaceX := (width*0.028125)
- spaceY := (height*0.04629)
- BlockInput On
- SendInput, I
- Sleep, 5
- MouseClick, L, (slotZeroX+PortalScrollX*spaceX), (slotZeroY+PortalScrollY*spaceY), 1, 0, U
- Sleep, 5
- MouseClick, R, (slotZeroX+PortalScrollX*spaceX), (slotZeroY+PortalScrollY*spaceY), 1, 0
- Sleep, 5
- MouseMove %mousePosX%, %mousePosY%, 1
- SendInput, I
- BlockInput Off
- Return
- }
- #IfWinActive, Path of Exile ahk_class Direct3DWindowClass
- ~F5::
- {
- MouseGetPos, mousePosXSave, mousePosSaveY
- WinGetPos,,,width,height
- slotZeroX := (width*0.67)
- slotZeroY := (height*0.57)
- spaceX := (width*0.028125)
- spaceY := (height*0.04629)
- BlockInput, On
- mousePosX := (slotZeroX+WisdomScrollX*spaceX)
- mousePosY := (slotZeroY+WisdomScrollY*spaceY)
- MouseMove, mousePosX, mousePosY, 1
- MouseClick, R, mousePosX, mousePosY, 1, 0
- Sleep, 10
- SendInput, {SHIFT down}
- Sleep, 5
- Loop 5 {
- y := a_index-1
- mousePosY := (slotZeroY+y*spaceY)
- Loop 12 {
- x := a_index-1
- mousePosX := (slotZeroX+x*spaceX)
- PixelGetColor, pixelColor, mousePosX, mousePosY, RGB
- vred := ((pixelColor & 0xFF0000) >> 16)
- if (vred > 8) {
- MouseClick, L, mousePosX, mousePosY, 1, 0
- }
- }
- }
- SendInput, {SHIFT up}
- MouseMove %mousePosXSave%, %mousePosYSave%, 1
- BlockInput, Off
- Return
- }
- #IfWinActive, Path of Exile ahk_class Direct3DWindowClass
- ~F7::
- {
- BlockInput On
- SendInput, %InstantFlask%{Esc}
- WinGetPos,,,width,height
- MouseClick, L, (width/2), (height*0.44), 2, 0,
- BlockInput Off
- Return
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement