adn72
New Member
Posts: 8
|
Post by adn72 on Feb 22, 2021 15:28:07 GMT
This piece of code checks the clock on the phone and takes action accordingly. oclock = 0 + os.date("%H") if (oclock == 2) then killApp("com.naturalmotion.dawnoftitans") scriptExit("TIME FINISH!!!") end
but I want to do something like this. The current time zone I am in now. I want to change this with the help of code. maybe.. os.'....'("Australia/Darwin") -- OR -- os.execute("timedatectl set-timezone Australia/Darwin")
and my time zone will change Is such a thing possible? I studied this resource but could not see how to do this. luatz
I'm waiting for your help
|
|
|
Post by AnkuLua on Feb 22, 2021 23:17:41 GMT
There is no such function.
|
|
adn72
New Member
Posts: 8
|
Post by adn72 on Feb 23, 2021 6:40:44 GMT
There is only one mission a day in the game I play, but when I change the hours in this way, I can do 6-day missions. And I have to do these every 3 hours. If I can't do this, my tactic breaks down.
that's why I asked this.
thank you.
|
|
|
Post by Exilereven on Feb 23, 2021 11:28:59 GMT
have you looked at Tasker? its kinda made for doing system stuff automated.
|
|
|
Post by Exilereven on Feb 23, 2021 11:35:34 GMT
literally first search answer..... winaero.com/blog/set-time-zone-windows-10/tzutils, is command line api for windows time zone, it can read and set the current time zone. you shoukld manually go in aned disable automatic timezone wyhen using it. ankulua has the ability to use os.execute, start there.
|
|
adn72
New Member
Posts: 8
|
Post by adn72 on Feb 23, 2021 12:59:10 GMT
i run this on my android phone and i need to do it there, but I will examine what you said. thank you.
|
|
|
Post by Exilereven on Feb 23, 2021 13:38:01 GMT
i run this on my android phone and i need to do it there, but I will examine what you said. thank you. you can run it directly from phone. ankulua is Android, Sikuli, Lua, meaning you can use code from each, os execute will run from device. Android is just a linux system running under the hood, shell commands are a super easy thing from an android phone.
|
|
adn72
New Member
Posts: 8
|
Post by adn72 on Feb 23, 2021 15:40:45 GMT
I will continue to investigate. Thank you for your answer.
|
|