forked from alexmalk/iOS-style-volume-slider.ahk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
GuiDebug.ahk
59 lines (49 loc) · 2.17 KB
/
GuiDebug.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
#SingleInstance, Force
SendMode Input
SetWorkingDir, %A_ScriptDir%
test := new VSliderGUI("nSlider"
, 322
, 98
, 48
, 24
, 16
, 48
, "Center"
, 224
, 1500)
tester(test)
funcO := Func("ending").Bind(test)
test := ""
SetTimer, % funcO, -60000
return
ending(test){
test := ""
MsgBox, % "finished testing"
ExitApp
}
tester(test){
static counter := 0
static rv := 50
counter++
if(counter > 25)
return
Random, rt, -2000, -50
shit := Func("tester").Bind(test)
SetTimer, % shit, % rt
rv += rand()
test.update(rv, _getIcon(rv))
}
rand(){
Random, r, -10, 10
return, r
}
_getIcon(vol){
if(vol < 1)
return, ""
if(vol < 33)
return, ""
if(vol < 66)
return, ""
return, ""
}
#Include, assets\VSliderGui.ahk