I want to enable/disable the Windows sticky keys feature from a program. Is there a way to do it by calling a command line script or using vbscript or similar?
+1
A:
Yes. Call SystemParametersInfo with SPI_SETSTICKYKEYS as first argument.
You will need to use P/Invoke to call the Win32 API function, though, if you use .NET.
CesarGon
2010-10-10 12:02:42
Thanks, I'll check it out. I never used the Winapi, I hope it can be done in a few lines with vbscript and the windows scripting host.
Tom
2010-10-10 13:29:19