Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
* Put this in a file called CloseIt.prg
#define MBRYES 6
#define MBRNO 7
#define MBXYESNO 4
PROC CloseIt
If messageBoX('are you sure?',mbxYesNo)=mbrYes
QUIT
endif
RETURN
DECLARE INTEGER FindWindow in win32api as apiFindWindow ;
STRING @cClass, STRING cName
Declare INTEGER SendMessage in user32 ;
as apiSendMessage INTEGER hWnd, INTEGER nMsg, ;
INTEGER nParam1, INTEGER nParam2
DECLARE INTEGER GetDesktopWindow in Win32Api
whnd=getDesktopWindow()
?"Desktop ",whnd
whnd=apiFindWindow( 0,"Program Manager")
?"Program Manager ",whnd
apiSendMessage( wHnd, 0x10, 0,0 ) && 0x10=WM_CLOSE