I have an MSI GE63VR with a number pad but without any indicator when num lock is on or off. I wrote this to solve this problem. This will toggle the numpad colors when numlock is active/inactive. Basic simple small code easy to understand and modify to suit.
Enjoy!