-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path01 - [Eco] Hold Click, Rapid Right Click.ahk
75 lines (64 loc) · 1.75 KB
/
01 - [Eco] Hold Click, Rapid Right Click.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
64
65
66
67
68
69
70
71
72
73
74
#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.
; -------------------------Window Info Gathering----------------------------
relInfo()
{
global ;makes all variables global
CoordMode, Mouse, Relative
MouseGetPos, relXpos, relYpos, id
}
absInfo()
{
global ;makes all variables global
CoordMode, Mouse, Screen
MouseGetPos, absXpos, absYpos, id
}
info()
{
global ;makes all variables called, or made, global
relInfo()
absInfo()
WinGetClass, class, ahk_id %id%
}
;================================================================================
SetTimer Click, 20
$F1::
info()
If (InStr(class,"UnityWndClass"))
{
Send % "{Click " . ( GetKeyState("LButton") ? "Up}" : "Down}" )
}
Else
Send {F1}
Return
$F4::CToggle := !CToggle
info()
If (InStr(class,"UnityWndClass"))
{
Click:
If (!CToggle)
Return
click, right
Return
}
Else
Send {F4}
Return
; -------------------------Script Controls----------------------------
^!Numpad0:: ;reloads script, displays tooltip
TrayTip ,-Reloading-, %A_ScriptName%, 2, 16
sleep 2000
HideTrayTip ()
Reload
Return
!NumpadSub:: ;kills script, displays tooltip
TrayTip , Attempting to -KILL-, %A_ScriptName%, 3 , 16
sleep (2500)
HideTrayTip ()
ExitApp
Return
^Numpad0::num=0 ;reset Extension to beginning of script
; --------------------------------------------------------------------
; --------------------------------------------------------------------