-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstartup.ahk
176 lines (174 loc) · 2.69 KB
/
startup.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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
#SingleInstance Force
Old = True
CurrentJob := ""
VPD = ***VPD***
Summing = false
SumVal1 = -999
LAlt & Q::AltTab
Return
^g::
Send {RButton}g
Send {Tab}
Send {Down}
Send {Tab 2}
Send {Enter}
Return
^!Left::
Send {RButton}m
Send {Tab 6}
Send 90
Send {Enter}
Send {Tab}
Send {Enter}
Return
^!Right::
Send {RButton}m
Send {Tab 6}
Send 270
Send {Enter}
Send {Tab}
Send {Enter}
Return
XButton2::
Send {Enter}
Return
XButton1::
if (Summing = true)
{
Return
}
Summing = true
PrevClip = %clipboard%
Sendinput, ^{c}
sleep, 10
if (PrevClip = clipboard)
{
MsgBox ,,Prompt,Nothing selected!,1
Return
}
if (SumVal1 = -999)
{
SumVal1 := clipboard
Summing = false
MsgBox ,,Prompt,Select second value,0.5
Return
}
SumValSum := (SumVal1 + clipboard) / 2
clipboard := SumValSum
MsgBox ,,Prompt,Sum: %SumValSum%,0.5
Summing = false
SumVal1 = -999
Return
^+a::
InputBox, CurrentJob, Job, Please enter the current job number,,230,125,
Return
^+s::
Send, %CurrentJob%
Return
^+e::
Send, %VPD%
Return
^+r::
Send, {BS 10}
Return
^+d::
Send, ^+`t
sleep, 10
Send, ^+`t
sleep, 10
Send, ^+`t
sleep, 100
Send, ^c
sleep, 10
clipboard := clipboard * 0.25
sleep, 10
Send, `t
sleep, 10
Send, `t
sleep, 10
Send, `t
sleep, 10
Send, ^v
sleep, 10
Send, ^+`t
sleep, 10
Send, ^+`t
sleep, 10
Send, ^a
sleep, 10
Send, ^c
sleep, 10
clipwait, 1,1
sleep, 10
clipboard := clipboard * 0.25
sleep, 10
Send, `t
sleep, 10
Send, `t
sleep, 10
Send, `t
sleep, 10
Send, ^v
sleep, 10
Send, {Enter}
sleep, 10
Send, {Esc}
Return
^#I::
gui, 1: new
gui, 1:Default
gui, 1:+LastFound
gui, 1:add, groupbox, w250 h80,Capacitance
gui, 1:add, text, xm12 ym30 section, Min Value: 1000pF / 1nF / 0.001uF
gui, 1:add, text, xm12 yp+20,Max Value: 1000nF / 1uF
gui, 1:add, groupbox, xm w250 h80,Resistance
gui, 1:add, text, xm12 yp+30 section, Min Value: 1ohm / 0.001kohm
gui, 1:add, text, xm12 yp+20,Max Value: 1000kohm / 1Mohm
gui, 1:show,, Electrical Test Info
Return
^#N::
clipboard := " [None]"
Sendinput, ^{v}
Return
^+c::
Sendinput, ^{c}
sleep, 100
foundpos := InStr(clipboard, "/")
sr := SubStr(clipboard, foundpos + 1)
clipboard := sr
Return
#C::
IfWinNotExist, Calculator
{
Run C:\Windows\System32\calc.exe
Return
}
Else
{
Winactivate, Calculator
Return
}
#N::
IfWinNotExist, *Untitled - Notepad
{
Run C:\Windows\System32\notepad.exe
Return
}
Else
{
Winactivate, *Untitled - Notepad
Return
}
#IfWinActive, ahk_exe MYCenter.exe
XButton2::
if (Old = True) {
MouseGetPos, StartX, StartY
MouseMove, 100, 1300, 0
Old := False
Return
}
else {
MouseMove, StartX, StartY, 0
Old := True
Return
}