hotkey.ahk
;Win+W Internet Explorer
#w::Run "C:\Program Files\Internet Explorer\iexplore.exe"
;Win+N
#n::Run notepad
;Win+C
#c::Run calc
; ,ctr+D
^d::
send ^c
sleep,200
clipboard=%clipboard%
tooltip,%clipboard%
sleep,500
tooltip,
return
;Ctr+Shift+Z DOS
^+c::Run cmd
;Ctr+Shift+Z
^+z::Run "C:\Program Files\WizBrother\Wiz\WizExplorer.exe"
;Win+R “ ...”
;#R
;Win+D
;#E
; ahk
;~LButton::
; CoordMode, Mouse, Screen
; ; , , ; …
; MouseGetPos, x1, y1
; KeyWait, LButton, U
; WinGetActiveTitle, Title
; If Title contains Firefox, Opera, Internet Explorer
; {
; MouseGetPos, x2, y2
; if (abs(x1-x2)>10 or abs(y1-y2)>10)
; ;
; send ^c
; }
;return
;~RButton::
; CoordMode, Mouse, Screen
; ; , , ; …
; WinGetActiveTitle, Title
; If Title contains Firefox, Opera, Internet Explorer
; {
; send ^v
; }
;return
#singleinstance force ; ,
^!s::suspend ; , ,
~LButton up:: ;
send, ^c
return
RButton:: ; ,
click
send, ^v
return
: copypath.ahk, , D:\Temp\
- #NoTrayIcon
- Clipboard=%1%
: AutoHotkey , x:\AutoHotkey\AutoHotkey.exe 。 , CopyFilePath.reg, 。
- Windows Registry Editor Version 5.00
- [HKEY_CLASSES_ROOT\*\shell\copypath]
- @=" "
- [HKEY_CLASSES_ROOT\*\shell\copypath\command]
- @="\"x:\\AutoHotkey\\AutoHotkey.exe\" \"D:\\Temp\\copypath.ahk\" \"%1\""
- [HKEY_CLASSES_ROOT\Folder\shell\copypath]
- @=" "
- [HKEY_CLASSES_ROOT\Folder\shell\copypath\command]
- @="\"x:\\AutoHotkey\\AutoHotkey.exe\" \"D:\\Temp\\copypath.ahk\" \"%1\""
, , “ ” “ ” 。
ahk , 。
-
- ;
- ^1::
- send ^c
- sleep,200
- clipboard = %clipboard%
- SplitPath, clipboard, , dir
- clipboard = %dir%
- return
- ;
- ^2::
- send ^c
- sleep,200
- clipboard = %clipboard%
- SplitPath, clipboard, name
- clipboard = %name%
- ;~ tooltip,%clipboard%
- ;~ sleep,2000
- ;~ tooltip,
- return
- ;~
- ^3::
- send ^c
- sleep,200
- clipboard=%clipboard%
- ;windows , “ ”。 , 。
- ;~ tooltip,%clipboard%
- ;~ sleep,2000
- ;~ tooltip,
- return
,