|
Post by AnkuLua on Aug 14, 2020 11:59:57 GMT
in the guide, it says setAlternativeClick(enable) when i tried it, it returned me an error. So i changed to true and it is working setAlternativeClick(true)
some times i hope you can include more information for every functions that you listed.
I read through some threads, and you have given out some good solution and on how to use them for other users. I wish you have added to the guide as well. Thanks. It's corrected.
|
|
|
Post by drblast on Dec 5, 2020 22:40:54 GMT
Can you help me with Huawei p30 It has resolution 1080x2340 Akulua does not see bottom line My settings are:
screenX = screen:getX() screenY = screen:getY()
print("x", screenX, "y", screenY) Settings:setCompareDimension(true, screenX) Settings:setScriptDimension(true, screenX)
Settings:set("MinSimilarity", 0.70) CustomSumilar = 0.9 CustomTimeToIdentify = 0.1
imagePath = (localPath .. "image/") setImmersiveMode(true) autoGameArea(true)
If I set autoGameArea = false - script cannto click buttons on top of srcreen How can I resolve issue?
|
|
|
Post by AnkuLua on Dec 6, 2020 0:51:08 GMT
Can you help me with Huawei p30 It has resolution 1080x2340 Akulua does not see bottom line My settings are:
screenX = screen:getX() screenY = screen:getY()
print("x", screenX, "y", screenY) Settings:setCompareDimension(true, screenX) Settings:setScriptDimension(true, screenX)
Settings:set("MinSimilarity", 0.70) CustomSumilar = 0.9 CustomTimeToIdentify = 0.1
imagePath = (localPath .. "image/") setImmersiveMode(true) autoGameArea(true)
If I set autoGameArea = false - script cannto click buttons on top of srcreen How can I resolve issue?
setImmersiaveMode(true); autoGameArea(false) should be the right settings What's the region size of getGameArea()? What's the result of Region(0,0, screenX, 2500):save("snap.png") Does your script can recognize the image on top and bottom of the screen? How about click(Location(x, y)) on top and bottom of the screen?
|
|
|
Post by AnkuLua on Dec 6, 2020 0:52:13 GMT
Can you help me with Huawei p30 It has resolution 1080x2340 Akulua does not see bottom line My settings are:
screenX = screen:getX() screenY = screen:getY()
print("x", screenX, "y", screenY) Settings:setCompareDimension(true, screenX) Settings:setScriptDimension(true, screenX)
Settings:set("MinSimilarity", 0.70) CustomSumilar = 0.9 CustomTimeToIdentify = 0.1
imagePath = (localPath .. "image/") setImmersiveMode(true) autoGameArea(true)
If I set autoGameArea = false - script cannto click buttons on top of srcreen How can I resolve issue?
setImmersiaveMode(true); autoGameArea(false) should be the right settings What's the region size of getGameArea()? What's the result of Region(0,0, screenX, 2500):save("snap.png") Does your script can recognize the image on top and bottom of the screen? How about click(Location(x, y)) on top and bottom of the screen? Which click mode did you use? daemon or accessibility? Please try both.
|
|
|
Post by rdqd3v on Feb 24, 2021 0:23:02 GMT
Please help me how to code with a function. I am learning and soon to post my bot here.
Images: normalValueloot.png -- plenty target and always available highValueloot.png --spawn 1x in 5 min
I want to target highValueloot monster when available because it only spawn 1 time in 5min. But it spawn on different area on my screen. When it's dead I want to automatically target the other normal monster that is walking around.
Please help.
|
|
ahmish
Contributors
Posts: 187
|
Post by ahmish on Nov 28, 2022 9:33:01 GMT
Hi, Just want to check how to capture 3 snapshots() then will check if image can be found in any of those snapshots?
|
|
|
Post by AnkuLua on Nov 30, 2022 2:05:55 GMT
Hi, Just want to check how to capture 3 snapshots() then will check if image can be found in any of those snapshots? local found = false for i = 1, 3 do found = exists("target.png", 0) if (found) then break end end
|
|
ahmish
Contributors
Posts: 187
|
Post by ahmish on Dec 1, 2022 12:26:11 GMT
Hi, Just want to check how to capture 3 snapshots() then will check if image can be found in any of those snapshots? local found = false for i = 1, 3 do found = exists("target.png", 0) if (found) then break end end
Thanks but this actually wont work for me. i need to capture an image in an instant so im doing snapshots() to make sure the still image is available and doesn't move. so im thinking what if i have 3 or more snapshots at different intervals to make sure i got all i need.
|
|
|
Post by AnkuLua on Dec 1, 2022 12:54:09 GMT
local found = false for i = 1, 3 do found = exists("target.png", 0) if (found) then break end end
Thanks but this actually wont work for me. i need to capture an image in an instant so im doing snapshots() to make sure the still image is available and doesn't move. so im thinking what if i have 3 or more snapshots at different intervals to make sure i got all i need. You can use waitVanish() to check if the image vanish during some period. ankulua.boards.net/thread/6/objects-methods-introduction-sikuli-compatible#waitVanish
|
|