|
AnkuLua 發表於 Dec 15, 2019 10:06:19 GMT
結果是需要裝daemon,但多開的第二個模擬器就無法用,8.6版不是已經不用daemon了嗎? 模擬器需要daemon 多開安裝daemon 請見 daemon 安裝說明
|
|
|
invlong 發表於 Jan 2, 2020 15:32:47 GMT
你好,请问怎么实现打字功能呢,没找到对应的函数。
|
|
|
AnkuLua 發表於 Jan 2, 2020 23:58:37 GMT
|
|
|
kwcha333 發表於 May 17, 2020 14:35:10 GMT
|
|
|
jakeuj 發表於 Oct 4, 2021 12:58:38 GMT
嗨,想請問有甚麼方便工具好抓範圍呢? 按精有抓抓,這邊看起來是要另外找Tool
目前是已經抓圖也寫了判斷可以自動跑 但是明顯感覺變慢 八張圖如果匹配是最後一張 要等前面七張搜尋完才會跑第八個click 比原本內建snapAndPlay來得慢
主要是我用網站的工具抓圖 但不清楚座標範圍所以先設 region = nil 想說是不是因為這樣變慢 其次相比snapAndPlay我是抓整個按鈕圖 比原本的圖片來得大
想說有沒有辦法把抓到的座標 log 出來 然後我再回寫到 script 裡面去設定範圍這樣?
----- created by AnkuLua snap and play script ------ immersive = true setImmersiveMode(immersive) genVersion = "9.0.0-pro2" setAutoGameArea = true pcall (autoGameArea, setAutoGameArea) scriptDimension = 2880 Settings:setScriptDimension(true, scriptDimension) Settings:setCompareDimension(true, scriptDimension) local index = 1 touchList = {} waitList = {}
------ 1 ----- touchList[index] = {target = "8.png", region = nil, id = "8", action = 'click'} index = index + 1
------ 2 ----- touchList[index] = {target = "1.png", region = nil, id = "1", action = 'click'} index = index + 1
------ 3 ----- touchList[index] = {target = "2.png", region = nil, id = "2", action = 'click'} index = index + 1
------ 4 ----- touchList[index] = {target = "3.png", region = nil, id = "3", action = 'click'} index = index + 1
------ 5 ----- touchList[index] = {target = "4.png", region = nil, id = "4", action = 'click'} index = index + 1
------ 6 ----- touchList[index] = {target = "5.png", region = nil, id = "5", action = 'click'} index = index + 1
------ 7 ----- touchList[index] = {target = "6.png", region = nil, id = "6", action = 'click'} index = index + 1
------ 8 ----- touchList[index] = {target = "7.png", region = nil, id = "7", action = 'click'} index = index + 1
|
|
|
AnkuLua 發表於 Oct 4, 2021 13:19:41 GMT
嗨,想請問有甚麼方便工具好抓範圍呢? 按精有抓抓,這邊看起來是要另外找Tool 目前是已經抓圖也寫了判斷可以自動跑 但是明顯感覺變慢 八張圖如果匹配是最後一張 要等前面七張搜尋完才會跑第八個click 比原本內建snapAndPlay來得慢 主要是我用網站的工具抓圖 但不清楚座標範圍所以先設 region = nil 想說是不是因為這樣變慢 其次相比snapAndPlay我是抓整個按鈕圖 比原本的圖片來得大 想說有沒有辦法把抓到的座標 log 出來 然後我再回寫到 script 裡面去設定範圍這樣? ----- created by AnkuLua snap and play script ------ immersive = true setImmersiveMode(immersive) genVersion = "9.0.0-pro2" setAutoGameArea = true pcall (autoGameArea, setAutoGameArea) scriptDimension = 2880 Settings:setScriptDimension(true, scriptDimension) Settings:setCompareDimension(true, scriptDimension) local index = 1 touchList = {} waitList = {} ------ 1 ----- touchList[index] = {target = "8.png", region = nil, id = "8", action = 'click'} index = index + 1 ------ 2 ----- touchList[index] = {target = "1.png", region = nil, id = "1", action = 'click'} index = index + 1 ------ 3 ----- touchList[index] = {target = "2.png", region = nil, id = "2", action = 'click'} index = index + 1 ------ 4 ----- touchList[index] = {target = "3.png", region = nil, id = "3", action = 'click'} index = index + 1 ------ 5 ----- touchList[index] = {target = "4.png", region = nil, id = "4", action = 'click'} index = index + 1 ------ 6 ----- touchList[index] = {target = "5.png", region = nil, id = "5", action = 'click'} index = index + 1 ------ 7 ----- touchList[index] = {target = "6.png", region = nil, id = "6", action = 'click'} index = index + 1 ------ 8 ----- touchList[index] = {target = "7.png", region = nil, id = "7", action = 'click'} index = index + 1 建議直接先用snapAndPlay 抓,可以設定搜尋範圍大一點 如果圖藥蟲抓放大,可以直接用grow() 例如 region = Region(10, 20, 50, 60):grow(25, 25, 25, 25)
|
|
|
jakeuj 發表於 Oct 5, 2021 8:56:35 GMT
嗨,想請問有甚麼方便工具好抓範圍呢? 按精有抓抓,這邊看起來是要另外找Tool 目前是已經抓圖也寫了判斷可以自動跑 但是明顯感覺變慢 八張圖如果匹配是最後一張 要等前面七張搜尋完才會跑第八個click 比原本內建snapAndPlay來得慢 主要是我用網站的工具抓圖 但不清楚座標範圍所以先設 region = nil 想說是不是因為這樣變慢 其次相比snapAndPlay我是抓整個按鈕圖 比原本的圖片來得大 想說有沒有辦法把抓到的座標 log 出來 然後我再回寫到 script 裡面去設定範圍這樣? ----- created by AnkuLua snap and play script ------ 建議直接先用snapAndPlay 抓,可以設定搜尋範圍大一點 如果圖藥蟲抓放大,可以直接用grow() 例如 region = Region(10, 20, 50, 60):grow(25, 25, 25, 25) 後來 snapAndPlay 把一些圖刪掉重取,可以了, 主要是抓的範圍相對小,不能點在按鈕特別空的地方,會抓到單一色塊 然後預設用黑白比對,他就一直亂點,我才想說自己重抓整個按鈕圖 後來刪除有問題的截圖,在重抓在按鈕的文字上面,就可以正常比對了 BTW, 我設定螢幕變暗,但還蠻常變不回來的? 我盲把亮度調回來,看腳本確實是停止狀態欸? 音量停止好像野蠻常要按個兩三下才會停止,所以之前把她關了 現在嘿嘿一片我還是把音量停止改回來,在看看他會不會變亮好了
|
|
twrom
New Member
Posts: 1
|
twrom 發表於 Dec 30, 2021 5:44:25 GMT
請問安裝後,不論使用協助工具或Daemon,都只能錄到點擊,要滑動頁面都沒有反應,需要在哪裡設定嗎?謝謝
|
|
|
AnkuLua 發表於 Dec 30, 2021 14:06:09 GMT
請問安裝後,不論使用協助工具或Daemon,都只能錄到點擊,要滑動頁面都沒有反應,需要在哪裡設定嗎?謝謝 請做出拖放的動作 如果是截圖與回放腳本 可以選拖放的動作,先選詢問 等腳本偵測到拖放動作會詢問您 再選適當動作即可
|
|
|
cman1001 發表於 Feb 23, 2022 15:07:09 GMT
請問如果我截圖的圖案是會在遊戲中隨機動的 那語法怎麼打? 我用那個截圖的腳本爪 會動的他都點不到
|
|
|
AnkuLua 發表於 Feb 23, 2022 23:50:26 GMT
請問如果我截圖的圖案是會在遊戲中隨機動的 那語法怎麼打? 我用那個截圖的腳本爪 會動的他都點不到 如果是出現地方不固定可以將該圖的region 刪除,或是回放時設定此圖不是區域尋找 如果是圖有些許不同,可以降低相似度 如果圖差異過大,就要擴充腳本了
|
|
|
cman1001 發表於 Feb 24, 2022 11:14:24 GMT
請問如果我截圖的圖案是會在遊戲中隨機動的 那語法怎麼打? 我用那個截圖的腳本爪 會動的他都點不到 如果是出現地方不固定可以將該圖的region 刪除,或是回放時設定此圖不是區域尋找 如果是圖有些許不同,可以降低相似度 如果圖差異過大,就要擴充腳本了 我晚點用電腦修改一下腳本看看
|
|
|
cman1001 發表於 Feb 24, 2022 11:16:25 GMT
請問如果我截圖的圖案是會在遊戲中隨機動的 那語法怎麼打? 我用那個截圖的腳本爪 會動的他都點不到 如果是出現地方不固定可以將該圖的region 刪除,或是回放時設定此圖不是區域尋找 如果是圖有些許不同,可以降低相似度 如果圖差異過大,就要擴充腳本了 那請問如果能快速點圖中的目標 我測試腳本時 基本上他1秒才點一下 怎麼設定可以看到目標後一直點?
|
|
|
AnkuLua 發表於 Feb 24, 2022 14:51:33 GMT
|
|
|
cman1001 發表於 Feb 25, 2022 14:24:02 GMT
那請問如果我找到了1.PNG圖片的目標後 怎麼可以按其他目標? "continueClick", Location(500, 673);Location(600, 673); Location(700, 673) 這個只能點第一個位置 不能繼續點後面的位置 我想1.PNG出現後 可以在指定位置順序點擊 不是同時點擊是(1位置>2位置>3位置>4位置>5位置)這樣的順序點擊
|
|