Launching application at night or..???

Icedarts

New member
Hello to all,

I have a darts game application on which if you log in every day you get points to change the themes of the application.
To not forget to open the application every day I thought of using macrodroid.
So I made a macro to launch the application every night, the problem is that once in the application I have to click a place to validate the connection.
So far, no problem if the phone is not locked.
But at night it is locked :/
I guess it's not possible to unlock it?

Otherwise I thought of launching the app when the device is unlocked, but I don't know how to tell it to do it only once a day ^^

Thanks in advance for your help.
 

dhj49er

Well-known member
I have a pin, but I didn't find how to do it in macrodroid.
It is possible to input the pin using ui interaction actions. either by clicking the numbers in pin order or clicking the x,y co-ordinates of each digit in pin order. The first approach is simpler to write but doesn't work on all phones. The second method should work on all phones.
To unlock, the following macro is typical for the first method
T - time or orher - you choose
A Screen On
A Wait for Screen On
(Assumes phone screen shows unlock screen with keypad)
A UI Interaction - Click Text 1
A Wait 50ms - might need to be longer, depends on phones SOC. On mine I don't have a Wait.
A UI Interaction - click text 2
A Wait 50ms
.
.
Repeat for the number of digitis in your pin
.
.
May need to click enter, depends if disabled in OS system Settings.
.
.
A launch game app

In the above example the pin I used starts 12...

Be very careful with this type of macro as it unlocks your phone, so you don't want a third party using it in the event you lose your phone.

I recommend using the Secure category with a password for protection. Also, once working, disable logging for the macro via the three dots top right hand corner macro edit screen. Then the macro actions (that reveal the pin) will not appear in the system log.

The second method involves finding the x and y co- ordinates of the digits in the lockscreen keypad. Then replace the click text with click x,y with the values for each digit in your pin.

Hope that helps.
 
Top