-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTEMP.ahk
83 lines (70 loc) · 2.21 KB
/
TEMP.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
75
76
77
78
79
80
81
82
83
#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.
; ------------------------- Stuff.. ----------------------------
Numpad0::
send ^v{home}{del}{end}{backspace}
return
; -------------------------------------------------------------
/*; -------------------------Loot Crates----------------------------
Numpad0::
Click, 642, 583
Sleep 500
Click, 1112, 801
Return
NumpadDot::
Click, 642, 583
Sleep 500
Click, 1107, 705
Return
*/
; -------------------------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%
}
/*; -------------------------Collection Pos Info----------------------------
NumpadEnter::
info()
CoordMode, Mouse, Screen
MouseGetPos, absXpos, absYpos
;MsgBox
CoordMode, Mouse, Relative
MouseGetPos, relXpos, relYpos
MsgBox Relative X=%relXpos% Relatvie Y=%relYpos%`nScreen X=%absXpos% Screen Y=%absYpos%`nWindow Class=%class%
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
; --------------------------------------------------------------------
; --------------------------------------------------------------------