-
Notifications
You must be signed in to change notification settings - Fork 0
/
autohotkeys_v2.ahk
90 lines (77 loc) · 2.71 KB
/
autohotkeys_v2.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
; NAME = autohotkeys_v2
; VERSION = 2024.11.02.0928
; SOURCE = https://github.com/davidjimenez75/autohotkeys_v2
; AUTOHOTKEY V2 - DOCUMENTATION = https://www.autohotkey.com/docs/v2/
;
; NOTES:
;
; ^ for Ctrl
; ! for Alt
; + for Shift
; ----------------------------------------------
; Change Virtual desktops with Win key + Mouse
; ----------------------------------------------
#LButton:: Send "^#{Left}" ; Win + Right mouse Click = Prev. virtual desktop
#MButton:: Send "#{Tab}" ; Win + Middle mouse Click = Show virtual desktops
#RButton:: Send "^#{Right}" ; Win + Right mouse Click = Next virtual desktop
; ----------------------------------------
; Scroll Lock = Mute audio for XX seconds
; ----------------------------------------
ScrollLock::{
Send "{Volume_Mute}"
Sleep 60*1000
Send "{Volume_Mute}"
}
; -------------------------------------
; Emulate multimedia keys with numpad
; -------------------------------------
Pause:: Send "{Media_Play_Pause}" ; Pause = Multimedia Pause
^NumpadDiv:: Send "{Media_Prev}" ; Ctrl + NumpadDiv = Prev
^NumpadMult:: Send "{Media_Next}" ; Ctrl + NumpadMult = Next
NumpadAdd:: Send "{Volume_Up}" ; NumpadAdd = Volume up
NumpadSub:: Send "{Volume_Down}" ; NumpadSub = Volume down
; ------------------------------------------------
; Create folder with current timestamp on desktop
; ------------------------------------------------
#ScrollLock::{
now := FormatTime(,"yyyy-MM-dd--HHmmss--")
DirCreate (A_Desktop "\" now)
; MsgBox "Creada carpeta: " A_Desktop "\" now
FileAppend "# ", A_Desktop "\" now "\HEADER.md"
}
; ------------------------------------------------
; Minimice actual windows on double tap on Esc key
; ------------------------------------------------
~Esc::
{
if (A_PriorHotkey == "~Esc" and A_TimeSincePriorHotkey < 400)
{
; MsgBox "You double-pressed the Esc key."
WinMinimize "A"
}
}
; -----------------------------------------------------
; Microsoft Edge browser play/pause text reading voice
; -----------------------------------------------------
; Pause:: Send '^+u' ; Play/Pause Microsoft Edge voice over
; -----------------------------------------------------
; Restore the current selected folder icons
; -----------------------------------------------------
+Pause:: ; Ctrl + Pause
{
Send "{AppsKey}" ; Right-click menu
Sleep 200
Send "{p}" ; To Propiedades
Sleep 200
Send "^{Tab}" ; ^ es el símbolo para Ctrl y envia 4 veces Ctrl + tab
Sleep 200
Send "^{Tab}"
Sleep 200
Send "^{Tab}"
Sleep 200
Send "^{Tab}"
Sleep 200
Send "{R}" ; Restaurar predeterminado
Sleep 200
Send "{Enter}" ; Aceptar
}