forked from EposVox/WindowsMods
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrunbatonexplorer2.ahk
26 lines (22 loc) · 1000 Bytes
/
runbatonexplorer2.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
;runs bat files I want in explorer folders, first by getting the active directory of focused explorer window. (Set explorer to show full path in window title)
#SingleInstance force ;only one instance of this script may run at a time!
Menu, Tray, Icon, shell32.dll, 4
;Above changes the icon in the system tray from the usual AHK icon. Play with the numbers to pick your own.
;make video directories for new projects
+!q::
WinGetTitle, Title, ahk_class CabinetWClass
; msgbox,% Title
Run, E:\Documents\WindowsMods\MakeVideoDirectories.bat /E:ON "%Title%" /E:ON, "%Title%"
return
;compress files in directory w/ CRF14 (X264)
+!r::
WinGetTitle, Title, ahk_class CabinetWClass
; msgbox,% Title
Run, E:\Documents\WindowsMods\crf14.bat /E:ON "%Title%" /E:ON, "%Title%"
return
;compress files in directory w/ CRF24 (HEVC)
+!f::
WinGetTitle, Title, ahk_class CabinetWClass
; msgbox,% Title
Run, E:\Documents\WindowsMods\crf24_hevc.bat /E:ON "%Title%" /E:ON, "%Title%"
return