Hi.. Can anyone share a code to add to or integrate with an already made bot, that when the user closes the program his browser opens up to a URL I specify. Many Thanks.
[Q] Full Browser Popup When User Closes Bot..
Posted 07 July 2019 - 02:26 AM
Posted 18 July 2019 - 04:38 PM
Posted Yesterday, 03:11 PM
Hi seodog! (funny to say that while I have a lion in profile pic ).
You might wanna try using the code that I have found in one of the free bots from user of this forum, it's pretty close. The code below will open a new browser with specified URL inside using PYTHON code => you need to figure out a way to have it triggered either when user clicks the close button/alt+f4 or simply have it start when the system process with ID of your program is getting closed (don't know an exact solution for that part tho).
python("","import webbrowser webbrowser.open_new_tab(\'http://network.ubotstudio.com/forum/index.php/topic/19192-tut-define-the-how-to-use-them-and-why-you-should-always-use-them/?p=119766\')")
Thanks to you I logged back to the forum Hope you find the solution for the latter part of your question.
- seodog likes this
Posted Yesterday, 07:12 PM
Works perfectly.. Thank you for this.
Edited by seodog, Yesterday, 08:26 PM.
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users