WinExistで正規表現を使う

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

変数を使う場合

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

参考


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

Last-modified: 2019-03-29 (金) 06:36:06