Exec.LogKeys
Description
- Sets keystroke logging to a file.
Syntax
Parameters
- fpath
- (string) either:
- full path to target file
- file name only
- The key logging file is then assumed to be in the same folder as the PowerPro configuration file.
- either of the above, preceded by "=" character
- toggles key logging on/off
- blank ("")
Examples
- Exec.LogKeys(?"=c:\logs\keys.txt")
- Toggles key logging to the file "keys.txt".
- Exec.LogKeys("c:/logs/keys.txt")
Exec.ToFile("log", "Logging on: "++time)
; ...do stuff in here...
Exec.ToFile("log", "Logging off: "++time)
Exec.LogKeys("")
- Turns on keystroke logging to the file "c:\logs\keys.txt", then uses another Exec function, Exec.ToFile(), to add activity/time details to this file whilst keystroke logging is on.
- Note that in the Exec.ToFile() call, "log" is passed for the first parameter, the path to the open log file. The keyword "log" will only be recognised when keystroke logging is on.
Notes
- Use the *Info buttons keyword "keylog" to display an X on a button label if logging is active.
See Also
-
PowerPro Help CHM > Built-in Commands > *Exec > Logging Keystrokes
-
PPSR > Built-in Functions > by Category > Keys > keylog, keylogfile