Posts tagged System.Runtime.InteropServices SendInput NumLock Turn On c#
How to programmatically turn on the Numlock Key
Nov 7th
The following code will allow you to turn on the numlock key upon startup. Can’t credit anyone as i’m not sure where it came from but it does work 100% using System; using System.Runtime.InteropServices; class SetNumlockKeyOn { [StructLayout(LayoutKind.Sequential)] public struct INPUT { internal int type; internal short wVk; internal short wScan; internal int dwFlags; internal More >