Skip to content

Commit

Permalink
Virtual desktop hotkey (#9)
Browse files Browse the repository at this point in the history
* support windows virtual desktop hotkey

* 新增ignore文件,修改音量调节步进

* update README
  • Loading branch information
zedeeee authored Apr 25, 2024
1 parent c892772 commit f031ba7
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 12 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
test/
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@
1. `Shift + Tab`在多个 CATIA 窗口循环切换
1. 双击 `右Ctrl` 键呼出 Everything(Everything需要设置快捷键`win+]`
5. `ESC` 清除 Power-input 输入框的内容(测试功能)
6. `Win+鼠标滚轮`:切换虚拟桌面(Windows 11)
7. `RAlt+鼠标滚轮`:调节音量,`RAlt+鼠标中键`:静音切换

## 使用方法

Expand Down
49 changes: 37 additions & 12 deletions UCLC.ahk
Original file line number Diff line number Diff line change
Expand Up @@ -111,23 +111,48 @@ loop {
}
}

; ^+t::
; {
; cat_auto_graph_tree_reorder()
; }
; Win + 鼠标滚轮上下 切换虚拟桌面
LWin & WheelDown::
{
Send "{Ctrl Down}{LWin Down}{Right}"
}

^+t::
LWin & WheelUp::
{
arr := ["aaa", "test_func"]
MsgBox arr[1]
Sleep 2000
Send "^{Ctrl Down}{LWin Down}{Left}"
}

if arr.Length == 2
{
%arr[2]%()
}

;右ALT+鼠标滚轮上,音量增大
RAlt & WheelUp::
{
SoundSetVolume "+2"
}

;右ALT+鼠标滚轮下,音量减小
RAlt & WheelDown::
{
SoundSetVolume "-2"
}

;右ALT+鼠标中键,静音
RAlt & MButton::
{
SoundSetMute -1
}

; ^+t::
; {
; arr := ["aaa", "test_func"]
; MsgBox arr[1]
; Sleep 2000

; if arr.Length == 2
; {
; %arr[2]%()
; }
; }

}

test_func()
Expand Down

0 comments on commit f031ba7

Please sign in to comment.