ErrorLevel

 WinWait, MyWindow,, 1
 if ErrorLevel   ; i.e. it's not blank or zero.
     MsgBox, 16,, The window does not exist.
 else
     MsgBox, The window exists.
  • ほとんどのコマンド、関数がセットするErrorLevelの値は 1:エラー0:正常

参考

https://www.autohotkey.com/docs/misc/ErrorLevel.htm


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

Last-modified: 2021-07-10 (土) 19:46:05