Re: [AHK-] 編輯變數名稱(擷取部分)

作者: KTiC (關西觀光資訊服務中心)   2012-07-20 14:21:32
學會表達式賦值,等號賦值請當作不存在。
====
now := A_now
eatapple := 20110718174120 這邊想問eatapple後面的20110718174120是代表
20110718174120是一個變數嗎?
然後eatapple等於20110718174120變數裡面的資料?
如果不是的話要怎麼判斷 := 右邊是數值、變數或是字
串(用""包起來?)呢?
: eatbus := 20130718174120
: Happle := 999
: Hbus := 888
: function(x,y)
: {
: StringTrimLeft, a, x, 3 ;(這裡是想說去掉eat為首的變數名稱)
: if (%x% - y <= 0)
: {
: means:="OK!"
: return means
: }
: else
: {
: x := "H" . a
: x := %x%
: return x
: }
: }
: MsgBox,% function("eatapple", now)
: MsgBox,% function("eatbus", now)

Links booklink

Contact Us: admin [ a t ] ucptt.com