変数の代入 := と =

2つの代入方法

  • AHKには変数に値を代入する方法が2つある。
  • 一つは、= でレガシーな方法
  • もう一つは、 :=

それぞれの使い方

● =

 foo = 123
 bar = Hello World
 baz = %bar%

● :=

 foo := 123
 bar := "Hello World"
 baz := bar

参考

https://www.autohotkey.com/docs/Variables.htm


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

Last-modified: 2019-04-28 (日) 13:27:38