Numlock controller

The frustration that launched my interest in Python scripts.

The problem

In logistics I type a lot of reference numbers. Every now and then Num Lock switches off, the numeric keypad turns into arrow keys and the cursor starts jumping through input fields.

Whether that's an Azure feature or user error, I do not know.

The search

I could not find any setting in Windows myself. So I turned to the internet. Could I fix this? After a few hours of deep diving on Reddit, a Python script looked like the best option.

The script

With the help of AI, I wrote a script that checks Num Lock status and switches it back on when it's off. I tried a few intervals and two checks every second works well.

Before using the script daily on my work PC, I figured out what every part of the code does and how it works.