home *** CD-ROM | disk | FTP | other *** search
/ PSION CD 2 / PsionCDVol2.iso / Programs / 377 / BACKLITE.SIS / BLMacros.hlp (.txt) < prev    next >
Encoding:
EPOC Database  |  1998-10-28  |  19.4 KB  |  339 lines

  1. "DATA.app
  2. Table1
  3. ColA10
  4. ColB10
  5. ColA15
  6. ColB15
  7. ColA16
  8. ColB16
  9. ColA64
  10. ColB64
  11. ColA65
  12. ColB65
  13. ColA66
  14. ColB66
  15. ColA67
  16. Index1
  17. ColA67
  18. ColA66
  19. BLMessage
  20. BLPasteTex
  21. BLSaveSett
  22. BLSelectCu
  23. BLSelectLa
  24. BlSelectLi
  25. BLSelectNe
  26. BLSwitchto
  27. BLSwitchto
  28. BLSwitchto
  29. BLSwitchto
  30. BLSwitchto
  31. BLSwitchto
  32. BLSwitchto
  33. BLSwitchto
  34. BLSwitchto
  35. BLSwitchto
  36. BLTasklist
  37. BLTypeText
  38. BLUnHideBa
  39. BLWait
  40. BLWaitForF
  41. BLWaitforO
  42. BLSwitchto
  43. BLSwitchto
  44. BLLoadSett
  45. Backlite+P
  46. BLAddStick
  47. BLAppMenu
  48. BLAskforTi
  49. BLBackgrou
  50. BLBacklite
  51. BLBacklite
  52. BLClickCAN
  53. BLClickOK
  54. BLClipText
  55. BlCopy$
  56. BLCopyClip
  57. BLCurrentS
  58. BLCursorDo
  59. BLCursorLe
  60. BLCursorRi
  61. BLCursorUp
  62. BLCycleAPP
  63. BLForegrou
  64. BLHideBack
  65. BLIsCurren
  66. BLKeyComma
  67. BLLoadSett
  68. BLLoadSett
  69. BLLoadSett
  70. 6ASends the document/application that currently has focus to the background of all other tasks.
  71. The Switchto command by default does not bring the application/document to the foreground when launching it. This allows a macro to switchto a file, manipulate and and exit the file without the user seeing anything.
  72. APauses execution until the user presses the ENTER
  73. key. 
  74. This is a useful command when you need to display a dialog (like the battery dialog) with a hotkey, and then find out when or if the user pressed ENTER to close the dialog.
  75. NOTE: Execution will not continue until the user presses the OK key. BacklitePlus appears to hang if the user attempts to switch back to it. Pressing RETURN at any time continues execution of the macro.
  76. ABrings Backlite+Plus to the foreground.
  77. Use this in conjuction with the BLHideBacklite command to hide all of the application windows (and Sticky notes). This then allows you to use dialog, and other user interaction routines without the Backlite+Plus screens being visible, eg:-
  78. PROC macHelloWorld:
  79.     BLHideBacklite:
  80.     BLBacklitetoFront:
  81.     GIPRINT "Hello World"
  82.     BLBacklitetoBack:
  83.     BLUnhideBacklite:
  84. Arial
  85. Arial
  86. Arial
  87. Arial
  88. Arial
  89. Arial
  90. Arial
  91. AReturns a string variable containing a setting stored under the name SettingName$ within the Backlite+Plus ini file. All settings are stored as strings so conversion is required for integers and other number based formats, eg:-
  92. TurnOn%=val(BLLoadSetting$:("TurnON"))
  93. ith the add-on macro recorder).
  94. xAThis command allows saves a setting to the BacklitePlus.ini file. INI file settings are stored as strings, so the value should be converted using the OPL Num$ command first. eg:
  95. BLSaveSetting:("UserName","John Smith")
  96. BLSaveSetting:("HideWin",num$(Hidewin%,1))
  97. The num$ command has two parameters, a number variable to convert, and a length of characters to convert it to.
  98. OAInserts the string Text$ into the application/document that has focus by copying it first to the clipboard. This makes it appear much faster than the BLTypeText command which inserts each character at a time. However, you can't use this command to insert dates/times into dialogs. BLTypetext is best used for that type of application.
  99. BSends a key command to the current application. The key$ is broken into a modifer and a command key.
  100. Modifiers allowed are FN, SHIFT,CTRL or any combination of the three, seperated with "+" signs.
  101. Key commands can be any alphanumeric character, or UP,DOWN,LEFT,RIGHT for cursor keys, ENTER, TAB,SPACE,ESC,DEL,MENU for other special keys. eg:-
  102.     BLKeyCommand:("CTRL+C")
  103.     BLKeyCommand:("CTRL+SHIFT+C")
  104.     BLKeyCommand:("CTRL+ENTER")
  105.     BLKeyCommand:("MENU")
  106.     BLKeyCommand:("FN+RIGHT")
  107. Any commands that are not recognised will be reported when you run the Macro for the first time.
  108. Note: BLClickOK,BLAppMenu and BLClickCancel are all shortcut commands to the ENTER,MENU and ESC commands available with KeyCommand
  109. AReturns a 1 or 0 to indiciate wether the application/document specified as appname$ is currently in the foreground. Use this when you have application specific Macros that should not be run from any other app/document. TIP You can use this command to assign the SAME hotkey to several Macros, all of which perform a different function depending on the application or document you have loaded.
  110. kAHides all Backlite+Plus windows including Toolbars and Stickynotes. This command can be used when you need to display messages, dialogs or allow user interaction. Use this in combination with the BLBacklitetoFront . You must remember to use the BlUnhideBacklite command after you send BacklitePlus to the background otherwise the program will appear "invisible".
  111. 7ABrings the document/application that currently has focus to the foreground of all other tasks.
  112. The Switchto command by default does not bring the application/document to the foreground when launching it. This allows a macro to switchto a file, manipulate and and exit the file without the user seeing anything.
  113. >c:\Help-017Temp
  114. Table1C
  115. .Description
  116. 2Program name
  117. "Keywords
  118. "See Also
  119. Usage
  120. Title
  121. Order
  122. Arial
  123. Times New Roman
  124. Arial
  125. Arial
  126. Arial
  127. xAReturns a string (up to 255 characters in length) containing the current clipboard text. This can be used in combination with the CTRL+C Keycommand, to access the clipboard. It is useful to add an element of authentication to make sure for example that the user has hilighted some text, or is on an Agenda entry (Agenda entries are contained as text in the Cliptext$ string).
  128. PASends Backlite+Plus to the background of the currently running tasks. If this command has been used after a BLHideBacklite command then you must use BLUnHideBacklite to restore all windows and Sticky notes, eg:-
  129. PROC macHelloWorld:
  130.     BLHideBacklite:
  131.     BLBacklitetoFront:
  132.     GIPRINT "Hello World"
  133.     BLBacklitetoBack:
  134.     BLUnhideBacklite:
  135. Arial
  136. Arial
  137. Arial
  138. Arial
  139. Arial
  140. Arial
  141. .AInvokes the Add sticky command and displays the new entry dialog. if BL is in the foreground, then this would behave no differently than the normal ENTER hotkey. If however, this command is run whilst BL is in the background, then the new Sticky dialog appears over the top of the running application.
  142. gCSwitches the focus of macro commands to the document or application specified as file$.
  143. If BlSwitchto is used, the application or document is brought to the foreground. If BLbg Switchto is used, the app/doc is kept or sent to the background. 
  144. If file$ is not running, it is opened automatically.
  145. File$ can be a path to a document, a path to an application file (with an APP extension) or a single name of a registered application (such as "Word" or "Sheet".
  146. Examples:-
  147. BLSwitchto:("Word") 
  148. BLBgSwitchto:("c:\Jotter") 
  149. BLSwitchto:("c:\system\apps\Psizip\Psizip.APP") 
  150. In addition to this command, you can use the in-built shortcuts to access the main Series 5 applications:-
  151. BL(bg)SwitchtoSystem:, BL(bg)SwitchtoAgenda:, BL(bg)SwitchtoData:, BL(bg)SwitchtoSheet:, BL(bg)SwitchtoRecord:, BL(bg)SwitchtoWeb:, BL(bg)SwitchtoEmail:, BL(bg)SwitchtoSketch:,BL(bg)SwitchtoCalc:
  152. Arial
  153. Arial
  154. Courier
  155. Arial
  156. Arial
  157. Arial
  158. Arial
  159. Arial
  160. AUse this to send a quick status message (the GIPRINT command in OPL). text$ is a string to show.
  161. This command allows you to show quick messages like "LINK
  162. ON" to the user whether Backlite+Plus is in the foreground or background. The message lasts about 1/2 second, and then disapears.
  163. FAHalts execution of any futher Macro commands until the current application or document that has the focus is exited.
  164. Example:-
  165. BLSwitchto:("Help.dbf")
  166. BLWaitforFileExit:
  167. This is used in the Shortcut macro within the macShortcutSettings procedure to wait for the user to edit and exit the shortcut database, before continuing.
  168. AThis is a single command that copies the selected text to the clipboard and returns it as a string.
  169. This is useful when you want to do string manipuation in a macro without copying first.
  170. Example:-
  171. PROC macUpper:
  172.   BLSwitchtoCurrent:
  173.   BLPasteText$:(UPPER$(BLCopy$:))
  174. Message,Status,GIPRINT
  175. BLMessage:(text$)    BLMessaged
  176. Courier
  177. Wait,pause,freeze
  178. BLWaitforFiletoExit:(Message$)
  179. BLWaitForFileExitd
  180. Welcom to the Backlite+Plus macro language database. This database details all of the current BL+ macro commands with syntax, explanation and some examples.
  181. Command listing
  182. Backlite+Plus Macros
  183. Arial
  184. Arial
  185. Arial
  186. Arial
  187. cADisplays the menu of the application or document that has focus.
  188. BlSwitchto
  189. BLAppMenu:    BLAppMenud
  190. Displays a dialog asking for a time. Returns a string in the format: "HHMMSS". This string can then be "typed" into a dialog with BLTypeText:
  191. BLAskforTime$:(Title$,Prompt$)
  192. BLAskforTimed
  193. %background,foreground,order,priority
  194. BLForeground,Switchto
  195. BLBackground:
  196. BLBackgroundd
  197. back,priority,order,backlite
  198. BLBacklitetoBack
  199. BLBacklitetoFront:
  200. BLBacklitetoFrontd
  201. BLBacklitetoFront
  202. BLBacklitetoBack:
  203. BLBacklitetoBackd
  204. This command sends an ESC keypress to the application/document that has the focus. Use it to press a Cancel button on a dialog, or to send an ESCAPE character (27)
  205. U    BLClickOK
  206. BLClickCANCEL:
  207. BLClickCANCELd
  208. This command sends an ENTER keypress to the application/document that has the focus. Use it to press on OK button on a dialog, or to send an carriage return code (13).
  209. BLClickCancel
  210. BLClickOK:    BLClickOKd
  211. Keycommand
  212. BLClipText$
  213. BLClipTextd
  214. c5Copies the text specified in text$ to the clipboard.
  215. ClipText
  216. BLCopyClip:(text$)
  217. BLCopyClipd
  218. Returns a string containg the body text from the currently highlighted Sticky note in Backlite+Plus.
  219. The string is up to 255 characters in length and will contain any special characters (tabs, carriage returns etc) that the sticky note contains.
  220. BLCurrentStickyText$:
  221. BLCurrentStickyTextd
  222. Sends a cursor down command to the application/document that has focus n% number of times. BLCursorDown:(1) sends one keypress, and increasing n% will send multiple keypresses in a single command.
  223. %BlCursorUp,BLCursorLeft,BLCursorRight
  224. BLCursorDown:(n%)
  225. BLCursorDownd
  226. Sends a cursor left command to the application/document that has focus n% number of times. BLCursorLeft:(1) sends one keypress, and increasing n% will send multiple keypresses in a single command.
  227. %BLCursorRight,BLCursorUp,BLCursorDown
  228. BLCursorLeft:(n%)
  229. BLCursorLeftd
  230. Sends a cursor right command to the application/document that has focus n% number of times. BLCursorRight:(1) sends one keypress, and increasing n% will send multiple keypresses in a single command.
  231. $BLCursorLeft,BLCursorUp,BLCursorDown
  232. BLCursorRight:(n%)
  233. BLCursorRightd
  234. Sends a cursor Up command to the application/document that has focus n% number of times. BLCursorUp:(1) sends one keypress, and increasing n% will send multiple keypresses in a single command.
  235. 'BLCursorLeft,BLCursorRight,BLCursorDown
  236. BLCursorUp:(n%)
  237. BLCursorUpd
  238. This is an internal Backlite+Plus command that invokes Cycles through currently running tasks. This can be assigned to a Hotkey within the Hotkey settings dialog.
  239. BLCycleAPPS:
  240. BLCycleAPPSd
  241. BLBackground,Switchto
  242. BLForeground:
  243. BLForegroundd
  244. BLUnHideBacklite
  245. BLHideBacklite:
  246. BLHideBacklited
  247. BLIsCurrentAPP%:(appname$)
  248. BLIsCurrentAPPd
  249. Arial
  250. !BLClickOK,BLClickCancel,BLAppMenu
  251. BLKeyCommand:(key$)
  252. BLKeyCommandd
  253. BLSaveSetting
  254. BLLoadSetting$:(SettingName$)
  255. BLLoadSettingd
  256. BLTypeText
  257. BLPasteText:(Text$)
  258. BLPasteTextd
  259. Arial
  260. Arial
  261. LoadSetting,Num$(OPL Manual)#BLSaveSetting:(SettingName$,Value$)
  262. BLSaveSettingd
  263. This command hilights the current word (where the cursor is located) in an edit box in the application/document that has focus.
  264. Select,Word,Highlight
  265. U.BLSelectNextWord,BLSelectLastWord,BLSelectLine
  266. BLSelectCurrentWord:
  267. BLSelectCurrentWordd
  268. This command hilights the last word (the word preceeding the current word in a sentence) in an edit box in the application/document that has focus.
  269. Select,Word,Highlight
  270. U1BlSelectNextWord,BLSelectCurrentWord,BLSelectLine
  271. BLSelectLastWord:
  272. BLSelectLastWordd
  273. This command hilights the current line (where the cursor is located) in an edit box in the application/document that has focus.
  274. U2BlSelectNextWord,BLSelectLastWord,BLSelectCurrentW
  275. BlSelectLine:
  276. BlSelectLined
  277. This command hilights the next word (the word following the current word in
  278.  a sentence) in an edit box in the application/document that has focus.
  279. U1BlSelectLastWord,BLSelectCurrentWord,BLSelectLine
  280. BLSelectNextWord:
  281. BLSelectNextWordd
  282. 'BLSwitchto:(file$) / BLSwitchto:(file$)
  283. BLSwitchto / BLbgSwitchtod
  284. c\Switchs the focus of macro commands to the application that is currently in the foreground.
  285. BLSwitchto
  286. BLSwitchtoCurrent:
  287. BLSwitchtoCurrentd
  288. c;Switches the focus of macro commands to the System screen.
  289. BLSwitchtoSystem:
  290. BLSwitchtoSystem
  291. c]Switches the focus of macro commands to Agenda, loading it if necessary (with the last file)
  292. BLSwitchtoAgenda:
  293. BLSwitchtoAgendad
  294. c[Switches the focus of macro commands to Data, loading it if necessary (with the last file)
  295. BLSwitchtoData:
  296. BLSwitchtoDatad
  297. c[Switches the focus of macro commands to Word, loading it if necessary (with the last file)
  298. BLSwitchtoWord:
  299. BLSwitchtoWordd
  300. c\Switches the focus of macro commands to Sheet, loading it if necessary (with the last file)
  301. BLSwitchtoSheet:
  302. BLSwitchtoSheetd
  303. c.Switches the focus of macro commands to Calc.
  304. BLSwitchtoCalc:
  305. BLSwitchtoCalcd
  306. c]Switches the focus of macro commands to Sketch, loading it if necessary (with the last file)
  307. BLSwitchtoSketch:
  308. BLSwitchtoSketchd
  309. Switches the focus of macro commands to Email.
  310. NB. The "real" name for the Psion Email application s "Message". If you use the Switchto:(name$, use must specify the application name as "Message"
  311. BLSwitchtoEmail:
  312. BLSwitchtoEmaild
  313. c1Switches the focus of macro commands to Browser.
  314. BLSwitchtoWeb:
  315. BLSwitchtoWebd
  316. c>Displays the current tasklist of open documents/applications.
  317. BLTasklist:
  318. BLTasklistd
  319. Inserst the string Text$ into the application or document that has the focus, character by character. This is slower that BLPasteText but can be used in dialogs where you want to paste single characters.
  320. BlPasteText
  321. BLTypeText:(Text$)
  322. BLTypeTextd
  323. {Restores all Backlite+Plus windows (including toolbars and sticky notes) that were hidden with the BLHideBacklite command.
  324. BLHideBacklite
  325. BLUnHideBacklite:
  326. BLUnHideBacklited
  327.     BLClickOK
  328. BLWaitforOK:
  329. BLWaitforOKd
  330. cRWaits for a the number of seconds specified in secs% before continuing execution.
  331. BLWait:(secs%)
  332. BLWaitd
  333. BLAddSticky:
  334. BLAddSticky:d
  335. Courier
  336. Courier
  337. BLCopy$:
  338. BlCopy$d
  339.