PDA

View Full Version : Python: Turn OFF/ON Num Block?



juancarlospaco
June 3rd, 2010, 04:32 AM
How can i turn OFF/ON the Numerical Block of the Keyboard using Python???
(NOT the Leds lights)

Im not using GTK/QT/Wx

nvteighen
June 3rd, 2010, 01:07 PM
I doubt that's possible. Coincidentally, I was reading about x86 interrupts (Assembly) and there was one to do that... so, such thing is for sure "visible" from Assembly and not from a very high-level programming language like Python...

An idea would be to interface your script with a C program that in turns interface with Assembly code... :P

juancarlospaco
June 3rd, 2010, 01:59 PM
Too bad, we need something like that on Python 3.x
:(

nvteighen
June 3rd, 2010, 02:01 PM
Too bad, we need something like that on Python 3.x
:(

It's worse... actually no Linux program can do that because Linux restricts access to BIOS interrupt calls (which is a good idea). Either you start programming in DOS Assembly (and no, WinNT DOS emulation doesn't count in) or you should write a new OS to do this...

juancarlospaco
June 3rd, 2010, 02:05 PM
You can do that on Assembly/Linux.
You can control Num Block Leds with python.
But not the Num Block Itself.

ja660k
June 3rd, 2010, 02:13 PM
You can do that on Assembly/Linux.
You can control Num Block Leds with python.
But not the Num Block Itself.

i like it, make people THINK we've done somehting....