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

作者: shyangs (厚呦)   2012-07-18 19:59:32
學會表達式賦值,等號賦值請當作不存在。
====
now := A_now
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)
作者: KTiC (關西觀光資訊服務中心)   2012-07-20 13:10:00
太厲害了! 還有上色 真是感謝>_<想請問eatapple := 20110718174120 這行的eatapple跟這行eatbus := 20130718174120 的eatbus為什麼是白色不是紅色的?應該是說eatapple跟eatbus 為什麼不是跟 Happle以及Hbus同色?

Links booklink

Contact Us: admin [ a t ] ucptt.com