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