Skip to content

Instantly share code, notes, and snippets.

@aristotll
Forked from 10sr/everythingmenu.ahk
Created January 12, 2017 14:47
Show Gist options
  • Save aristotll/2d31bca4e99d8c47dc5c4189ab9610c2 to your computer and use it in GitHub Desktop.
Save aristotll/2d31bca4e99d8c47dc5c4189ab9610c2 to your computer and use it in GitHub Desktop.
everything search engine用ahkスクリプト
/*
iniにこんな感じで入れる
open_file_command=$exec("C:\My Dropbox\apps\AutoHotkey\AutoHotkey.exe" "C:\My Dropbox\apps\Everything\everythingmenu.ahk" "%1")
open_folder_command=$exec("C:\My Dropbox\apps\AutoHotkey\AutoHotkey.exe" "C:\My Dropbox\apps\Everything\everythingmenu.ahk" "%1")
*/
#NoTrayIcon
CoordMode,menu,relative
SplitPath, A_LineFile, emenu_scriptname, emenu_scriptdir,
targetpath = %1%
FileGetAttrib, fileatt , %targetpath%
;;;;;;;;;;;;;;;;;;
;ディレクトリ
IfInString, fileatt , D
{
targetdir = %targetpath%
menu,emenu,add,open_path_with_afx
menu,emenu,add,copy_path
;menu,emenu,add,delete
Menu,emenu,Show,10,90
}
;;;;;;;;;;;;;;;;;
;ファイル
else
{
SplitPath, targetpath, targetname, targetdir,
menu,emenu,add,systemlaunch
menu,emenu,add,open_path_with_afx
menu,emenu,add,copy_path
menu,emenu,add,edit
;menu,emenu,add,delete
Menu,emenu,Show,10,90
}
return
;;;;;;;;;;;;;;;;;;;;;
;ラベル
systemlaunch:
run,"%targetpath%"
return
open_path_with_afx:
run,"%emenu_scriptdir%\..\afxw\AFXW.EXE" -s -r"%targetpath%"
return
copy_path:
clipboard = %targetpath%
return
edit:
run,"%emenu_scriptdir%\..\otbedit\otbedit.exe" "%targetpath%"
return
delete:
;msgbox,
return
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment