-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFKeyFnKey_Monitorian.ahk
More file actions
40 lines (37 loc) · 1.42 KB
/
FKeyFnKey_Monitorian.ahk
File metadata and controls
40 lines (37 loc) · 1.42 KB
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
; FKeyFnKey_Monitorian.ahk on FKeyFnKey
; Nercone <nercone@nercone.dev>
; Made by Nercone / MIT License
; Copyright (c) 2025 Nercone
AdjustBrightness(delta) {
tmpFile := A_Temp . "\monitorian_out.txt"
RunWait('cmd.exe /c Monitorian.exe /get > "' . tmpFile . '"',, "Hide")
result := FileRead(tmpFile)
if RegExMatch(result, "\s(\d+)\s+B", &m) {
newVal := Max(0, Min(100, Integer(m[1]) + delta))
Run('cmd.exe /c Monitorian.exe /set ' . newVal,, "Hide")
}
}
F1:: AdjustBrightness(-10) ; モニターの明るさを10下げる
F2:: AdjustBrightness(+10) ; モニターの明るさを10上げる
F3:: Return ; 割り当てなし
F4:: Return ; 割り当てなし
F5:: Return ; 割り当てなし
F6:: Return ; 割り当てなし
F7:: Send "{Media_Prev}" ; 最初または前の曲に戻す
F8:: Send "{Media_Play_Pause}" ; 再開/一時停止
F9:: Send "{Media_Next}" ; 最後までスキップして次の曲へ
F10:: Send "{Volume_Mute}" ; ミュート/ミュート解除
F11:: Send "{Volume_Down}" ; 音量を下げる
F12:: Send "{Volume_Up}" ; 音量を上げる
!F1:: Send "{F1}"
!F2:: Send "{F2}"
!F3:: Send "{F3}"
!F4:: Send "{F4}"
!F5:: Send "{F5}"
!F6:: Send "{F6}"
!F7:: Send "{F7}"
!F8:: Send "{F8}"
!F9:: Send "{F9}"
!F10:: Send "{F10}"
!F11:: Send "{F11}"
!F12:: Send "{F12}"