dietjaing 發表於 Sept 6, 2018 9:21:03 GMT
這是飛行遊戲... HAWK
我的想法是...一台MASTER 一直重複執行邀請動作並執行戰鬥直到結束 7B
另一台副機則是等待 邀請訊息...(這是重點)....之後執行錄製的動作
請問 [[等待邀請訊息之後 [啟動]] 錄製動作7A 這部分該如何寫...
可以直接加在已錄製的7A 前面嗎?
我嘗試自行修改之後 出現
imgur.com/a/1XtsrSa
程式則是取消原先前三個錄製動作,改由圖形辨識啟動...
請問我該如何修改?? TKS
註:圖型已使用mwsnap3 擷取,並放置在同目錄下
----- created by AnkuLua record script ------
immersive = true
setImmersiveMode(immersive)
scriptDimension = 720
Settings:setScriptDimension(true, scriptDimension)
local index = 1
touchList = {}
waitList = {}
--- accept---
touchList[index] = {target = "accept.png", region = Region(774, 493, 150, 150), id = "1", action = 'click(accept.png); wait(1)'}
index = index + 1
--- buy---
touchList[index] = {target = "240.png", region = Region(774, 493, 150, 150), id = "2", action = 'click(240.png); wait(0.5)'}
index = index + 1
-----play---
touchList[index] = {target = "play.png", region = Region(774, 493, 150, 150), id = "3", action = 'click(play.png); wait(1.5)'}
index = index + 1
------ 1 -----
---touchList[index] = {"click", Location(542, 1025)}
---waitList[index] = 1.781000
---index = index + 1
------ 2 -----
---touchList[index] = {"click", Location(370, 1214)}
---waitList[index] = 12.787000
---index = index + 1
------ 3 -----
---touchList[index] = {"click", Location(600, 955)}
---waitList[index] = 1.347000
---index = index + 1
------ 4 -----
---touchList[index] = {"click", Location(600, 955)}
---waitList[index] = 2.561000
---index = index + 1
------ 5 -----
touchList[index] = {"dragDrop", Location(442, 1023), Location(369, 977)}
waitList[index] = 2.286000
index = index + 1
我的想法是...一台MASTER 一直重複執行邀請動作並執行戰鬥直到結束 7B
另一台副機則是等待 邀請訊息...(這是重點)....之後執行錄製的動作
請問 [[等待邀請訊息之後 [啟動]] 錄製動作7A 這部分該如何寫...
可以直接加在已錄製的7A 前面嗎?
我嘗試自行修改之後 出現
imgur.com/a/1XtsrSa
程式則是取消原先前三個錄製動作,改由圖形辨識啟動...
請問我該如何修改?? TKS
註:圖型已使用mwsnap3 擷取,並放置在同目錄下
----- created by AnkuLua record script ------
immersive = true
setImmersiveMode(immersive)
scriptDimension = 720
Settings:setScriptDimension(true, scriptDimension)
local index = 1
touchList = {}
waitList = {}
--- accept---
touchList[index] = {target = "accept.png", region = Region(774, 493, 150, 150), id = "1", action = 'click(accept.png); wait(1)'}
index = index + 1
--- buy---
touchList[index] = {target = "240.png", region = Region(774, 493, 150, 150), id = "2", action = 'click(240.png); wait(0.5)'}
index = index + 1
-----play---
touchList[index] = {target = "play.png", region = Region(774, 493, 150, 150), id = "3", action = 'click(play.png); wait(1.5)'}
index = index + 1
------ 1 -----
---touchList[index] = {"click", Location(542, 1025)}
---waitList[index] = 1.781000
---index = index + 1
------ 2 -----
---touchList[index] = {"click", Location(370, 1214)}
---waitList[index] = 12.787000
---index = index + 1
------ 3 -----
---touchList[index] = {"click", Location(600, 955)}
---waitList[index] = 1.347000
---index = index + 1
------ 4 -----
---touchList[index] = {"click", Location(600, 955)}
---waitList[index] = 2.561000
---index = index + 1
------ 5 -----
touchList[index] = {"dragDrop", Location(442, 1023), Location(369, 977)}
waitList[index] = 2.286000
index = index + 1