home *** CD-ROM | disk | FTP | other *** search
/ Freelog 39 / Freelog039.iso / Bas / Systeme / Mediamat / Mediadat / BatchHelp.txt < prev    next >
Text File  |  1999-10-30  |  6KB  |  199 lines

  1. Batchfile-Help
  2. ==============
  3. The batchfile system of the Mediamat makes it possible to run
  4. more than one command by clicking the start and/or user keys.
  5. This is helpfull i.e. if you want to unzip a file in a folder
  6. that does not exist. So you can create it and to start the 
  7. unzip program with the file to enlarge. And maybe if there are
  8. a diskerror you can remove the new created folder from the
  9. harddisk.
  10. The batchfile which is called "Batch.txt" can be opend from
  11. the Mediamat by clicking the button "batchfile" in the edit
  12. window. The batchfile is subdevided into modules. Each module has
  13. his own name which is set in brackets like [module name].
  14. To run a batchfile module you have to entry the module name in the
  15. edit window in one of the three application lines. The format is
  16. "batch/(module name)".
  17. In the follow lines you see a list of all batchfile commands with
  18. descriptions and examples. The pathes to the files to open can be
  19. absolute (with ASD) or relative. An absolute path must begin with a
  20. drive letter (like c:\...) and a relative path with a backslash
  21. (like \...).
  22.  
  23. Command: ascii (#)
  24. Descrip: to send an ASCII-Keycode (#) to the active window
  25. Example: ascii 13
  26.  
  27. Command: beep
  28. Descrip: to make a signal
  29. Example: beep
  30.  
  31. Command: clipin (text)
  32. Descrip: to copy a text into the clipboard
  33.          clipout to read a text from the clipboard
  34. Example: clipin \games\
  35.          dir clipout
  36.  
  37. Command: confpath (path)
  38. Descrip: to load an other Mediamat configuration
  39. Example: confpath \sample\
  40.  
  41. Command: copy (path) to (path)
  42. Descrip: to copy a file
  43. Example: copy \systemfiles\any.dll to c:\windows\system\any.dll
  44.  
  45. Command: dir (path)
  46. Descrip: to view a folder (does not work with empty folders)
  47. Example: dir \games\
  48.  
  49. Command: errbatch (module name)
  50. Descrip: on error goto (batch module)
  51. Example: errbatch error handler
  52.  
  53. Command: errexit
  54. Descrip: on error exit batch module
  55. Example: errexit
  56.  
  57. Command: errignore
  58. Descrip: on error resume at the next line
  59. Example: errignore
  60.  
  61. Command: errmessage
  62. Descrip: on error show error message and exit batch module
  63. Example: errmessage
  64.  
  65. Command: errrepeat (n)
  66. Descrip: on error repeat batch moduls for n-times
  67.          in combination errbatch: on error after repeat goto...
  68. Example: errrepeat 2
  69.      or: errrepeat 1
  70.        : errbatch error handler
  71.  
  72. Command: file(address)
  73. Descrip: to open a html file in the standard browser
  74. Example: file:///C|/own files/votesite.html
  75.  
  76. Command: GoFalseWin (WinTitle),(Max.Time)
  77. Descrip: waits until a window with title (WinTitle) disappears, but only for (Max.Time) seconds
  78. Example: GoFalseWin Connect*,5
  79.  
  80. Command: goto (module name)
  81. Descrip: to jump to an other module
  82. Example: goto undo chess installation
  83.  
  84. Command: GoTrueWin (WinTitle),(Max.Time)
  85. Descrip: waits until a window with title (WinTitle) exists, but only for (Max.Time) seconds
  86. Example: GoTrueWin Connect*,5
  87.  
  88. Command: hide
  89. Descrip: to hide the Mediamat in the systray
  90. Example: hide
  91.  
  92. Command: http(address)
  93. Descrip: to open an url in the standard browser
  94. Example: http://www.elmshorn.netsurf.de/~d.schaefer/
  95.  
  96. Command: kill
  97. Descrip: to remove a file or empty folder
  98. Example: kill \games\chess.exe
  99.      or: kill \games\store
  100.  
  101. Command: mailto(address)
  102. Descrip: to open the standard mail program
  103. Example: mailto: schaefer.de@t-online.de
  104.  
  105. Command: makedir (path)
  106. Descrip: to create a folder
  107. Example: makedir \games\store
  108.  
  109. Command: message (text)
  110. Descrip: to give out a message in the message requester
  111. Example: message Ready!
  112.  
  113. Command: midplay (filename)
  114. Descrip: plays a midifile
  115. Example: midplay \sample\midi.mid
  116.  
  117. Command: midstop
  118. Descrip: stops a running midi song
  119. Example: midstop
  120.  
  121. Command: minimize
  122. Descrip: to minimize the Mediamat window
  123. Example: minimize
  124.  
  125. Command: move (path) to (path)
  126. Descrip: to move a file
  127. Example: move \games\lastgame.dat to \games\store\game990720.dat
  128.  
  129. Command: news(address)
  130. Descrip: to open the standard news reader
  131. Example: news://news.test.com/
  132.  
  133. Command: open (path)
  134. Descrip: to open a file (with the standard viewer/editor)
  135. Example: open c:\games\chess\chess.exe
  136.      or: open \tools\cleaner.exe
  137.      or: open \games\cards.bmp
  138.      or: open http://www.elmshorn.netsurf.de/~d.schaefer/
  139.  
  140. Command: question (text)
  141. Descrip: to ask the user to exit the batch module
  142. Example: question Continue?
  143.  
  144. Command: qui?
  145. Descrip: to ask the user to quit the Mediamat
  146. Example: qui?
  147.  
  148. Command: quit
  149. Descrip: to quit the Mediamat without asking the user
  150. Example: quit
  151.  
  152. Command: rename (path) as (path)
  153. Descrip: to rename a file or folder
  154. Example: rename \games\chess.dat as \games\chess.bak
  155.  
  156. Command: text (text)
  157. Descrip: to send a text string to the active window
  158. Example: text Hello user!
  159.  
  160. Command: vdef (title) pre (input text)
  161. Descrip: to show an input requester
  162.          "title" for the window title text
  163.          "pre" for a preset in the input line
  164.          the keyword "pre" is required but can be left blank
  165.          the user input will be stored in "result"
  166. Example: vdef Please set path! pre \games\
  167.          open result
  168.      or: vdef Your input please! pre
  169.          copy \games\chess.exe to result
  170.  
  171. Command: wait (sec)
  172. Descrip: Pause for (sec) seconds
  173. Example: wait 5
  174.  
  175. Command: wavplay (filename)
  176. Descrip: plays a wavefile
  177. Example: wavplay \sample\wave.wav
  178.  
  179. Command: wavstop
  180. Descrip: stops a running wave song
  181. Example: wavstop
  182.  
  183. Command: with (path)
  184. Descrip: to open a defined application for the follow command
  185. Example: with c:\programs\Internet Explorer\IEXPLORE.EXE
  186.          open http://www.elmshorn.netsurf.de/~d.schaefer/
  187.  
  188. [sample]
  189. errrepeat 2
  190. errbatch error handler 1
  191. clipin \temp
  192. makedir clipout
  193. copy \games\chess.exe to clipout
  194.  
  195. [error handler 1]
  196. errrepeat 1
  197. question Error! Should the created folder removed from harddisk?
  198. kill clipout
  199.