[有解]非法字

遇到了问题?请先进行搜索(中文和英文),然后在此提问

Moderators: tmplinshi, arcticir

yaa69455
Posts: 16
Joined: 22 May 2015, 08:47

[有解]非法字

29 May 2015, 04:31

非法字和变量字

要在选单显示非法字,该怎么显示?

Code: Select all

menu, tray, add, "A"=>"B"

"A"=>"B":
MsgBox, B
return

Code: Select all

C = "A"=> "B"
menu, tray, add, %C%

%C%:
MsgBox, B
return


我大概试加%或引号或双引号很像都不能。
希望有明确的答案。
Last edited by yaa69455 on 29 May 2015, 06:12, edited 1 time in total.
tmplinshi
Posts: 1604
Joined: 01 Oct 2013, 14:57

Re: 非法字

29 May 2015, 05:22

你少了一个标签参数:

Code: Select all

menu, tray, add, "A"=>"B", TestLable
Menu, tray, show

TestLable:
ExitApp

Return to “请求帮助”

Who is online

Users browsing this forum: No registered users and 5 guests