|
Post by godemperor on Sept 17, 2020 15:39:51 GMT
HI, im having a weird problem on a script im doing just for my device . The device has a screen resolution of 2560x1440 (android 10 lineage) , while playing the game theres ads some are displayed on landscape but some force to portrait so de resolution change to 1440x2560 itself wouldnt be a problem as i cant detect the change with getRealScreenSize/getAppUsableScreenSize/getGameArea the weird thing is that when its on portrait mode the script behavios as if the screen were 2560x4550 on screenshoot the region highlighted its supposed to be 1440x2560 as toast text indicates from getRealScreenSize if the script stoped and started agian while in portrait mode then its works fine but when started on landscape mode and then switches to portrati have always this behavoir. PD: after more testing i notice that sometimes on portrait work fine the red region on screenshot its drawn ok and ocuppies all the screen (as it should) ¿maybe has something to do with whats its being shown/displayed by the Ads? In any case (work or not) getRealScreenSize/getAppUsableScreenSize/getGameArea always return 1440x2560 on portrait
|
|
|
Post by AnkuLua on Sept 17, 2020 22:41:20 GMT
Try keyevent(4) to send the back button command. In most cases, it should be back to the game. You may need to wait 30 seconds before keyevent(4)
|
|
|
Post by godemperor on Sept 18, 2020 11:51:55 GMT
this particular ads are more annoying , you cant press back button , the only way is to wait until its finished and click on close , that i have work it out except for SOME particular portrait ads that make the script behave as if the screen were biger than its reported by getRealScreenSize, getAppUsableScreenSize or getGameArea and i cant distinguish them from normal ones.
¿its there another ankulua/skuli/lua method that can tell the correct screen size at which will interact with phone? just to clarify again getRealScreenSize returns 1440x2560 i hightlight 0,0,1440,2560 and the result is a rectangle smaller than the full screen ¿how its that posible taking into account that in other portrait ads works fine?
|
|