- Jul
- 204
- 2
I was looking for a way to know if the screen is locked. I found SystemParametersInfo(…) with SPI_GETSCREENSAVERRUNNING=0x0072=114 and tried calls like: %@winapi[user32.dll,SystemParametersInfo,114,0,PINT=%%var,0] (tried with 0, 1, or 2 '%'-percent, with PINT, PLONG, PVOID), but could not figure out how to use these PINT etc. arguments and get something returned to a TCC environment variable.
(If I understand well, %@WINSYSTEM[16] gives information whether the screen saver is configured, and not whether it is active/locking.)
(I found %_idleticks, which is anyway better suited to my original problem.)
(If I understand well, %@WINSYSTEM[16] gives information whether the screen saver is configured, and not whether it is active/locking.)
(I found %_idleticks, which is anyway better suited to my original problem.)