-
Notifications
You must be signed in to change notification settings - Fork 0
/
Meepo.ahk
63 lines (54 loc) · 1.24 KB
/
Meepo.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
52
53
54
55
56
57
58
59
60
61
62
63
DELAY := 1.00
BLINK_DAGGER_KEY := "1"
POOF_KEY := "w"
EARTHBIND_KEY := "q"
NEXT_MEEPO_KEY := "Tab"
MEEPO_COUNT := 1
XButton1::
Send {%BLINK_DAGGER_KEY%}
Sleep, Round(10 * DELAY)
Send {%EARTHBIND_KEY%}
Sleep, Round(10 * DELAY)
Send {%POOF_KEY%}
POOF_COUNT := MEEPO_COUNT - 1
Loop %POOF_COUNT% {
Sleep, Round(15 * DELAY)
Send {%NEXT_MEEPO_KEY%}
Sleep, Round(10 * DELAY)
Send {%POOF_KEY%}
}
Sleep, Round(15 * DELAY)
Send {%NEXT_MEEPO_KEY%}
Return
XButton2::
Send {%EARTHBIND_KEY%}
Sleep, Round(10 * DELAY)
Send {%NEXT_MEEPO_KEY%}
Return
NumpadAdd::
MEEPO_COUNT := MEEPO_COUNT + 1
;Gosub, ShowOverlay
;SetTimer, HideOverlay, 1000
Return
NumpadSub::
MEEPO_COUNT := MEEPO_COUNT - 1
;Gosub, ShowOverlay
;SetTimer, HideOverlay, 1000
Return
ShowOverlay:
Gui, GUI_Overlay:New, +ToolWindow +LastFound +AlwaysOnTop -Caption +hwndGUI_Overlay_hwnd
WinGet, WinHND, ID, A
Gui,Vol:+0x40000000 -0x80000000 +Owner%WinHND%
Gui, Margin, 0, 8
Gui, Font, s10 q0, Segoe UI
Gui, Add, Text, w160 Center cWhite,Number of Meepos: %MEEPO_COUNT%
Gui, Color, 000000
WinSet, Transparent, 200
Gui, Show, Hide, Overlay
WinMove, A_ScreenWidth - 160 - 8, 8
Gui, GUI_Overlay:Show
Return
HideOverlay:
SetTimer, HideOverlay, Off
Gui, GUI_Overlay:Destroy
Return