-
Notifications
You must be signed in to change notification settings - Fork 0
/
ahk
152 lines (114 loc) · 3.06 KB
/
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
;*** Tasti del volume improvvisati
+NumpadAdd:: Send {Volume_Up}
+NumpadSub:: Send {Volume_Down}
break::Send {Volume_Mute}
return
;*** Empty Recycle Bin
; Empty trash
#Del::FileRecycleEmpty ; win + del
return
;*** Avvia qualsiasi app
#f::Run Firefox
;*** Utilizzare AutoHotKey per controllare il volume di Windows 10
Il seguente script di base consente di alzare e abbassare il volume di Windows utilizzando
Windows Key + Pagina su e Tasto Windows + Pagina giù.
#PgUp::Send {Volume_Up 3} #PgDn::Send {Volume_Down 3}
;*** Adjusting Volume
; Custom volume buttons
+NumpadAdd:: Send {Volume_Up} ;shift + numpad plus
+NumpadSub:: Send {Volume_Down} ;shift + numpad minus
break::Send {Volume_Mute} ; Break key mutes
return
;*** Eseguire una ricerca rapida con Google
^+c::
{
Send, ^c
Sleep 50
Run, https://www.google.com/search?q=%clipboard%
Return
}
;*** Inserisci caratteri speciali
Alt + Q per inserire l’icona del marchio
!q::SendInput {™}
;*** Riutilizza i tasti funzione
;Avvia Sublime Text
F7::Run "C:\Program Files\Sublime Text 2\sublime_text.exe"
return
;*** Apri rapidamente le pagine Web
; Launch MakeTechEasier
^+t::Run "www.maketecheasier.com" ; use ctrl+Shift+t
return
;*** Riutilizzare Caps Lock
; Turn Caps Lock into a Shift key
Capslock::Shift
return
;*** Disabilitare i tasti di blocco
; Set Lock keys permanently
SetNumlockState, AlwaysOn
SetCapsLockState, AlwaysOff
SetScrollLockState, AlwaysOff
return
;*** Open Favorite Folders
; Open Downloads folder
^+d::Run "C:\Users\Vamsi\Downloads" ; ctrl+shift+d
return
; Suspend AutoHotKey
#ScrollLock::Suspend ; Win + scrollLock
return
; **************** Windows key+F2 ******************
;*** Using variables
#F2::
example := 5+5
msgbox, Example is equal to %example%
return
#F2::
example := "Nathan"
msgbox, Hello World! My name is %example%
return
#F2::
example := "Example: " 5+5
msgbox, Mixed variable is %example%
return
;*** Conditional statements
#F2::
example := 5
if example = 5
msgbox, true
else
msgbox, false
return
#F2::
example := "computer"
if (example = "hope")
msgbox, true
else
msgbox, false
return
;*** Creating a loop
#F2::
loop, 5
{
send Hello World{!}
sleep 300
}
return
;*** Regular expressions
#F2::
example := "support@computerhope.com"
example:= RegExReplace(example, "@.*", "")
msgbox, Username is %example%
return
;*** I use AutoHotKey scripts mainly within PowerShell of vbscript If you want to call your scripts from PowerShell you can use: & "C:\Program Files\AutoHotkey\AutoHotkey.exe" "C:\Temp\Start.ahk"
If you want to call your scripts from vbscript you can use:
Set oWS = CreateObject("WScript.Shell")
sPath = chr(34) & "C:\System\AHK\C:\Temp\Start.ahk" & Chr(34)
errResult = oWS.Run(sPath,,False)
A basic example of a script could be:
; make Win+n as a hotkey for launching Notepad
#n::Run Notepad
So if you save the above as an .ahk file and then double click on it, pressing Windows key + n will launch notepad
The below script would enter the signature text when you press F6:
; pressing F6 to insert your signature
F8::
Send Best,{Enter}{Enter} Bob Smith
Return