I would like to be able to "press" the Scroll Lock key (from an application), so that the scroll lock led on the keyboard will turn on or off.
I've used the DllImport on the function keybd_event (from user32.dll) to do so, and my app runs as a service on win xp.
It's works fine, but when I lock the computer (win+L) that function stops working.
I've tried running the service as Local Service and as Admin but it made no difference.
any suggestions?
thanks.