forked from telppa/BeautifulToolTip
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathexample 7.ahk
93 lines (85 loc) · 4.07 KB
/
example 7.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
84
85
86
87
88
89
90
91
92
93
#SingleInstance Force
SetBatchLines, -1
CoordMode, ToolTip, Screen
MsgBox, 这是一段动画效果演示。`nThis is an animated demo.
Text=
(
使用模板可以轻松创建自己的风格。
欢迎分享,带张截图!!!
Use template to easily create your own style.
Please share your custom style and include a screenshot.
It will help a lot of people.
)
; 照着模板改参数就可以创建自己的风格了。建好后可以添加到 btt() 函数里,就可以变内置风格了。
; You can put your own style in btt() function, then you can use your own style in anywhere.
; All supported parameters are listed below. All parameters can be omitted.
; Please share your custom style and include a screenshot. It will help a lot of people.
; Attention:
; Color => ARGB => Alpha Red Green Blue => 0x ff aa bb cc => 0xffaabbcc
Template := {Border:20 ; If omitted, 1 will be used. Range 0-20.
, Rounded:30 ; If omitted, 3 will be used. Range 0-30.
, Margin:30 ; If omitted, 5 will be used. Range 0-30.
, BorderColor:0xffaabbcc ; ARGB
, BorderColorLinearGradientStart:0xff16a085 ; ARGB
, BorderColorLinearGradientEnd:0xfff4d03f ; ARGB
, BorderColorLinearGradientAngle:45 ; Mode=8 Angle 0(L to R) 90(U to D) 180(R to L) 270(D to U)
, BorderColorLinearGradientMode:1 ; Mode=4 Angle 0(L to R) 90(D to U), Range 1-8.
, TextColor:0xff112233 ; ARGB
, TextColorLinearGradientStart:0xff00416a ; ARGB
, TextColorLinearGradientEnd:0xffe4e5e6 ; ARGB
, TextColorLinearGradientAngle:90 ; Mode=8 Angle 0(L to R) 90(U to D) 180(R to L) 270(D to U)
, TextColorLinearGradientMode:1 ; Mode=4 Angle 0(L to R) 90(D to U), Range 1-8.
, BackgroundColor:0xff778899 ; ARGB
, BackgroundColorLinearGradientStart:0xff8DA5D3 ; ARGB
, BackgroundColorLinearGradientEnd:0xffF4CFC9 ; ARGB
, BackgroundColorLinearGradientAngle:135 ; Mode=8 Angle 0(L to R) 90(U to D) 180(R to L) 270(D to U)
, BackgroundColorLinearGradientMode:1 ; Mode=4 Angle 0(L to R) 90(D to U), Range 1-8.
, Font:"Font Name" ; If omitted, ToolTip's Font will be used.
, FontSize:20 ; If omitted, 12 will be used.
, FontRender:5 ; If omitted, 5 will be used. Range 0-5.
, FontStyle:"Regular Bold Italic BoldItalic Underline Strikeout"}
loop, 360
{
; 通过变换渐变色的角度,可以很容易的实现动画效果。
; By changing the angle of the color gradient, a simple animation can be easy implement.
Angle:=(A_Index-1)*3
gosub, GetStyles
btt(Text,700,200,1,OwnStyle1)
btt(Text,700,410,2,OwnStyle2)
btt(Text,700,580,3,OwnStyle3)
Sleep, 10
}
ExitApp
GetStyles:
; Same as Style7
OwnStyle1 := {Border:20
, Rounded:30
, Margin:30
, BorderColor:0xffaabbcc
, TextColor:0xff112233
, BackgroundColorLinearGradientStart:0xffF4CFC9
, BackgroundColorLinearGradientEnd:0xff8DA5D3
, BackgroundColorLinearGradientAngle:Angle
, BackgroundColorLinearGradientMode:8
, FontStyle:"BoldItalic Underline"}
; Same as Style8
OwnStyle2 := {Border:3
, Rounded:30
, Margin:30
, BorderColorLinearGradientStart:0xffb7407c
, BorderColorLinearGradientEnd:0xff3881a7
, BorderColorLinearGradientAngle:Angle+45
, BorderColorLinearGradientMode:6
, TextColor:0xffd9d9db
, BackgroundColor:0xff26293a}
; On white background, FontRender = 4 better than 5
OwnStyle3 := {BorderColor:0x00ffffff
, TextColorLinearGradientStart:0xff00b4db
, TextColorLinearGradientEnd:0xff004360
, TextColorLinearGradientAngle:Angle
, TextColorLinearGradientMode:1
, BackgroundColor:0x00ffffff
, FontSize:16
, FontRender:4
, FontStyle:"Bold"}
return