Thanks
With respect to your solution, I don't want any user input from a keyboard or elsewhere. basically what is happening is this. I have a small radio receiving device that is receiving the frequency of a radio station periodically sent from another microcontroller. This frequency will be put in a variable 'A'.
The program takes the frequency in A and loads a webpage showing radio stations on that frequency. The frequency is part of the url.
So what I need to do is load the webpage and periodically check the variable A. When A changes then the web page needs to be closed down and a new web page loaded.
I can load the webpage using
import webbrowser
webbrowser.open(A)
but I need a quick and simple way to close it down to I can load another web page.
cheers Peter
Thanks
With respect to your solution, I don't want any user input from a keyboard or elsewhere. basically what is happening is this. I have a small radio receiving device that is receiving the frequency of a radio station periodically sent from another microcontroller. This frequency will be put in a variable 'A'.
The program takes the frequency in A and loads a webpage showing radio stations on that frequency. The frequency is part of the url.
So what I need to do is load the webpage and periodically check the variable A. When A changes then the web page needs to be closed down and a new web page loaded.
I can load the webpage using
import webbrowser
webbrowser.open(A)
but I need a quick and simple way to close it down to I can load another web page.
cheers Peter
Thanks