Some triggers (scheduler, file, event log, process) may cause the macro to run while QM is not running on interactive desktop. For example, the computer may be locked (directly or by a secure screen saver), the user not logged on, the user is switched off, a custom desktop is active. Then the macro runs in the background. However, many commands (keyboard, mouse, etc) then don't work, because background users cannot access keyboard, mouse and monitor.
To ensure that the macro will run only in normal conditions, check Properties -> Macro properties -> "Don't run as background user". This also will close nonsecure screensaver.
If you also check "If locked, temporarily unlock", QM unlocks computer if it is locked when the macro starts. Also closes screensaver. When the macro ends, QM locks computer again.
Before using this feature first time, configuration is necessary. To show the configuration dialog, click the How button. Enter the Windows user account password. If needed, change keys and other options. When you change the Windows user account password, don't forget to change it here too.
To unlock, QM uses keys specified in the dialog. The format is the same as with the key command. For example, T is Tab, Y is Enter, Au is Alt+U, (1.0) is 1 second delay, "Text" is Text typed as simple text, etc. Use (USERNAME) as placeholder for user name, and (PASSWORD) as placeholder for password. Examples:
1. Windows 2000, Windows XP without fast user switching:
Au (USERNAME) Ap (PASSWORD) Y
2. Windows XP with fast user switching (examples for first, second and third
user):
ZZD (PASSWORD) Y
ZZDD (PASSWORD) Y
ZZDDD (PASSWORD) Y
3. Windows Vista (examples for first, second and third user):
V (0.5) B (PASSWORD) Y
R V (0.5) B (PASSWORD) Y
RR V (0.5) B (PASSWORD) Y