EnableExplicit Define EventID If OpenWindow(0, 0, 0, 800, 600, "Window", #PB_Window_SystemMenu | #PB_Window_ScreenCentered) UrlMkSetSessionOption_($10000001, "PB Browser", Len("PB Browser"), 0) WebGadget(1, 0, 0, 800, 600, "http://www.useragentstring.com/") Repeat EventID = WaitWindowEvent() If EventID = #PB_Event_CloseWindow End EndIf ForEver EndIf