2
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

AHKでファイルパス文字列を開く

Posted at

MS Teamsなどでファイルパスを送信する際、
リンク化できないのでいちいち

  1. パスを選択
  2. コピー(Ctrl+C)
  3. エクスプローラ開く(Win+E)
  4. アドレスバーを開く(Alt+D)
  5. ペースト(Ctrl+V)
  6. Enter押す

なんて手を踏まなければならない

面倒なのでAHKを常駐させて

  1. パス選択
  2. AHK実行(下記コードではCtrl+Shift+O)

以上
とさせるホットキーを作った。

動作は至ってシンプル。
SendKeyでCtrl+CコマンドからRun explorer.exeでパスを開く

CtrlとかShiftとかホットキーの予約文字はここ参照

; ホットキー設定 Ctrl + Shift + O
^+o::	
	;メイン動作
	;Ctrl+Cでコピーされた内容をエクスプローラーで開く
	clipboard = 
	Send, ^c
	ClipWait
	Run explorer.exe %clipboard%
2
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?