re finding out state of state keys eg capslock and numlock in aa blue arbortext com rps arbortext com ralph seguin writes my question is this is there a means of determining what the state of capslock and or numlock is i don t know any way except to see what modifiers are on in th keypress event of course if there is some reason why you need to always know the state of modifiers even if your windows don t have the keyborads focus you can always ask for keypress events from the root window then you get all the keypresses and you always know what have been pressed an even more pointed question is there an easy means of making an x keyboard act like a pc keyboard ie capslock is active and the user presses shift a i d like to get a lowercase a instead of a i think this is just a question of how to implement xlookupstring you can always write another function that interprets the keypresses as you like you can look at the implementation of xlookupstring from the xlib sources and then modify it a little bit sami tikka hut fi g sami s tikka o hut admd fumail c fi live long and prosper
