• 追加された行はこの色です。
  • 削除された行はこの色です。
#author("2019-03-29T06:17:16+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