I would like to be able to "press" the Scroll Lock key (from the application), so that the scroll lock leading to the keyboard is turned on or off.
I used DllImport for the keybd_event function (from user32.dll) to do this, and my application works as a service when winning xp.
It works fine, but when I lock the computer (win + L), the function stops working.
I tried to start the service as a local service and as Admin, but it did not matter.
any suggestions?
thank.
source
share