views:

16

answers:

1

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
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