Closing recent() apps
Posted: 16 Nov 2019 11:53
Heya. I tried using the control ui script that someone put in the forum to clear my recents but it executes the script as it should until the "click" part. It then just nags and hangs there with the script still active but unable to stop. What am i doing wrong? I thought maybe the button label but i changed that and still not completing.
The script i downloaded:
//////////////////////////////////
recents();
while (NOT existsElementById("com.android.systemui:id/recents_container"))
{
sleep(10);
}
while (existsElementById("com.android.systemui:id/app_thumbnail"))
{
longclickById("com.android.systemui:id/app_thumbnail");
while (NOT existsElementById("android:id/title"))
{
sleep(10);
}
click("CLOSE ALL");
clicked = click("CLOSE ALL");
if(not clicked)
{
home();
}}
(The last 6 lines is my slight modification)
My recents() clear button:
//////////////////////////////////
The script i downloaded:
//////////////////////////////////
recents();
while (NOT existsElementById("com.android.systemui:id/recents_container"))
{
sleep(10);
}
while (existsElementById("com.android.systemui:id/app_thumbnail"))
{
longclickById("com.android.systemui:id/app_thumbnail");
while (NOT existsElementById("android:id/title"))
{
sleep(10);
}
click("CLOSE ALL");
clicked = click("CLOSE ALL");
if(not clicked)
{
home();
}}
(The last 6 lines is my slight modification)
My recents() clear button:
//////////////////////////////////