Smart Unlock Function
David Elias 00
I've modified the custom keys's remote.lua file and added to it a hotkey to lock my computer (WIN + L) and a keyboard press to unlock it. But, when I press the widget button to unlock, it writes my windows password, wherever it be, and press enter to confirm. But doing such thing, I could send my password for someone one facebook or whatsapp web. (Well, I already did it. For my own good, it's a friend of mine that is not a problem to say my password to her). So, I want to make the source code a little better and smarter. I'm think in something like:
actions.unlock = function ()
if workstation.isLocked == true then
kb.press ("p", "a", "s", "s", "h", "e", "r", "e", "enter") ;
The problem is, I don't know that much about Lua Programming. The same way I don't know about any command line (if there is any) to do so. (I mean, a command line to return false for when my workstation is unlocked and true for workstation locked).
I hope someone can help me.
(Sorry if there any english errors)