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
| // language setttings for AutoHotKey | |
| // 関数、機能が1、それ以外が2 な感じ | |
| KeywordNocase:TRUE | |
| KeywordFile:autohotkey.txt | |
| OpenComment:/* | |
| CloseComment:*/ | |
| RowComment:; | |
| BreakChars: ,.:;(){}[]"=><-|&*+-/%!^ | |
| OperatorChars:=!&|^~*/+-%<>;:.,(){}[] | |
| BracketChars:)} |
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
| rootdir = %1% ;例えば引数からとる | |
| files = | |
| SetWorkingDir, %rootdir% | |
| Loop, *.* , 0 , 1 | |
| files = %files% "%A_LoopFileLongPath%" %A_Space% ;ここを変えれば区切りを変えれる。例えば`nとか | |
| msgbox,%files% ;%files%に出力 |
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% ;フルパス |
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 | |
| p = %1% | |
| if ( p = "-a" ) | |
| { | |
| IfExist, %2% ;%2% exist | |
| SetWorkingDir, %2% | |
| else | |
| { | |
| goto dirnotfound |
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,screen | |
| SplitPath, A_LineFile, xmpc_scriptname, xmpc_scriptdir, | |
| DetectHiddenWindows, on ;隠しウィンドウを見つける設定 | |
| WinGetTitle, xmptitle , ahk_class XMPLAY-MAIN |
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
| /* | |
| 開いてるウィンドウをメニューで一覧してアクティブにする。alt+tab代替みたいなもの。 | |
| ifのとこを編集することで除外するものを指定可。 | |
| */ | |
| Menu, winlistmenu , Add | |
| Menu, winlistmenu , delete | |
| WinGet, winlist , list ,,, title text which will not exist at %a_now%, | |
| loop,%winlist% |
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
| if 0 = 0 | |
| { | |
| msgbox,あふの実行ファイルと同フォルダに置く。`nあふ:`nafxwrestart.exe AFX.EXE TAfxForm`nあふw:`nafxwrestart.exe AFXW.EXE TAfxWForm | |
| exitapp | |
| } | |
| IfWinNotExist, ahk_class %2% | |
| exitapp | |
| winclose | |
| winwaitclose |
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
| plugins.options["search-url-list"] = [ | |
| ["bing","http://bing.com/search?q=%q"], | |
| ["raw","%r"], | |
| ]; | |
| ext.add("query-then-engine", function () { | |
| prompt.read("Search Word?:", function (q) { | |
| if (q) { | |
| prompt.selector({ message : "search \"" + q + "\" with?", | |
| collection : plugins.options["search-url-list"], |
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
| (defun dired-print-current-dir-and-file () | |
| (message (concat default-directory | |
| " " | |
| (buffer-substring-no-properties | |
| (point-at-bol) (point-at-eol))))) | |
| (defadvice dired-next-line (after dired-next-line-print-directory activate) | |
| "print current directory when go down line" | |
| (dired-print-current-dir-and-file)) | |
| (defadvice dired-previous-line (after dired-previous-line-print-directory activate) | |
| "print current directory when go up line" |
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
| ////////////////////////////// | |
| function tweetstatus(aInitialInput) { | |
| var statusbar = document.getElementById("statusbar-display"); | |
| var limit = 140; | |
| prompt.reader({ | |
| message: "tweet:", | |
| initialcount: 0, | |
| initialinput: aInitialInput, | |
| group: "twitter_tweet", |