Autohotkey

Autohotkey

挂起/启动 所有命令

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
; ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++Ctrl + Alt + 0 暂停所有脚本
^!0:: Suspend


; ++++++++++++++++++++++判断word是否在运行,true:激活窗口,false:打开word
+Right:: ; 打开
IfWinExist ahk_exe WINWORD.EXE
WinActivate
else
run "C:\Program Files\Microsoft Office\root\Office16\WINWORD.EXE"
return



; ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++打开文档
+z:: ; 打开
Run, D:\桌面\制作\0000.pdf
Return



; ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++替换双空格为全角空格
:*: :: 


; ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++双击Esc打开Word文档
; 判断400毫秒内某按键是否被双击,如果被双击执行指定动作
~Esc::
if (A_PriorHotkey <> "~Esc" or A_TimeSincePriorHotkey > 400)
{
; Too much time between presses, so this isn't a double-press.
KeyWait, Esc
return
}
Run, D:\桌面\制作\0000.docx
return



; ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++各种粘贴功能
1::
Send, {Ctrl down}{c}{Ctrl up}
IfWinExist ahk_exe WINWORD.EXE
WinActivate
Send, {Shift down} {9}{0} {Shift up}{Left}{Ctrl down}{v}{Ctrl up}
IfWinExist ahk_exe hh.exe
WinActivate
Return

2::
Send, {Ctrl down}{c}{Ctrl up}
IfWinExist ahk_exe WINWORD.EXE
WinActivate
Send, {,}{Ctrl down}{v}{Ctrl up}
Return

3::
Send, {Ctrl down}{c}{Ctrl up}
IfWinExist ahk_exe WINWORD.EXE
WinActivate
Send, {Left}{Ctrl down}{v}{Ctrl up}
Return

4::
Send, {Ctrl down}{c}{Ctrl up}
IfWinExist ahk_exe WINWORD.EXE
WinActivate
Send, ^+v
Return
-------------本文结束 感谢您的阅读-------------
转载别忘了注明出处哈
🍭🍭🍭😜
0%