-
Notifications
You must be signed in to change notification settings - Fork 1
/
mmm.ahk
66 lines (56 loc) · 774 Bytes
/
mmm.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
var_current_check:=0
var_x:=0
#Persistent
SetTimer, RemoveToolTip, 3000
return
$k::
{
PixelGetColor, color, 1762, 275
MsgBox, %color%
if(color = 0x1C5D57){
MsgBox, 1
}
}
return
$x::
{
global var_x
var_x:=var_x+1
ToolTip, xxxx, 100, 150
ToolTip, Timed ToolTip`nThis will be displayed for 5 seconds., 200, 150, var_x
}
return
$b::
{
global var_x
var_x:=var_x+1
if(var_x > 20){
var_x:=20
}
ToolTip, Timed ToolTip`nThis will be displayed for 5 seconds., 100, 50*var_x, var_x
}
return
$c::
{
ToolTip
}
return
RemoveToolTip:
global var_x
global var_current_check
if(var_x != var_current_check){
if(var_x > 0){
var_current_check:=var_x
return
}
}
if(var_x > 0){
loop %var_x%{
ToolTip,,,, A_Index
}
var_x:=0
}else{
ToolTip
}
ToolTip
return