home *** CD-ROM | disk | FTP | other *** search
/ PC Online 1998 September / PCO_0998.ISO / filesbbs / dos / sbbs230b.exe / EXEC.LZH / SIMPLE.SRC < prev    next >
Encoding:
Text File  |  1995-09-05  |  4.9 KB  |  379 lines

  1. # SIMPLE.SRC
  2.  
  3. # Copyright 1995 Digital Dynamics
  4.  
  5. # Simple Synchronet Command Shell - for beginner/first-time users
  6.  
  7. !include sbbsdefs.inc
  8.  
  9. replace_text 563 "\1n\1h\1b{\1wContinue? Yes/No\1b} "
  10.  
  11. # Set return point for main menu commands (via end_cmd)
  12. cmd_home
  13. # Update node status
  14. node_action node_main
  15. cls
  16. async
  17.  
  18. menu simple\main
  19. menu simple\prompt
  20. print "n"
  21.  
  22. getstrupr 10
  23. crlf
  24. pause_reset
  25.  
  26. # Write command to log file
  27. logstr
  28.  
  29. # Commands
  30.  
  31. cmdstr C
  32.     chat_section
  33.     end_cmd
  34.  
  35. cmdstr CHAT
  36.     chat_section
  37.     end_cmd
  38.  
  39. cmdstr Q
  40.     msg_qwk
  41.     end_cmd
  42.  
  43. # Send Post/Email menu
  44. cmdstr S
  45.     cmd_home
  46.     cls
  47.         async
  48.     menu simple\sendmsg
  49.     menu simple\prompt
  50.     print "n"
  51.     getstrupr 10
  52.     crlf
  53.     pause_reset
  54.  
  55.       # Send Email
  56.     cmdstr E
  57.         call sendmail
  58.         end_cmd
  59.  
  60.     cmdstr EMAIL
  61.         call sendmail
  62.         end_cmd
  63.  
  64.       # Post Message
  65.     cmdstr P
  66.         call postmessage
  67.         end_cmd
  68.  
  69.     cmdstr POST
  70.         call postmessage
  71.         end_cmd
  72.  
  73.       # Send NetMail
  74.     cmdstr N
  75.         call sendnetmail
  76.         end_cmd
  77.  
  78.     cmdstr NETMAIL
  79.         call sendnetmail
  80.         end_cmd
  81.  
  82.       # Quit back to main
  83.     cmdstr Q
  84.         cmd_pop
  85.         end_cmd
  86. end_cmd
  87.  
  88. # Read messages/mail menu
  89. cmdstr R
  90.     cmd_home
  91.     cls
  92.     async
  93.     menu simple\readmsg
  94.     menu simple\prompt
  95.     print "n"
  96.     getstrupr 10
  97.     crlf
  98.     pause_reset
  99.  
  100.       # Read your Email
  101.     cmdstr E
  102.         mail_read
  103.         end_cmd
  104.  
  105.     cmdstr EMAIL
  106.         mail_read
  107.         end_cmd
  108.  
  109.       # Read your sent Email
  110.     cmdstr F
  111.         mail_read_sent
  112.         end_cmd
  113.  
  114.       # Read messages in a conference
  115.     cmdstr A
  116.         msg_select_area
  117.         if_true
  118.             msg_read
  119.             end_if
  120.         end_cmd
  121.  
  122.     cmdstr ALL
  123.         msg_read
  124.         end_cmd
  125.  
  126.       # Bulletins
  127.     cmdstr B
  128.         text_file_section
  129.         end_cmd
  130.  
  131.       # Read all new messages
  132.     cmdstr N
  133.         print "lbhScanning for new messages...\r\n"
  134.         msg_new_scan_all
  135.         end_cmd
  136.  
  137.     cmdstr NEW
  138.         print "lbhScanning for new messages...\r\n"
  139.         msg_new_scan_all
  140.         end_cmd
  141.  
  142.       # Read all new messages TO: YOU
  143.     cmdstr Y
  144.         print "lbhScanning for your messages...\r\n"
  145.         msg_your_scan_all
  146.         end_cmd
  147.  
  148.     cmdstr YOU
  149.         print "lbhScanning for your messages...\r\n"
  150.         msg_your_scan_all
  151.         end_cmd
  152.  
  153.     cmdstr YOUR
  154.         print "lbhScanning for your messages...\r\n"
  155.         msg_your_scan_all
  156.         end_cmd
  157.  
  158.     cmdstr C
  159.            call msg_cfg
  160.            end_cmd
  161.  
  162.       # Quit back to main menu
  163.     cmdstr Q
  164.         cmd_pop
  165.         end_cmd
  166. end_cmd
  167.  
  168. #Open door menu
  169. cmdstr O
  170.     xtrn_section
  171.     end_cmd
  172.  
  173. cmdstr OPEN
  174.     xtrn_section
  175.     end_cmd
  176.  
  177. cmdstr DOOR
  178.     xtrn_section
  179.     end_cmd
  180.  
  181. cmdstr DOORS
  182.     xtrn_section
  183.     end_cmd
  184.  
  185. #Account config (user defaults)
  186. cmdstr A
  187.     user_defaults
  188.     end_cmd
  189.  
  190. #Page another user
  191. cmdstr P
  192.     private_message
  193.     pause_reset
  194.     end_cmd
  195.  
  196. #List users online
  197. cmdstr L
  198.     cls
  199.     nodelist_users
  200.     end_cmd
  201.  
  202. #List files
  203. cmdstr F
  204.     cmd_home
  205.     cls
  206.     async
  207.     menu simple\filelist
  208.     menu simple\prompt
  209.     print "n"
  210.     getstrupr 10
  211.     crlf
  212.         pause_reset
  213.  
  214.     cmdstr A
  215.         file_select_area
  216.         if_false
  217.             end_cmd
  218.             end_if
  219.         setstr "*.*"
  220.         file_list
  221.         end_cmd
  222.  
  223.     cmdstr N
  224.         print "\r\nbhUse c@NEWFILETIME@b for new file scan "
  225.         yes_no "date/time"
  226.         if_false
  227.             file_ptrs_cfg
  228.             if_false
  229.                 end_cmd
  230.                 end_if
  231.             end_if
  232.         file_new_scan_all
  233.         end_cmd
  234.  
  235.     cmdstr F
  236.         print "\r\nchFind Text in File Descriptions (no wildcards)\r\n"
  237.         file_find_text_all
  238.         end_cmd
  239.  
  240.     cmdstr S
  241.         print "\r\nchSearch for Filename(s)\r\n"
  242.         file_find_name_all
  243.         end_cmd
  244.  
  245.       # Quit back to main menu
  246.     cmdstr Q
  247.         cmd_pop
  248.         end_cmd
  249. end_cmd
  250.  
  251.  
  252. #Download file
  253. cmdstr D
  254.     file_download_batch
  255.     if_true
  256.         end_cmd
  257.         end_if
  258.     print "\r\nEnter the filename or wildcard to download\r\n"
  259.     getfilespec
  260.     if_true
  261.         file_download
  262.         endif
  263.     end_cmd
  264.  
  265. #Upload a file
  266. cmdstr U
  267.     file_select_area
  268.     if_false
  269.         end_cmd
  270.         end_if
  271.     chkfile "..\text\menu\upload.*"
  272.     if_true
  273.         menu upload
  274.                 end_if
  275.     file_upload
  276.     end_cmd
  277.  
  278. #Logoff
  279. cmdstr G
  280.     call logoffbbs
  281.     end_cmd
  282.  
  283. cmdstr BYE
  284.     call logoffbbs
  285.     end_cmd
  286.  
  287. cmdstr GOODBYE
  288.     call logoffbbs
  289.     end_cmd
  290.  
  291. cmdstr OFF
  292.     call logoffbbs
  293.     end_cmd
  294.  
  295. cmdstr LOGOFF
  296.     call logoffbbs
  297.     end_cmd
  298.  
  299. #fall through
  300. end_cmd
  301.  
  302. :logoffbbs
  303. file_download_batch
  304. if_false
  305.     logoff
  306.     endif
  307. return
  308.  
  309. :sendmail
  310. print "\r\nbhSend E-mail to (User name or number): n"
  311. getname 25
  312. compare_str ""
  313. if_true
  314.     return
  315.     end_if
  316. compare_str "SYSOP"
  317. if_true
  318.     setstr "1"
  319.     end_if
  320. no_yes "\r\nAttach a file"
  321. if_false
  322.     mail_send_file
  323. else
  324.     mail_send
  325.     end_if
  326. return
  327.  
  328. :sendnetmail
  329. no_yes "\r\nAttach a file"
  330. if_false
  331.     mail_send_netfile
  332. else
  333.     mail_send_netmail
  334.     end_if
  335. return
  336.  
  337.  
  338. :postmessage
  339. msg_select_area
  340. if_true
  341.     msg_post
  342.     end_if
  343. return
  344.  
  345. ########################### Msg Config Section    ##############################
  346.  
  347. :msg_cfg
  348.  
  349. menu MAINCFG
  350. async
  351. print "\r\nyhCommand: n"
  352. getstrupr 10
  353. logkey
  354.  
  355. cmdkey N
  356.     msg_new_scan_cfg
  357.     return
  358.     end_cmd
  359.  
  360. cmdkey S
  361.     msg_your_scan_cfg
  362.     return
  363.     end_cmd
  364.  
  365. cmdkey P
  366.     msg_ptrs_cfg
  367.     return
  368.     end_cmd
  369.  
  370. cmdkey I
  371.     msg_ptrs_reinit
  372.     return
  373.     end_cmd
  374.  
  375. return
  376.  
  377.  
  378. #end of SIMPLE.SRC
  379.