home *** CD-ROM | disk | FTP | other *** search
/ Beijing Paradise BBS Backup / PARADISE.ISO / software / BBSDOORW / PCLPACK.ZIP / NICE.ZIP / MACS.ZIP / MENTER.CTL < prev    next >
Encoding:
Text File  |  1992-09-04  |  5.8 KB  |  211 lines

  1. If (%MSGFNET%)=(Y) Then SetEqual(v=Y)
  2. If (%MSGFNET%)=(Y) Then Goto (nonet)
  3. If (%MSGNET%)=(N) Then Goto (nonet)
  4. Say(      &3&Would you like to send this via NetMail? &9&[   ]&14&*)
  5. Back(4)
  6. YesNoAsk(*)
  7. SetEqual(v=%RESP%)
  8.         
  9.   *nonet
  10. NotIf (%GRAPHICS%)=(ANSI) Then Goto (STMESSG)
  11. SetMode(Line)
  12. Say(&CR&&3& Would you like to use the &11&full-screen&3& editor? &9&[   ]&14&*)
  13. Back(4)
  14. YesNoAsk(*)
  15. If (%RESP%)=(Yes) Then SetMode(full)
  16.  
  17.   *stmessg
  18. If (%FULL%)=(Yes) Then Goto (fmode)
  19. Say(&CR&&14&You can start typing in your message now.  When you're finished with)
  20. Say(the message, press (&11&ENTER&14&) on a blank line.&CR&&CR&&3&    (--------/---------/---------/---------/---------/---------/---------/----))
  21. NotIf (&k)=(20) Then inittxt
  22. If (&k)=(20) Then setmax(%var%p) ;If editing existing msg, set maxline to max in that msg
  23. If (&k)=(20) Then Goto (stedit)
  24. GetText(15,7,1,99)
  25.  
  26.   *ent
  27. NotIf (&z)=(15) Then display (display\ENTER)
  28. If (&z)=(15) Then display(display\REPLY)
  29. Say(&3&What would you like to do with the message?&12&: &15&*)
  30. MenuKey
  31. BigNiceSay (t:Throw Away,s:Save,e:Edit,a:Add,L:List,c:Change,m:Modify,d:Delete Line,h:help)
  32. If (&z)=(15) Then bignicesay(q:Quote)
  33. If (&k)=(30) Then BigIf (m:modi,c:modi)
  34. BigIf (t:abort,s:save,e:edit,L:list,a:add,m:mod,d:del,h:help)
  35. NotIf(&z)=(15) Then BigIf(c:chg)  ;If entering a new msg, let them change user to send to
  36. If (&z)=(15) Then BigIf(q:quote)  ;If replying let them quote...
  37. Say(&CR&&12&Invalid selection ... Please try again.&CR&)
  38. FlushOut
  39. Goto (ent)
  40.   *modi
  41. Say(&CR&%hRed%Option not available in Comment.&CR&)
  42. Goto (ent)
  43.  
  44.   *help
  45. NotIf (&z)=(15) Then display(display\help\enter,/:SEC/)
  46. If (&z)=(15) Then display(display\help\reply,/:SEC/)
  47. Goto (ent)
  48.  
  49.   *Quote
  50. linefeed(1)
  51. lView(quote.%NODE%,11,3)
  52. cMenuAsk %CRON% (&CR&&3&Enter the first line of the message you want to quote&12&: &15&*)
  53. SetEqual(s=%RESP%)
  54. If (%RESP%)=(<CR>) Then SetEqual(s=1)
  55. cMenuAsk %CRON% (&3&Enter the last line of the message to quote&12&: &15&*)
  56. SetEqual(t=%RESP%)
  57. If (%RESP%)=(<CR>) Then SetEqual(t=%var%s)
  58. Import (quote.%NODE%,=> ,%var%s,%var%t)  ;import text from quote.%NODE% tmp file
  59. Goto (add)
  60. *netImp
  61.  
  62.   *del
  63. showtxtl(11,3)
  64. cMenuAsk (&CR& &3&Please enter the first line to delete&12&: &15&*)
  65. Number(%RESP%)
  66. IfNotTrue (Goto (invn))
  67. cmpval(%RESP%,%MAXLINE%)
  68. IfNotTrue (NotIf (%RESP%)=(%MAXLINE%) Then Goto (invn))
  69. SetEqual(e=%RESP%)
  70. Say(&CR&&10&If you only want to delete one line, press (&11&ENTER&10&) here.)
  71. cMenuAsk %CRON% (&3&  Please enter the last line to delete&12&: &15&*)
  72. SetEqual(g=%RESP%)
  73. If (&g)=(<CR>) Then SetEqual(g=%var%e)
  74. DelLines(%var%e,%var%g)
  75. If (%ARESP%)=(ERROR) Then Goto (invn)
  76. Say(&CR&&11&Lines %var%e to %var%G have been deleted.)
  77. Goto (ent)
  78.  
  79.   *chg
  80. Say(&CR&  &3&Who do you want us to send the message to?&12&:&11&(                    )&15&*)
  81. Back(21)
  82. SetFill(%var%a)
  83. cMenuAsk(*)
  84. SetEqual(a=%RESP%)
  85. SeekUser(%RESP%)
  86. SetEqual(c=%NDNUMB%)
  87. SetEqual(d=2)
  88. If (%ARESP%)=(No) Then Goto (notfound)
  89. Goto (ent)
  90.  
  91.   *mod
  92. Say(&CR&&3&                 What is this message about?&12&:&11&(                    )&15&*)
  93. Back(21)
  94. SetFill(%var%b)
  95. cAsk%LEN20%(*)
  96. SetEqual(b=%RESP%)
  97. Goto (ent)
  98.  
  99.   *edit
  100. If (%FULL%)=(Yes) Then Goto (add)
  101. cMenuAsk (&CR&&3&Which line would you like to edit?&12&: &15&*)
  102. Number(%RESP%)
  103. IfNotTrue (Goto (invn))
  104. If (%RESP%)=(%MAXLINE%) Then Goto (goedit)
  105. linefeed(1)
  106. cmpval(%RESP%,%MAXLINE%)
  107. If (%ARESP%)=(No) Then Goto (Invn)
  108.  
  109.   *goedit
  110. SetEqual(h=%MAXLINE%)
  111. gettext(15,7,%RESP%,%RESP%)
  112. setmax(%var%h)
  113. Goto (ent)
  114.  
  115.   *invn
  116. Say(&14&That line number doesn't exist in this message.  &11&Try again, please.&CR&)
  117. Goto (ent)
  118.  
  119.   *add
  120. If (%FULL%)=(Yes) Then Goto (fmode)
  121. Say(&CR&&14&You may now continue your message.  Press (&11&ENTER&14&) to end the message.&CR&)
  122. showtxt2(15,7)
  123. gettext(15,7,%MAXLINE%,99)
  124. delextra
  125. Goto (ent)
  126.         
  127.   *save
  128. SetEqual(x=)
  129. If (&k)=(No) Then Goto (stsave)
  130. If (&v)=(Yes) Then Goto (stsave)
  131. If (&q)=(10) Then Goto (stsave)
  132. Say(&CR&&3&Would you like to attach a file to this message? &9&[   ]&14&*)
  133. Back(4)
  134. YesNoAsk(*)
  135. If (%RESP%)=(No) Then Goto (stsave1)
  136. loadsub(control\EnterAtt.ctl)
  137.  
  138.   *stsave
  139. InpLine(varr.%NODE%,1)
  140. SetEqual(r=%ARESP%)
  141.  
  142.   *stsave1
  143. Say(&CR&&11&Saving your message, please wait...*)
  144. if (%Msgfpvt%)=(Y) then setequal(k=Y)
  145. if (&z)=(15) then kill(quote.%node%)
  146. NotIf (&z)=(15) Then writemsg(/:LASTMSG/,%var%a,%NAME%,%var%b,%var%c,%var%k,0,%var%v,%var%x)
  147. If (&z)=(15) Then writemsg(/:LASTMSG/,%var%a,%NAME%,%var%b,%var%c,%var%k,%var%y,%var%v,%var%x)
  148. himsg(/:LASTMSG/)
  149. notif (&z)=(15) then log(--,Message (%ARESP%) entered in area #/:LASTMSG/)
  150. if (&z)=(15) then log (--,Reply (%aresp%) to #%var%y entered in area #/:lastmsg/)
  151. if (&z)=(15) then himsg(/:lastmsg/)
  152. If (&z)=(15) Then SetEqual(f=%ARESP%)
  153. If (&z)=(15) Then lowmsg(/:LASTMSG/)
  154. If (&z)=(15) Then SetEqual(n=%ARESP%)
  155. NotIf (&k)=(20) Then Goto (smsg)
  156. himsg(/:LASTMSG/)
  157. redo (/:LASTMSG/,%var%q,%ARESP%)
  158.  
  159.   *smsg
  160. Say(Saved!)
  161. Goto (abt)
  162.         
  163.   *list
  164. linefeed(1)
  165. showtxtl(11,3) ;showtxtL is the same as showtxt except shows line numbers...
  166. linefeed(1)
  167. enter
  168. Goto (ent)
  169.  
  170.   *abort
  171. Say(&CR&&12&Your message has been thrown away.)
  172.  
  173.   *abt
  174. inittxt
  175. SetMode(reg)
  176. return
  177.  
  178.   *notfound
  179. eline(70)
  180. SetEqual(c=0)
  181. Say(Their name couldn't be found.  )
  182. Say(    &3&Would you like to send the message anyway? &9&[   ]&14&*)
  183. Back(4)
  184. YesNoAsk(*)
  185. If (%RESP%)=(No) Then Goto (abt)
  186. Goto (ent)
  187.         
  188.   *stedit
  189. showtxt2(15,7) ;same as showtxtL except doesnt show last line #...
  190. gettext(15,7,%var%p,99)
  191. Goto (ent)
  192.  
  193.   *notenufs
  194. display(display\nospce)
  195. Goto (stsave)
  196.         
  197.   *aborted
  198. SetEqual(x=)
  199. FlushOut
  200. Log(--,Attach upload aborted (%var%x))
  201. Display(display\attabt)
  202. Goto (stsave)
  203.         
  204.   *alreadyhere
  205. Display (display\HERENOW)
  206. Goto (pok)
  207.  
  208.   *fmode
  209. LoadSub(control\macros\fulledit.ctl)
  210. Goto (ent)
  211.