home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 380 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1.8 KB  |  90 lines

  1. Path: inferno.mpx.com.au!jolt!nring
  2. From: nring@jolt.mpx.com.au (Nick Ring)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: Help with AREXX problem.
  5. Date: 5 Jan 1996 18:24:55 GMT
  6. Organization: Microplex Pty Ltd
  7. Message-ID: <4cjqdn$l0n@inferno.mpx.com.au>
  8. References: <4cj36d$v5v@gidora.kralizec.net.au>
  9. NNTP-Posting-Host: jolt.mpx.com.au
  10. X-Newsreader: TIN [version 1.2 PL2]
  11.  
  12. Andrew Bruno (abruno@godzilla.zeta.org.au) wrote:
  13. : Help! 
  14. : Here is two little scripts I wrote for a program/H/W device called 
  15. : airlink that I
  16. : have.
  17. :  
  18. : Below is a list of a test script I put together to see where I could 
  19. : position the
  20. : transmitter.....
  21. :  
  22. : IT WORKS!
  23. :  
  24. : /* Sanyo test script for AirLink */
  25. : loop:
  26. : j = 0
  27. : do while j < 1000
  28. :     j = j+1
  29. : end
  30. : say 'beep'    /* this should be a &h07, but the editor doesn't like 
  31. : that */
  32.  
  33. try-
  34. say '07'x 
  35.  
  36. : address national
  37. : 'output ir<power>'
  38. : signal loop
  39. : /* the end */
  40. :  
  41.  
  42. : Now I wanted to write a program so I can execute functions from other 
  43. : programs,
  44. : and wrote this as a "macro" kind of thing.....
  45. :  
  46.  
  47. : /*   Arexx script for use with Scala and Airlink.   */
  48. :  
  49. : options results
  50. : PARSE ARG blah1" "blah2
  51. :  
  52. : say blah1
  53. : say blah2
  54. :  
  55. : address blah1
  56.  
  57. This will change the host to 'BLAH1'. To use the host stored in the 
  58. variable 'blah1' use the command 'address VALUE blah1'.
  59.  
  60. : 'output ir<'blah2'>'
  61. :  
  62. : exit
  63. :  
  64. : /*  the end  */
  65. :  
  66.  
  67. : I think you can see what I am wanting to do here....  It is rather simple.
  68. :  
  69. : IT DOESN'T WORK!
  70. :  
  71. : Yes, the host environment is there.
  72. :  
  73. : I can even run the top script, stop it and run the lower one and it 
  74. : doesn't work.
  75. :  
  76. : The lines say blah1 and say blah2 are only so I could check it was 
  77. : being accepted
  78. : correctly.
  79. :  
  80.  
  81. : Any ideas?
  82. :  
  83. : Andrew
  84.  
  85. : (p.s.  As I am not always here to read the replies, could you reply 
  86. : direct to me?)
  87.  
  88. : TIA
  89.  
  90.