home *** CD-ROM | disk | FTP | other *** search
/ DP Tool Club 26 / CD_ASCQ_26_1295.iso / vrac / batsh220.zip / SAMPLE4.BSH < prev   
Text File  |  1995-10-18  |  1KB  |  58 lines

  1. REM Demo for BATSH WAIT commands with own MENU and HELP
  2. ;******************************************************
  3. ; common settings
  4. wait off
  5. ; include help option
  6. set $HELP=batsh.exe sample4.bsh HELP
  7.  
  8. ; different file functions by parameters 
  9. if %1==HELP goto help
  10. if %1==STEP2 goto step2
  11.  
  12. ; step 1 
  13. label DEMO Step1
  14. ; menu option 1
  15. menu 'Continue Step2' batsh.exe sample4.bsh STEP2
  16. menu 'Hide this Icon' batsh.exe /C/E show hide DEMO Step1
  17. batsh.exe sample4.bsh HELP
  18. :wait1
  19. waitopen 90 Clock
  20. if errorlevel 3 goto step2
  21. if errorlevel 2 goto repeat
  22. goto step2
  23.  
  24. :repeat
  25. close Clock
  26. wait 1
  27. goto wait1 
  28.  
  29. :step2
  30. label DEMO Step2
  31. show icon
  32. if window 'DEMO Step1' close DEMO Step1
  33. if not window Clock run normal clock.exe
  34. show 20:20:60:60 Clock
  35. menu
  36. menu 'Desktop Settings' control.exe desktop
  37. menu 'Exit and close Clock' batsh.exe /C/E close Clock
  38. waitclose 30 Clock
  39. if errorlevel 3 quit Clock
  40. exit
  41.  
  42. :help
  43. show hide
  44. if window 'DEMO - Help' close DEMO - Help
  45. label DEMO - Help
  46. message %0 - Help
  47.     To show sequential processing with WINDOWS,
  48.     this DEMO icon will wait for 90 seconds and
  49.     activate the clock for 30 seconds.
  50.  
  51.  You can continue or stop the DEMO using the icon menu
  52.  
  53.     This message-box will close after 15 seconds
  54.  
  55. .15
  56. exit
  57.