So, I want to make a script that locks my workstation (Win XP) and starts the screensaver. I couldn't get it to work using the user32.dll LockWorkStation function but for some reason it did work with Send("#l") (win+l is hotkey for locking in XP). However the Windows Key is still pressed down in the loginscreen. Any ideas on how to fix this? Global $user32_dll = DllOpen ("user32.dll") Const $WM_SYSCOMMAND = 0x112 Const $SC_SCREENSAVE = 0xF140 $gui = GUICreate("",10,10,-100,-100) $guiHan