Skip to main content
Skip table of contents

Numeric Expressions (JA)

2.6 数値表現

数値式はv1.3からサポートされている。

'5s'(5秒)のような時間変数は、time修飾子が式の最後にある場合を除き、受け付けられない。例

  • 正解:Wait 5+5s

  • 不正解:Wait 5s+5s

サポートされている数値演算子

  • 括弧 '(' および ')'

  • プラス '+'

  • マイナス '-'

  • 単項マイナス '-' (負の数)

  • 乗算 '*'

  • 除算 '/'

  • モジュロ除算 '%'

  • 累乗演算子 '^'

数値式は、言語内で数値を表す場所であればどこでも使用できます。

# 1時間待つ - ミリ秒単位
Wait "1*60*60*1000"


# 画像を検索し、その左上隅から10ポイント離れた位置をクリックする
Compareto "pattern.png" method="search"
Mouse click to="x:{_SEARCH_X}+10,y:{_SEARCH_Y}+10"

数値式に基づいて変数を定義するには Eval コマンドの代わりに Var 例えば、'Eval HOUR_IN_MS=1*60*60*1000'である。

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.