Detect if Number Lock is on in VNC

Asked by Dillon

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:
SikuliX Edit question
Assignee:
No assignee Edit question
Solved by:
Dillon
Solved:
Last query:
Last reply:
Revision history for this message
Launchpad Janitor (janitor) said :
#1

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

Revision history for this message
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.

Revision history for this message
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.