home *** CD-ROM | disk | FTP | other *** search
/ GEMini Atari / GEMini_Atari_CD-ROM_Walnut_Creek_December_1993.iso / files / bbs / porfido2 / fidomain.hlp < prev    next >
Encoding:
Text File  |  1990-07-14  |  7.1 KB  |  317 lines

  1. script
  2. change_echo:
  3.         close
  4.         printe '&00'
  5.         Clear (screen)
  6.         Clear (table)
  7. if '[echo2]'='' then
  8.         set [echo2]=[echo]
  9.         set [echo3]=[echo]
  10.         set [idxecho2]=[idxecho1]
  11.         set [idxecho3]=[idxecho1]
  12. endif
  13. if '[echo3]'='' then
  14.         set [echo3]=[echo]
  15.         set [idxecho3]=[idxecho1]
  16. endif
  17.  
  18.         printe 'Please wait Loading Index Table.....[pointdat]'
  19. maxmsg=table_load('[txtpath][pointdat]')
  20. Open ('[txtpath][curfile]',input)
  21.         Set [sel]=1
  22. if [curfile]='[echo1][pnt]' then
  23.         [echoname]='[echoname1]
  24. ef [curfile]='[echo2][pnt]' 
  25.         [echoname]='[echoname2]'
  26. ef [curfile]='[echo3][pnt]' 
  27.         [echoname]='[echoname3]'
  28. endif
  29. FIDOMNU:
  30. clear (screen)
  31. printe
  32. printe '&00 Current ECHO is now ----> [echoname]     BANK --> [pnt]'
  33. dump
  34.  
  35.                      Poor Man's Xpress FiDoNet
  36.                ======================================
  37.  
  38.                 {R}ead Forward     {F}rom User Search
  39.  
  40.                 {G}o To Message#   {T}o User Search
  41.  
  42.                 {E}cho Change      {L}ist Titles
  43.                          
  44.                 {N}ext Bank        {P}revious Bank
  45.                 
  46.                ============ Version 2.0 =============
  47. end
  48. printe
  49. printe 'Active Echos -  [Echoname1]    [Echoname2]    [Echoname3] '
  50. printe
  51. printe 'Command Or <Return> To EXIT:'
  52. get_key user_sel
  53. if user_sel='r'
  54.         goto fidordjmp
  55. ef user_sel='f'
  56.         goto fidosfjmp
  57. ef user_sel='t'
  58.         goto fidotojmp
  59. ef user_sel='n'
  60.         goto nextbank
  61. ef user_sel='p'
  62.         goto prevbank
  63. ef user_sel='l'
  64.         goto fidosublist
  65. ef user_sel='g'
  66.         goto fidojmp
  67. ef user_sel='e'
  68.         set [pnt]='001'
  69.         goto switch
  70. ef user_sel=''
  71.         exit
  72. endif
  73. goto fidomnu
  74.  
  75. SWITCH:
  76. if [echo]=[echo1] then
  77.      set [echo]=[echo2]
  78.      set curfile='[echo][pnt]'
  79.      set [idxpnt]='[idxecho2]'
  80.      set pointdat='[idxpnt][pnt]'
  81.      goto change_echo
  82. endif
  83. if [echo]=[echo2] then
  84.      set [echo]=[echo3]
  85.      set curfile='[echo][pnt]'
  86.      set [idxpnt]='[idxecho3]'
  87.      set pointdat='[idxpnt][pnt]'
  88.      goto change_echo
  89. endif
  90. if [echo]=[echo3] then
  91.      set [echo]=[echo1]
  92.      set curfile='[echo][pnt]'
  93.      set [idxpnt]='[idxecho1]'
  94.      set pointdat='[idxpnt][pnt]'
  95.      goto change_echo
  96. endif
  97.  
  98. exit
  99.  
  100. ;
  101. ;                       FIDO READ OPTION 
  102. FIDORDJMP:
  103. set [sel]=1
  104. FIDORD:
  105. clear (screen)
  106. if [sel]>[maxmsg] then
  107.         clear (screen)
  108.         printe 'End of Messages -  <Q>uit'
  109.         get_key user_sel
  110.         goto fidomnu
  111. endif
  112.         table1=table_get([sel])
  113.         fnamef=get_word('[table1]',1)
  114.         lnamef=get_word('[table1]',2)
  115.         fnamet=get_word('[table1]',3)
  116.         lnamet=get_word('[table1]',4)
  117.         msgnum=get_word('[table1]',5)
  118.         table1w=get_word('[table1]',6)
  119.         origin=get_word('[table1]',9)
  120.         point [table1w]
  121. GET_MSG:
  122. [chk]=NOTE
  123. if [chk]<[origin] then
  124.         finput fidotxt
  125.         printe '[fidotxt]'
  126.         goto get_msg
  127. endif
  128. finput fidotxt
  129. printe '[fidotxt]'
  130. printe
  131.  
  132. ENDMSG:
  133.         printe '<A>gain <J>ump <N>ext <P>revious <Q>uit'
  134.         get_key user_sel
  135. if user_sel='q' then
  136.         goto fidomnu
  137. ef user_sel='a' then
  138.         goto fidord
  139. ef user_sel='p' then
  140.         decrease sel 1
  141.         goto fidord
  142. ef user_sel='j' then
  143.         goto fidojmp
  144. endif
  145. if [sel]=0 then
  146.         set [sel]=1
  147. endif
  148. increase sel 1 
  149. goto fidord
  150. ;                       FIDO SEARCH FOR
  151. ;
  152. FIDOSFJMP:
  153. set [sel]=1
  154. Printe
  155. Printe 'Enter Name of User or <Return> to Exit'
  156. Printe 'Search FROM:'
  157. input search 25
  158. if search='' then
  159.         goto fidomnu
  160. endif
  161.  
  162. FIDOSF:
  163.         table1=table_get([sel]) 
  164.         fnamef=get_word('[table1]',1)
  165.         lnamef=get_word('[table1]',2)
  166.         temp=get_word('[table1]',5)
  167.         set fullname1='[fnamef] [lnamef]'
  168. if [search]=[fullname1] then
  169.         printe
  170.         printe 'From:[fullname1]               Msg#[temp]'
  171. endif
  172.         increase [sel] 1
  173. if [sel]=[maxmsg] then
  174.         goto endit
  175. endif
  176. goto fidosf
  177. ;
  178. ;
  179. ;                       FIDO JUMP and GOTO
  180. ;
  181. FIDOJMP:
  182. printe 'Enter Message <#> or <0> to Exit \ High Message is [maxmsg] '
  183. input [sel] 2 noreturn
  184. clear (screen)
  185. if [sel]>[maxmsg] then
  186.         goto fidomnu
  187. ef [sel]=0 then 
  188.         set [sel]=1
  189.         goto fidord
  190. endif
  191.         table1=table_get([sel]) 
  192.         table1w=get_word('[table1]',6)
  193.         origin=get_word('[table1]',9)
  194.         point [table1w]
  195. GRABIT:
  196. [chk]=NOTE
  197. if [chk]<[origin] then
  198.         finput fidotxt
  199.         printe '[fidotxt]'
  200.         goto grabit
  201. endif
  202.         finput fidotxt
  203.         printe '[fidotxt]'
  204.         printe
  205. goto endmsg
  206. ;
  207. ;                       Fido Search TO:
  208. ;
  209. FIDOTOJMP:
  210. set [sel]=1
  211. Printe
  212. Printe 'Enter Name of User or <Return> to Exit'
  213. Printe 'Search TO:?'
  214. input [search] 25
  215. if [search]='' then
  216.         goto fidomnu
  217. endif
  218. FIDOST:
  219.         table1=table_get([sel]) 
  220.         fnamet=get_word('[table1]',3)
  221.         lnamet=get_word('[table1]',4)
  222.         temp=get_word('[table1]',5)
  223.         set fullname1='[fnamet] [lnamet]'
  224.  
  225. if [search]=[fullname1] then
  226.         printe
  227.         printe 'To:[fullname1]               Msg#[temp]'
  228. endif
  229. increase sel 1
  230. if [sel]=[maxmsg]
  231.         goto endit
  232. endif
  233. goto fidost
  234.  
  235. ENDIT:
  236. printe
  237. printe 'End of Search , Press Any Key To Continue'
  238.         get_key user_sel
  239.         goto fidomnu
  240. exit
  241.  
  242. FIDOSUBLIST:
  243.         set [sel]=0
  244. subloop:
  245.         increase [sel] 1
  246. if [sel]>[maxmsg] then
  247.         goto endit
  248. endif
  249.         table1=table_get([sel]) 
  250.         temp=get_word('[table1]',6)
  251.         point [temp]
  252.         finput fidotxt
  253. printe  '[fidotxt]'
  254.         finput fidotxt
  255. printe  '[fidotxt]'
  256.         finput fidotxt
  257. printe  '[fidotxt]'
  258. printe
  259. goto subloop
  260.  
  261. NEXTBANK:
  262. if [pnt]='001' then
  263.         if file_exists('[txtpath][echo]002') then
  264.         set [pnt]='002'
  265.         set [curfile]='[echo][pnt]'
  266.         set [pointdat]='[idxpnt][pnt]'
  267.         GOTO CHANGE_ECHO
  268. endif
  269. if [pnt]='002' then
  270.         if file_exists('[txtpath][echo]003') then
  271.         set [pnt]='003'
  272.         set [curfile]='[echo][pnt]'
  273.         set [pointdat]='[idxpnt][pnt]'
  274.         GOTO CHANGE_ECHO
  275. endif
  276. if [pnt]='003' then
  277.         if file_exists('[txtpath][echo]004') then
  278.         set [pnt]='004'
  279.         set [curfile]='[echo][pnt]'
  280.         set [pointdat]='[idxpnt][pnt]'
  281.         GOTO CHANGE_ECHO
  282. endif
  283. if [pnt]='004' then 
  284.         if file_exists('[txtpath][echo]005') then
  285.         set [pnt]='005'
  286.         set [curfile]='[echo][pnt]'
  287.         set [pointdat]='[idxpnt][pnt]'
  288.         goto CHANGE_ECHO
  289. endif
  290. goto fidomnu
  291.  
  292. PREVBANK:
  293. if [pnt]='005' then
  294.         set [pnt]='004'
  295.         set [curfile]='[echo][pnt]'
  296.         set [pointdat]='[idxpnt][pnt]'
  297.         GOTO CHANGE_ECHO
  298. ef [pnt]='004' 
  299.         set [pnt]='003'
  300.         set [curfile]='[echo][pnt]'
  301.         set [pointdat]='[idxpnt][pnt]'
  302.         GOTO CHANGE_ECHO
  303. ef [pnt]='003' 
  304.         set [pnt]='002'
  305.         set [curfile]='[echo][pnt]'
  306.         set [pointdat]='[idxpnt][pnt]'
  307.         GOTO CHANGE_ECHO
  308. ef [pnt]='002' 
  309.         set [pnt]='001'
  310.         set [curfile]='[echo][pnt]'
  311.         set [pointdat]='[idxpnt][pnt]'
  312.         GOTO CHANGE_ECHO
  313. endif
  314. goto fidomnu
  315.  
  316.