Detect if Number Lock is on in VNC

Asked by Dillon on 2018-10-02

Is there an easy way to detect if num lock is turned on in a VNC connection?

If not: is there an easy way to force it on without having to know if it is already on or not?

Question information

Language:
English Edit question
Status:
Solved
For:
Sikuli Edit question
Assignee:
No assignee Edit question
Solved by:
Dillon
Solved:
2018-10-18
Last query:
2018-10-18
Last reply:
2018-10-18
Launchpad Janitor (janitor) said : #1

This question was expired because it remained in the 'Open' state without activity for the last 15 days.

RaiMan (raimund-hocke) said : #2

Did you find a solution?

Just searched the net for "vnc detect num-lock state" and found only, that this can only be done, by running something on the remote machine, that does the job.

No way by simply pressing keys.

There was an interesting hint to the OnScreen keyboard (Accessories), which might be a possible visual solution with SikuliX.

Dillon (dillonm197) said : #3

I ended up going about it a different way.

I open notepad.exe and type 0-9 on the keyboard and then look for the image of the text. If it finds it, it returns true, otherwise false.