home *** CD-ROM | disk | FTP | other *** search
/ Archive Magazine 1996 / ARCHIVE_96.iso / discs / mag_discs / volume_8 / issue_04 / pocketbook / kmac091 / KMAC.DBF (.txt) < prev    next >
Psion Database  |  1994-04-25  |  9KB  |  80 lines

  1. OPLDatabaseFile
  2. ROM::BJ.WDR
  3. Letter
  4. Letter:
  5. Syntax:
  6. Meaning:
  7. Usage:
  8. Level:
  9. Notes:~
  10. AGAlloc count in attached process (displays message with heap statistics)'Can be used to check for memory leakage    LPC & ATSd
  11. B#Send attached process to Background1Can be used to force registration of "Bring" data    LPC & ATS
  12. C.Send a "Closedown" message to attached process8Same as pressing "Del" in System screen; error if "busy"
  13. LPC & wSendCommandL
  14. EExpression=Evaluate the given expression and send it as a string of keys<Eg put "%p" in the expression to be replaced by process name
  15. LPCAAllowed substitutions are: "%p" for process name (DatCommandPtr),7"%f" for family ("alias") name (DatProcessNamePtr), andD"%s" for status name (DatStatusNamePtr - as shown in status windows)j
  16. F$Bring attached process to Foreground6Commonly used after changing which process is attached    LPC & ATSw
  17. G.Ensure attached process is in its Ground state3Effectively repeatedly sends "Esc" key, as required
  18. LPC & IPC & ATS
  19. HDylNameKHave attached process load and Hook named DYL (best to give full path name)FEg "H\DYL\Register.dyl" where drive will be taken from Kmac's location
  20. LPC & wSendCommand
  21. IInfoMessageTextADisplay given Info message in top left corner of attached processHEg "IAbout to change sound value"; empty message clears any existing one    LPC & ATS
  22. Jm,nBJump the next n steps if a condition is true or (m negative) false=Can be used to omit a certain step if eg no dialog is showing
  23. LPC & IPC & KMAC?Bits that can be set in "m" to test for various conditions are:-1 for a menu showing, 2 for a dialog showing,:4 for DatLocked non-zero, 8 for a keyboard filter in place916 for non-negative i/o semaphore, 32 for nested am_start#n defaults to 1 and can be omitted;Yif n is zero, jumps back to start of current script (or to top of macro if not in script)
  24. Kk,m@Send Keypress with keycode k and modifier m (m defaults to zero)=Eg "K27" to send an "Esc" keypress, or "K27,4" for "Ctrl-Esc"    LPC & ATS
  25. Ln<Link paste ("bring") up to n characters, as a string of keysPIf n is omitted, up to 128 available characters (in first paragraph) are brought
  26. LPC & IPC & ATS
  27. Mm,nADisplay mth Menu with highlight on nth item (zero-based counting)8Eg "M2,1" to display "Install standard" in System screen
  28. LPC & IPC & ATS
  29. Ntitle,subtitle<Present a Notify-style "alert" dialog with a continue button2Has one or (if subtitle present) two lines of text
  30. LPC & ATS & KMAC
  31. PmKPause for m tenths of a second inside attached process (m defaults to zero)#Can be used to let redraws catch up    LPC & ATS
  32. Qtitle,question=Present a Query dialog with given title and optional question0Set "%d" variable to 1 for "Yes" and 0 otherwise
  33. LPC & ATS & KMAC5Test for "%d" in subsequent "d" or "r" or "x" command
  34. SStringESend a String of printable or (prefixed by ^ or @) interpretable keys1Eg "S@z123^C" sends Psion-z then "123" then ENTER    LPC & ATSQInterpretable keys prefixed by ^ are: Up, Down, Left, Right, Home, End, Tab, Menu2C for Return, X for Escape, P for PgUp, Q for PgDnG? for current drive "letter" (A or I or B), + for Diamond, - for Delete@0 to 9 to pause for 0 to 9 seconds, and % to pause half a secondHY to yield CPU until all other background and foreground processes pause=Prefix a key with @ to simulate a Psion or Shift-Psion hotkey7Eg @z for Psion-z or @Z for Shift-Psion-z; use @@ for @EOr put @<digit> to set modifier for next key in string (0 by default)VThus S@4^U to send Ctrl-Up keypress (for these purposes PSION_MOD is 1 not 8 as usual)
  35. aProcess4Attach to first process matching given specificationEEg "aSYS$SHLL.*" to attach to System screen (process name "SYS$SHLL")
  36. LPC-Catch any error by using a prior "e" command.>
  37. Beep (same as in Opl)
  38. Useful when debugging macros
  39. cCommandLine9Prepare Command line (or other stored line) for later useAEg "cCProgram#.OPL OROPO#LOC::M:\OPL\TLPC.OPL#" (#'s become \0's)
  40. d    dFilenameTOptionally Divert to filename formed from name of attached app or from "%d" variableAEg put "%p" in the passed filename to be replaced by process name
  41. KMACEIf filename formed in this way does not exist, just skip to next lineAAllowed substitutions are: "%p" for process name (DatCommandPtr),3"%f" for family ("alias") name (DatProcessNamePtr),I"%s" for status name (DatStatusNamePtr - as shown in status windows), and:"%d" for value of "%d" variable set eg by prior "Q" or "q"
  42. eScriptNameESpecify script name to load if the following line fails with an error7Eg can be used to trap non-existence of certain process
  43. KMACe
  44. f)Attach to process currently in Foreground2Note that "f" and "F" have quite different effects
  45. g    gFilename-Goto first process editing the specified filePFilename can be either short or long - any given path or drive will be respected
  46. LPCELooks at DatStatusNamePtr in short name case, else DatUsedPathNamePtr-Catch any error by using a prior "e" command.
  47. hDylName?Have Kmac load and Hook named DYL (best to give full path name)FEg "h\DYL\Register.dyl" where drive will be taken from Kmac's location
  48. KMACT
  49. iImageName&Start given .IMG file or other utility
  50. Eg "iLOC::M:\IMG\KTLPC.IMG"
  51. jm,nIJump the next n steps if there are more or less (if m < 0) than m dialogs@Can be used to omit a certain step if eg two dialogs are showing
  52. LPC & IPC & KMAC#n defaults to 1 and can be omitted;Yif n is zero, jumps back to start of current script (or to top of macro if not in script)e
  53. k$Kill attached process, using p_pkill7Should be used with caution ("t" or "C" are preferable)
  54. l    lFilenameILoad specified script file and take commands from there until end of fileBKeeping commands in file like this cuts down basic RAM working set
  55. mn=Move past the next n steps, unconditionally (n defaults to 1)Yif n is zero, moves back to start of current script (or to top of macro if not in script)
  56. KMACQ
  57. n)Wait until nudged before taking next step
  58. Same as "s1" followed by "s0"
  59. o    oProgName
  60. Start specified Opl program
  61. Eg "o\OPO\TKMACLIB.OPO"
  62. LPCDThis Opl program may contain more elaborate tests and LPC operations4Follow an "o" command with a "w" for synchronisation
  63. p    pProgNameBExecute given Program, using command line stored, and attach to it9Eg "eROM::WORD.APP" to start and attach to Word Processor
  64. qJQuery whether it would be possible to attach to current foreground process6Set "%d" variable to 1 for if possible and 0 otherwise
  65. LPC & KMAC
  66. r%x,valJReturn one level of calling script, absolutely (if no %x) or conditionally7Commonly of use in conjunction with "J" or "j" commands
  67. x can be one of d, p, f, or s>If x is d, return if %d value is val or less (val is a number)KElse, return if relevant name of attached app differs from val (as string):%"p" for process name (DatCommandPtr),2"f" for family ("alias") name (DatProcessNamePtr),D"s" for status name (DatStatusNamePtr - as shown in status windows).&("%d" variable is set eg by prior "Q")
  68. sn1Set Single stepping state to 0 (default), 1, or 2'Useful when testing or debugging macros
  69. KMAC!"s0" switches single stepping off "s1" switches single stepping on:"s2" shows notifier of next step, before any step proceeds~
  70. tNTerminate attached process, with p_pterminate (like "Kill" from System screen)&Should use "C" instead, where possible
  71. u#Use process with PID stored earlierKIe attach back to this process (PID will have been stored earlier with "v")
  72. v3Store PID of current attached process for use later;Typically will follow "v" in due course with a matching "u"
  73. wIWait until completion of last image (utility) launched, before proceeding(Can be used for synchronisation purposes
  74. x%x,val<EXit playback system, absolutely (if no %x) or conditionallyCCan be used within "called" script files to exit top-level playback
  75. x can be one of d, p, f, or s<If x is d, exit if %d value is val or less (val is a number)IElse, exit if relevant name of attached app differs from val (as string):%"p" for process name (DatCommandPtr),2"f" for family ("alias") name (DatProcessNamePtr),D"s" for status name (DatStatusNamePtr - as shown in status windows).1("%d" variable is set by prior "Q" or "R" dialog)z
  76. y@Yield CPU until all background and foreground processes are idle0Can be used for certain kinds of synchronisation
  77. z    zProcName9Zap all instances of process matching given specification
  78. Useful in demo situations
  79. LPC&Zapping means sending p_pkill messages
  80.