Guidance
指路人
g.yi.org
Guidance Forums / Rapid-Q Basic / Run program at Windows shutdown

Register 
注册
Search 搜索
首页 
Home Home
Software
Upload

  
Forum List • Thread List • Refresh • New Topic • Search • Previous • Next First 1 Last
Message1. Run program at Windows shutdown
#720
Posted by: 2002-12-31 18:28:37
Is it possible to run a program automatically at windows shutdown? (To be more specific, I'm making a program to backup my data on a different drive, and I'd like it to remind me every time I'm turning my system off).

Thanks and happy new year to everybody.

Cajino
Message2. Leon AutoBackup
#721
Posted by: guidance 2002-12-31 20:47:47
It's just what "Leon AutoBackup" does:
http://g.yi.org/_scripts/file.php?f=270&r=46

The key part:

function FormmainWndProc (Handle AS INTEGER, uMsg AS DWORD, wParam AS LONG, lParam AS LONG) as long
 deflng wmsg
  IF uMsg = WM_SYSCOMMAND THEN
    IF wParam = SC_MINIMIZE THEN
     cmdok_click
    END IF
  ELSEIF uMsg = WM_TRAYICON THEN
   wmsg=lParam AND &HFFFF
     IF wmsg = WM_LBUTTONDBLCLK or wmsg=WM_RBUTTONDOWN THEN   '-- Respond on double click
      showmain
     END IF
  elseif umsg=WM_CLOSE or umsg=WM_QUERYENDSESSION or umsg=WM_QUIT then
   showmain
   Formmain_Unload false
  END IF
END function
Forum List • Thread List • Refresh • New Topic • Search • Previous • Next First 1 Last
掌柜推荐
 
 
¥890.00 ·
 
 
¥888.00 ·
 
 
 
 
¥288.00 ·
 
 
¥397.00 ·
 
 
¥860.00 ·
© Tue 2024-11-5  Guidance Laboratory Inc.
Email:webmaster1g.yi.org Hits:0