Skip to content

Commit

Permalink
优化双击按键触发
Browse files Browse the repository at this point in the history
  • Loading branch information
hui-Zz committed Jan 15, 2022
1 parent 1fe3c75 commit 2679983
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 33 deletions.
50 changes: 18 additions & 32 deletions RunAny.ahk
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
╔══════════════════════════════════════════════════
║【RunAny】一劳永逸的快速启动工具 v5.8.0 @2022.01.07
║【RunAny】一劳永逸的快速启动工具 v5.8.0 @2022.01.13
║ 国内Gitee文档:https://hui-zz.gitee.io/RunAny
║ Github文档:https://hui-zz.github.io/RunAny
║ Github地址:https://github.com/hui-Zz/RunAny
Expand All @@ -23,7 +23,7 @@ global RunAnyZz:="RunAny" ;~;名称
global RunAnyConfig:="RunAnyConfig.ini" ;~;配置文件
global RunAny_ObjReg:="RunAny_ObjReg.ini" ;~;插件注册配置文件
global RunAny_update_version:="5.8.0" ;~;版本号
global RunAny_update_time:="2022.01.07" ;~;更新日期
global RunAny_update_time:="2022.01.13" ;~;更新日期
Gosub,Var_Set ;~;01.参数初始化
Gosub,Menu_Var_Set ;~;02.自定义变量
Gosub,Icon_Set ;~;03.图标初始化
Expand Down Expand Up @@ -551,40 +551,16 @@ RunABackupClear(RunABackupDir,RunABackupFile){
;══════════════════════════════════════════════════════════════════
;~;【多种启动菜单热键】
#If MenuDoubleCtrlKey=1
Ctrl::
KeyWait,Ctrl
KeyWait,Ctrl,d,t0.2
if !Errorlevel
Gosub,Menu_Show1
return
Ctrl::Gosub,DoubleClickKey
#If
#If MenuDoubleAltKey=1
Alt::
KeyWait,Alt
KeyWait,Alt,d,t0.2
if !Errorlevel
Gosub,Menu_Show1
return
Alt::Gosub,DoubleClickKey
#If
#If MenuDoubleLWinKey=1
LWin::
KeyWait,LWin
KeyWait,LWin,d,t0.2
if !Errorlevel
Gosub,Menu_Show1
else
SendInput,{LWin}
return
LWin::Gosub,DoubleClickKey
#If
#If MenuDoubleRWinKey=1
RWin::
KeyWait,RWin
KeyWait,RWin,d,t0.2
if !Errorlevel
Gosub,Menu_Show1
else
SendInput,{RWin}
return
RWin::Gosub,DoubleClickKey
#If
#If MenuCtrlRightKey=1
~Ctrl & RButton::Gosub,Menu_Show1
Expand All @@ -601,6 +577,16 @@ XButton2::Gosub,Menu_Show1
#If MenuMButtonKey=1 && !WinActive("ahk_group DisableGUI")
~MButton::Gosub,Menu_Show1
#If

DoubleClickKey:
KeyWait,%A_ThisHotkey%
KeyWait,%A_ThisHotkey%,d,t0.2
if !Errorlevel
Gosub,Menu_Show1
else
SendInput,{%A_ThisHotkey%}
return
return
;══════════════════════════════════════════════════════════════════
;~;【——创建菜单——】
;══════════════════════════════════════════════════════════════════
Expand Down Expand Up @@ -9241,7 +9227,7 @@ FileAppend,
--
StrokesPlus鼠标手势|StrokesPlus.exe
Ditto剪贴板|Ditto.exe
-办公(wo&Rk)|doc docx xls xlsx ppt pptx wps et dps
-办公(&Work)|doc docx xls xlsx ppt pptx wps et dps
word(&W)|winword.exe
Excel(&E)|excel.exe
PPT(&T)|powerpnt.exe
Expand All @@ -9251,7 +9237,7 @@ FileAppend,
ET(&E)|et.exe
WPP(&P)|wpp.exe
--
-网址(&Web)
-网址(U&RL)
;在别名最末尾添加Tab制表符+热键(参考AHK写法:^代表Ctrl !代表Alt #代表Win +代表Shift),如选中文字按Alt+z百度
百度(&B) !z|https://www.baidu.com/s?wd=
谷歌(&G) !g|https://www.google.com/search?q=`%s&gws_rd=ssl
Expand Down
2 changes: 1 addition & 1 deletion RunPlugins/RunAny_ObjReg.ini
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ huiZz_Window.ahk=1.1.2
huiZz_VirtualDesktop.ahk=1.0.0
huiZz_Work.ahk=1.0.0
RunAny_Menu.ahk=2.0.5
RunAny_SearchBar.ahk=1.1.2
RunAny_SearchBar.ahk=1.1.3
RunAny_ObjReg.ahk=1.0.3
RunCtrl_Common.ahk=1.0.3
RunCtrl_Network.ahk=1.0.0
Expand Down

0 comments on commit 2679983

Please sign in to comment.