Jump to content



Photo

[Q] Full Browser Popup When User Closes Bot..


  • Please log in to reply
4 replies to this topic

#1 seodog

seodog

    Advanced Member

  • Members
  • PipPipPip
  • 91 posts
  • LocationDallas, Texas. USA
  • OS:Windows 10
  • Total Memory:4Gb
  • Framework:v4.5+, unsure
  • License:Developer Edition

Posted 07 July 2019 - 02:26 AM

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.



#2 seodog

seodog

    Advanced Member

  • Members
  • PipPipPip
  • 91 posts
  • LocationDallas, Texas. USA
  • OS:Windows 10
  • Total Memory:4Gb
  • Framework:v4.5+, unsure
  • License:Developer Edition

Posted 18 July 2019 - 04:38 PM

No one?



#3 MasteRofBotS

MasteRofBotS

    Member

  • Members
  • PipPip
  • 23 posts
  • Location127.0.0.1
  • OS:Windows 10
  • Total Memory:More Than 9Gb
  • Framework:v4.5+, unsure
  • License:Professional Edition

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\')")

P.S.

Thanks to you I logged back to the forum ;) Hope you find the solution for the latter part of your question.



#4 seodog

seodog

    Advanced Member

  • Members
  • PipPipPip
  • 91 posts
  • LocationDallas, Texas. USA
  • OS:Windows 10
  • Total Memory:4Gb
  • Framework:v4.5+, unsure
  • License:Developer Edition

Posted Yesterday, 07:12 PM

Works perfectly.. Thank you for this.


Edited by seodog, Yesterday, 08:26 PM.


#5 MasteRofBotS

MasteRofBotS

    Member

  • Members
  • PipPip
  • 23 posts
  • Location127.0.0.1
  • OS:Windows 10
  • Total Memory:More Than 9Gb
  • Framework:v4.5+, unsure
  • License:Professional Edition

Posted Today, 12:25 AM

No problem dog. We are here to help each other after all :P If you like it, don't be shy and hit that "Like this" button next to my post  B) 






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users