#author("2019-03-29T06:35:44+09:00","default:ryuichi","ryuichi")
#author("2019-03-29T06:36:06+09:00","default:ryuichi","ryuichi")
* WinExistで正規表現を使う [#efcfedc8]


 SetTitleMatchMode, Regex
 
 F1::
   if WinExist("- メモ帳$ ahk_class Notepad") {
   MsgBox, メモ帳がある
   } else {
   MsgBox, メモ帳がない
   }
   Return

*** 変数を使う場合 [#na75061e]

 F1::
   name := "- メモ帳$"
   txt = %name% ahk_class Notepad
   if WinExist(txt) {
     MsgBox, メモ帳がある
   } else {
     MsgBox, メモ帳がない
   }
   Return


** 参考 [#qfd0af69]

- http://ahkwiki.net/WinExist

トップ   編集 差分 バックアップ 添付 複製 名前変更 リロード   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS