forked from Nekolike/Mappy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMappy_Region.ahk
51 lines (44 loc) · 1.54 KB
/
Mappy_Region.ahk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn ; Enable warnings to assist with detecting common errors.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
; Variables
;--------------------------------
;--------------------------------
CustomColor := "EEAA99"
GUINameMappy := "Mappy_Region"
Gui, %GUINameMappy%:New, +LastFound +SysMenu +AlwaysOnTop
Gui, %GUINameMappy%:Color, %CustomColor%
WinSet, TransColor, %CustomColor% 150
; Regions
Gui, Add, Button, x10 vRegionButton1 gRegionSelect, Glennach Cairns
Gui, Add, Button, x+5 vRegionButton2 gRegionSelect, Haewark Hamlet
Gui, Add, Button, x+5 vRegionButton3 gRegionSelect, Lex Ejoris
Gui, Add, Button, x+5 vRegionButton4 gRegionSelect, Lex Proxima
Gui, Add, Button, x+5 vRegionButton5 gRegionSelect, Lira Arthain
Gui, Add, Button, x+5 vRegionButton6 gRegionSelect, New Vastir
Gui, Add, Button, x+5 vRegionButton7 gRegionSelect, Tirn's End
Gui, Add, Button, x+5 vRegionButton8 gRegionSelect, Valdo's Rest
; Startup GUI
Gui, %GUINameMappy%:Show, NoActivate AutoSize
Return
; Sends Region to Path of Exile
RegionSelect:
GuiControlGet, var,, % A_GuiControl
WinActivate, Path of Exile
Send ^f
Send % var
Return
; Hotkey to show / hide Mappy
^Numpad0::
if (GUIMappyOpen = true)
{
Gui, %GUINameMappy%:Hide
GUIMappyOpen := false
}
else
{
Gui, %GUINameMappy%:Show
GUIMappyOpen := true
}
Return