Find the answer to your Linux question:
Results 1 to 3 of 3
I am designing a software which converts english to local Indian languages like Hindi, Tamil etc. I want to capture the key strokes of the user, convert it from english ...
  1. #1
    Just Joined!
    Join Date
    Jan 2009
    Posts
    3

    How to send characters on to the active window using X Windows

    I am designing a software which converts english to local Indian languages like Hindi, Tamil etc. I want to capture the key strokes of the user, convert it from english to appropriate language and send it to the current active window. I am able to capture the key presses using the input device event interface. Now I need to send it on to the current active window. I know that display is managed by the X Window system. How to send the characters on to the active window? Is there any other alternative other than X Window?

  2. #2
    Just Joined!
    Join Date
    Oct 2004
    Posts
    62
    Hi abbabhinavzoso,
    I think that your problem can be solved by "simulated keys"
    (see the Cogitati's post)
    You can force the windows that interest you to be the current active window,
    by using wmctrl (read the afore mentioned post).
    Bye.

  3. #3
    Linux Newbie
    Join Date
    Jul 2008
    Posts
    181
    I don't really understand what you are trying to achieve. However, SCIM - SCIM and similar input methods already exist.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...