|
Post by pfadfinder on Oct 7, 2021 21:07:04 GMT
Hi,
I wrote the following script for a game.
----- created by AnkuLua record script ------ immersive = true setImmersiveMode(immersive) genVersion = "9.0.0-pro2" scriptDimension = 1080 Settings:setScriptDimension(true, scriptDimension) local index = 1 touchList = {} waitList = {} schleife = 0
fass= Pattern("fragez.png"):similar(0.8) abh= Pattern("abh.png"):similar(0.8)
while (true) do
if exists("roy.png") then --click start click(Location(380, 600)) wait(2)
-- auswahl 1. Reihe, 1. Position click(Location(220, 760)) wait(3) -- auswahl 1. Reihe, 1. Position click(Location(220, 760)) wait(3) -- auswahl G 1. Reihe, 1. Position click(Location(220, 760)) wait(3) -- starten click(Location(220, 1680)) wait(140)
end if exists(fass) then --click 1 x weiter nach ende click(Location(200, 200)) wait(3) end if exists(abh) then --click 1 x weiter auf Screen click(Location(200, 200)) wait(3) end if exists("weiter.png") then --click weiter click(Location(500, 1960)) wait(2) end end
-----
All clicks are made in menus which are on screens with resolution 1080x2220 portrait mode. After the click for start the game goes in landscape mode with resolution 2220x1080. During that phase coins are collected automatically without user interaction required. The game duration is less then 140 seconds. Then it returns into portrait mode and further clicks are made to restart the game. Everything is in an endless while do loop.
Sometimes during the phase in landscape mode and sometimes in the first portrait menu the script stopps as if the loop is broken. I assume it has something to do with the switches between portrait and landscape mode.
Does anyone have a hint?
Thank you!
2220x1080 1080x2220
|
|