MouseClick("left",154,43,1)
sleep(500)
MouseClick("left",184,68,1)
sleep(1000)
WinWaitActive("物品参数设置")
sleep(500)
ControlCommand("物品参数设置","","ComboBox1","SetCurrentSelection", "0")
sleep(500)
ControlClick("物品参数设置","","Button10","",1)
sleep(500)
ControlSetText("物品参数设置","","Edit1",2000)
sleep(500)
ControlSetText("物品参数设置","","Edit4",1900)
sleep(500)
ControlSetText("物品参数设置","","Edit6",800)
sleep(500)
ControlSetText("物品参数设置","","Edit8",600)
sleep(500)
ControlCommand("物品参数设置","","ComboBox5","SetCurrentSelection", "2")
sleep(500)
ControlSetText("物品参数设置","","Edit10",500)
ControlClick("物品参数设置","","Button1","",1)
sleep(2000)
;设置好参数,开始运行程序,第一段参数运行完,就开始设置第二段参数
MouseClick("left",154,43,1)
sleep(500)
MouseClick("left",184,68,1)
sleep(1000)
WinWaitActive("物品参数设置")
sleep(500)
ControlCommand("物品参数设置","","ComboBox1","SetCurrentSelection", "0")
sleep(500)
ControlClick("物品参数设置","","Button10","",1)
sleep(500)
ControlSetText("物品参数设置","","Edit1",1000)
sleep(500)
ControlSetText("物品参数设置","","Edit4",900)
sleep(500)
ControlSetText("物品参数设置","","Edit6",800)
sleep(500)
ControlSetText("物品参数设置","","Edit8",300)
sleep(500)
ControlCommand("物品参数设置","","ComboBox5","SetCurrentSelection", "2")
sleep(500)
ControlSetText("物品参数设置","","Edit10",500)
ControlClick("物品参数设置","","Button1","",1)
sleep(2000)
;第二段参数只修改了四个edit 里面的内容,改为:1000,900,800,300, 第二段参数设置好,运行程序,之后运行第三段参数
MouseClick("left",154,43,1)
sleep(500)
MouseClick("left",184,68,1)
sleep(1000)
WinWaitActive("物品参数设置")
sleep(500)
ControlCommand("物品参数设置","","ComboBox1","SetCurrentSelection", "0")
sleep(500)
ControlClick("物品参数设置","","Button10","",1)
sleep(500)
ControlSetText("物品参数设置","","Edit1",427)
sleep(500)
ControlSetText("物品参数设置","","Edit4",400)
sleep(500)
ControlSetText("物品参数设置","","Edit6",800)
sleep(500)
ControlSetText("物品参数设置","","Edit8",128)
sleep(500)
ControlCommand("物品参数设置","","ComboBox5","SetCurrentSelection", "2")
sleep(500)
ControlSetText("物品参数设置","","Edit10",500)
ControlClick("物品参数设置","","Button1","",1)
sleep(2000)
:同上
MouseClick("left",154,43,1)
sleep(500)
MouseClick("left",184,68,1)
sleep(1000)
WinWaitActive("物品参数设置")
sleep(500)
ControlCommand("物品参数设置","","ComboBox1","SetCurrentSelection", "0")
sleep(500)
ControlClick("物品参数设置","","Button10","",1)
sleep(500)
ControlSetText("物品参数设置","","Edit1",213)
sleep(500)
ControlSetText("物品参数设置","","Edit4",210)
sleep(500)
ControlSetText("物品参数设置","","Edit6",800)
sleep(500)
ControlSetText("物品参数设置","","Edit8",64)
sleep(500)
ControlCommand("物品参数设置","","ComboBox5","SetCurrentSelection", "2")
sleep(500)
ControlSetText("物品参数设置","","Edit10",500)
ControlClick("物品参数设置","","Button1","",1)
sleep(2000)
;总的来说,四段代码,主要需要修改的就四个参数edit 1,2,3,4, 其他的参数第一段代码运行完之后,软件会有记忆功能,不用再输第二次(这里我直接复制粘贴,就没删除多余的了)。而edit四个参数其中 edit2 只要小于 接近 edit1就行,其他edit1,3,4 都是不固定的参数,我要把这几组参数都运行一遍 才行