On Monday 18 October 2004 09:25, Tzafrir Cohen wrote:
> On Sun, Oct 17, 2004 at 11:52:07PM +0200, ik wrote:
> > Hello List,
> > 
> > I'm creating a keyboard interface for an IDE. For now i know the 
> > current state of the LEDs (numlock, capslock scrolllock), but I wish 
> > also to be able to change it into diffrent state (if it's on to set it 
> > off etc..). I looked on some applets I found that gives this options, 
> > but every one of them do it differently, and I'm unable to implement 
> > it on my own.
> 
> Could you give an example?
> 
> Some example programs, from a simple search in freshmeat:
> 
> http://freshmeat.net/projects/ixbiff/
> http://freshmeat.net/projects/tledsxtleds/
> 
> > 
> > Another problem is that the xkb documentation is much older then the 
> > headers and some of the functions are not the same (in parameters)
> > then in the documentation.
> 
> I don't believe that this part has radically changed
> 

Kfir,
>can you explain what is "keyboard interface for an IDE".

What I'm trying to do is to implement a way to control the virtual keyboard layout and 
the keyboard LEDs using a code, in order to hack
some problems in the Lazarus IDE.
I already implemented the Layout code, and I do know what is the state of each led.

But I wish to control the LEDs, like toggle them, or lock them (I know the command to 
lock, although it does not work as well :( ).


Tzafrir, 

First of all thank you for the answer. I really do not want to use libc, unless it's 
the only way (I already looked at all the projects 
I found at freshmeat and sourceforge that handle this things).

I'm trying to implement it using xlib only way...
When I'm using XChangeKeyboardControl (I saw that on one of the links you pasted...), 
Only the ScrollLock changes it state.

The function  XkbSetNamedIndicator is diffrent in one of it's parameter from the 
documentation (that last updated on 96), I also
found some bug reports about it in freedesktop.org from the 2000.

The XkbSetNamedIndicator function does not do anything to the LEDs and keep it on the 
state it is at.

I also tried the XSendEvent function to try and fake the keystrokes of the LEDs, that 
also did not worked well :(

Thank you for the help, and I'm still looking for a way to control the LEDs...
I will send here a solution if I'll find any...


Ido
-- 
"I want peace on earth and good will toward man."
"We are the United States Government.  We don't do that sort of thing."
 -- from 'Armegadon'

=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]

Reply via email to