早教吧 育儿知识 作业答案 考试题库 百科 知识分享

按键精灵自定义变量SetSimMode2UserVargewei=DropList{"1":"49"|"2":"50"|"3":"51"|"4":"52"|"5":"53"|"6":"54"|"7":"55"|"8":"56"|"9":"57"|"0":"48"}=0"物品价钱个位数"UserVarshiwei=DropList{"1":"49"|"2":"50"|"3":"51"|"4":"52"|"5":"53"|"6"

题目详情
按键精灵自定义变量
SetSimMode 2
UserVar gewei=DropList{"1":"49"|"2":"50"|"3":"51"|"4":"52"|"5":"53"|"6":"54"|"7":"55"|"8":"56"|"9":"57"|"0":"48"}=0 "物品价钱个位数"
UserVar shiwei=DropList{"1":"49"|"2":"50"|"3":"51"|"4":"52"|"5":"53"|"6":"54"|"7":"55"|"8":"56"|"9":"57"|"0":"48"}=0 "物品价钱十位数"
UserVar baiwei=DropList{"1":"49"|"2":"50"|"3":"51"|"4":"52"|"5":"53"|"6":"54"|"7":"55"|"8":"56"|"9":"57"|"0":"48"}=0 "物品价钱百位数"
UserVar yanshi=0 "点击装备速度(毫秒)"
MoveTo 380,200
Delay yanshi
LeftClick 1
Delay yanshi
MoveTo 493,368
Delay yanshi
LeftDown 1
Delay yanshi
MoveTo 444,368
Delay yanshi
LeftUp 1
Delay yanshi
KeyPress "baiwei",1
Delay 100
KeyPress "shiwei",1
Delay 100
KeyPress "gewei",1
Delay yanshi
MoveTo 450,428
Delay yanshi
LeftClick 1
已经做成小精灵,为什么所要求填写个位十位百位都不写呢
▼优质解答
答案和解析
自定义变量名字改掉,不要用var 1 ,用其他你喜欢的


先输入 比如
UserVar a=0 "设置内容" //意思相当于a=0
if a=x then
esleif a=d then
end if


然后进行判断,自定义变量就是一个普通的变量,没什么特别,只不过可以在设置界面中改罢了
希望对你能有所帮助.