TextWindow.Write ("What keywords should I show pics for: ")
word = TextWindow.Read()
pic = Flickr.GetRandomPicture(word)
GraphicsWindow.Width = 800
GraphicsWindow.Height = 600
If (GraphicsWindow.LastKey = "W" ) Then
If (GraphicsWindow.LastKey = "S" ) Then
Desktop.SetWallPaper(pic) 'This executes
Program.End() 'This appears to shut down GraphicsWindow but does NOT end Execution
If (GraphicsWindow.LastKey <> "Q") Then 'Because this is True
Goto Start 'This apparently executes, only now 'word' is not a valid string....
There's the source code I'm using. When I hit S, the Desktop.SetWallpaper(pic) executes and GraphicsWindow goes away. TextWindow doesn't come back, but Program.End() doesn't execute completely. The program stays in memory and loads empty pictures from Flickr and then continues to set them as my wallpaper.