If you have multiple browser threads then you can add a date column in database for each account. When some action is finished then you can add 30 minutes to the date now and add it to the database of that particular account. Then add a check condition in the beginning of the thread which checks if the current date is less or greater than the database date. If it is greater that means there is still time left and then close that thread without opening browser.
Compiled App Exit Function
-
-
@bogdan said in Compiled App Exit Function:
Is there any chance to implement an exit button in the premium compiled script ?
At the moment there isn't any option to exit a script besides minimizing it and right clicking it and closing
Any suggestion on how i could implement this is welcomedhttps://wiki.bablosoft.com/web-interface/#/interactingnativewindow?id=method-closeapplication
-
For anyone who is looking for a solution in the future here it is :
Javascript Code :
/////Exit script after exit button is clicked $(".ExitScript").on("click", function() { CloseApplication() });HTML Code :
<a class="uk-link-text uk-link-reset ExitScript"> <span uk-icon="sign-out"></span> <span class="uk-text-middle tr">Exit</span> </a>
-
@bogdan said in Compiled App Exit Function:
For anyone who is looking for a solution in the future here it is :
If you only need to call the "CloseApplication()" function, then you can do it easier:
HTML Code<a onclick="CloseApplication()" class="uk-link-text uk-link-reset ExitScript"> <span uk-icon="sign-out"></span> <span class="uk-text-middle tr">Exit</span> </a>