#Requires AutoHotkey v2.0
; 弹出快捷键提示
!h:: ; WIN + ALT + H
{
; 帮助菜单
MsgBox "
(
Notepad++:`t ALT + F9
翻译软件:`t`t ALT + F10
有道翻译:`t`t ALT + F11
复制文件路径:`t CTRL + SHIFT + C
文本转大写:`t WIN + ALT + Z
文本转小写:`t WIN + ALT + X
文本转驼峰:`t WIN + ALT + C
置顶:`t`t WIN+ALT+T
取消置顶:`t`t SHIFT+WIN+ALT+T
)" , "AutoHotKey 快捷键"
return
}
!s::Run("C:\Users\***\Desktop\search.bat")
#HotIf WinExist("ahk_class WorkerW") or WinExist("ahk_class Progman")
~LButton::{
DoubleClickTime := 200 ; 双击最大间隔时间,单位毫秒
; WinShowTime := 3000 ; 图标显示时间,单位毫秒
if (ThisHotkey = A_PriorHotkey && A_TimeSincePriorHotkey < DoubleClickTime) {
MouseGetPos &mX, &mY, &pId ; 获取鼠标悬浮窗口类名
MouseClass := WinGetClass("ahk_id " pId)
if (MouseClass ~= "WorkerW|Progman") { ; 判断当前鼠标是否悬浮在桌面
pId := ControlGetHwnd("SysListView321", "ahk_class " . MouseClass) ; 获取桌面图标层ID
if (!DllCall("User32\IsWindowVisible", "UInt", pId)) { ; 判断当前桌面图标显隐状态
WinShow "ahk_id " . pId
; Sleep WinShowTime
}
else{
WinHide "ahk_id " . pId
}
}
}
}
自启动:
C:\Users\usrname\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup