WebGadget as Flash ScreenSaver

Share your advanced PureBasic knowledge/code with the community.
User avatar
J. Baker
Addict
Addict
Posts: 2188
Joined: Sun Apr 27, 2003 8:12 am
Location: USA
Contact:

WebGadget as Flash ScreenSaver

Post by J. Baker »

Very simple way of displaying your flash files as a screensaver. Just fiddling around, as always. :D

Code: Select all

sw.l=GetSystemMetrics_(#SM_CXSCREEN) 
sh.l=GetSystemMetrics_(#SM_CYSCREEN)

If OpenWindow(0,0,0,sw,sh,#PB_Window_BorderLess,"") And CreateGadgetList(WindowID(0))
 
    WebGadget(0,0,0,sw,sh,"file://C:/WINDOWS/system32/file.swf") 
    
    AddKeyboardShortcut(0, #PB_Shortcut_Escape, 1)
    Repeat : WaitWindowEvent() : Until EventMenuID() = 1
    EndIf
    
End 
www.posemotion.com

PureBasic Tools for OS X: PureMonitor, plist Tool, Data Maker & App Chef


Even the vine knows it surroundings but the man with eyes does not.