-
Notifications
You must be signed in to change notification settings - Fork 1
/
瑞文光速QA.ahk
67 lines (58 loc) · 1.17 KB
/
瑞文光速QA.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
#SingleInstance Force
Loop, %0% ; For each parameter:
{
param := %A_Index% ; Fetch the contents of the variable whose name is contained in A_Index.
params .= A_Space . param
}
ShellExecute := A_IsUnicode ? "shell32\ShellExecute":"shell32\ShellExecuteA"
if not A_IsAdmin
{
If A_IsCompiled
DllCall(ShellExecute, uint, 0, str, "RunAs", str, A_ScriptFullPath, str, params , str, A_WorkingDir, int, 1)
Else
DllCall(ShellExecute, uint, 0, str, "RunAs", str, A_AhkPath, str, """" . A_ScriptFullPath . """" . A_Space . params, str, A_WorkingDir, int, 1)
ExitApp
}
~m::
{
;MouseGetPos, xpos, ypos
Sleep, 200
send, i
;MouseClick, right, xpos+200, ypos
Sleep, 50
send, a
Click
;MouseClick, right, xpos, ypos
}
return
~s::
{
Sleep, 300
;MouseGetPos, xpos, ypos
;MsgBox, The cursor is at X%xpos% Y%ypos%.
xpos:=xpos+200
ypos:=ypos+200
;msgbox, %xpos% + %ypos%
;Click, right, %xpos%, %ypos%
MouseMove, 200,200,2, R
Click right
Sleep, 50
MouseMove, -200,-200,1, R
;Click right
Send,a
Click
;MouseGetPos, xpos, ypos
;;Sleep, 200
;; send, i
;MouseClick, right, xpos+200, ypos
;Sleep, 50
;Click right
;
;MouseClick, right, xpos, ypos
}
return
$^t::
{
Reload
}
return