|
Post by hoanglenin on Jul 21, 2021 14:34:52 GMT
I have a question! how can i find an image(it can appear anywhere) in the screen, it would be great if it can be used in all different screen resolutions! Thank!
|
|
|
Post by AnkuLua on Jul 21, 2021 15:39:26 GMT
Settings:setCompareDimension() is the key. In most games, set it to the short side resolution. Which game did you work on?
|
|
|
Post by hoanglenin on Jul 22, 2021 5:57:26 GMT
I am writing for summoners war game, is there any script sample for this game, I have tried many scripts on forum it doesn't work,
|
|
|
Post by AnkuLua on Jul 22, 2021 6:37:43 GMT
|
|
|
Post by hoanglenin on Jul 24, 2021 2:17:25 GMT
Hey bro, I have indicator_VictoryScreen and indicator_VictoryScreen1
my code
if existsClick(indicator_VictoryScreen, delayShort) == true then if debugMode == true then showInfo("Victory Screen 1. Click") end waitRandom(2, 3) end
I want to find both before I click
i tried with following command line but it doesn't work
if existsClick(indicator_VictoryScreen, delayShort) == true and existsClick(indicator_VictoryScreen, delayShort) == true then if debugMode == true then showInfo("Victory Screen 1. Click") end waitRandom(2, 3) end
|
|
|
Post by AnkuLua on Jul 24, 2021 12:06:48 GMT
Where did you want to click?
if (exists(indicator_VictoryScreen, delayShort) and exists(indicator_VictoryScreen, delayShort)) then existsClick("target.png") -- change to what you want to click end
|
|
|
Post by hoanglenin on Jul 26, 2021 3:21:05 GMT
Where did you want to click? if (exists(indicator_VictoryScreen, delayShort) and exists(indicator_VictoryScreen, delayShort)) then existsClick("target.png") -- change to what you want to click end it's working! thank you!
|
|