Created
February 12, 2010 02:12
-
-
Save 10sr/302230 to your computer and use it in GitHub Desktop.
タイトルのパスで何かするAHK。精度いまいち
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #NoTrayIcon | |
| CoordMode,menu,active | |
| SplitPath, A_AhkPath, ahkexename, ahkexedir, | |
| ;MouseGetPos, mousex, mousey, thiswin, thiscontrol | |
| WinGetTitle, thistitle ,A ;アクティブのタイトルを取得 | |
| SplitPath, thistitle, thisfilename, thisdir ;ディレクトリとファイル名に分割 | |
| StringSplit, thisfilename , thisfilename, %A_Space% ;ファイル名の空白以降を除去 | |
| thispath = %thisdir%\%thisfilename1% ;フルパス | |
| ;msgbox,%thispath% | |
| ;msgbox,%thisfilename1% | |
| ;msgbox,%thisdir% | |
| Menu,otbmenu,add,copy_path | |
| Menu,otbmenu,add,open_path_with_afx | |
| Menu,otbmenu,add,open_with_autohotkey | |
| Menu,otbmenu,add,view | |
| Menu,otbmenu,add,edit | |
| Menu,otbmenu,add,firefox | |
| Menu,otbmenu,add | |
| Menu,otbmenu,add,editscript | |
| Menu,otbmenu,add,*タイトルのパスで何かするAHK*,return | |
| Menu,otbmenu,Show,0,30 | |
| return | |
| open_with_autohotkey: | |
| run,"%A_AhkPath%" "%thispath%" | |
| return | |
| view: | |
| run,"%ahkexedir%\..\ttPage\ttPage.exe" "%thispath%" | |
| return | |
| open_path_with_afx: | |
| run,"%ahkexedir%\..\afx\AFX.EXE" -s -o"%thisdir%" | |
| return | |
| copy_path: | |
| clipboard = %thispath% | |
| return | |
| edit: | |
| run,"%ahkexedir%\..\otbedit\otbedit.exe" "%thispath%" | |
| return | |
| firefox: | |
| run,"C:\Program Files\Mozilla Firefox\firefox.exe" "%thispath%" | |
| WinActivate , ahk_class MozillaUIWindowClass | |
| return | |
| editscript: | |
| run,%ahkexedir%\..\otbedit\otbedit.exe %A_ScriptFullPath% | |
| return | |
| return: | |
| return |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment