×

Discussion Board

Page 1 of 2 12 LastLast
Results 1 to 15 of 18
  1. #1
    Registered User
    Join Date
    Oct 2011
    Posts
    12

    Question Insert a character to other application (focused) input/text field

    Hi.

    Is it possible (and a small example or a direction to look into) to make an app that would add a unicode symbol to other application input box.

    The application would be started when you have a focused input/text field. The app would then send a character to insert.

    Best regards.

  2. #2
    Super Contributor
    Join Date
    Oct 2007
    Location
    જુનાગઢ - India
    Posts
    3,034

    Re: Insert a character to other application (focused) input/text field

    AFAIK, You can not do that unless and until both applications are of yours and have some way to communicate.

  3. #3
    Registered User
    Join Date
    Oct 2011
    Posts
    12

    Re: Insert a character to other application (focused) input/text field

    Also not with Symbian C++ API?

  4. #4
    Regular Contributor
    Join Date
    Oct 2008
    Location
    Oslo, Norway
    Posts
    329

    Re: Insert a character to other application (focused) input/text field

    The component that does this on Symbian is called a FEP (front-end processor). For example, on a touch device the virtual keyboard acts as a FEP. You would need to create your own FEP implementation, basically. It's a very difficult task for several reasons and not worth it unless you really want to provide an alternative and complete FEP a'la Swype.

    That said, it is possible to send keyevents to active window group: http://www.developer.nokia.com/Commu...ate_a_keypress

    The problem is to know when to tigger the keypress(es). You'd have to know when the user taps/clicks on an edit field, and also what kind of input the edit field accepts (any, numeric only, etc...). This information is known to a FEP, but an external application would have to use other clues such as the activation of the virtual keyboard (on a touch device). But it's tricky, nonetheless.

  5. #5
    Registered User
    Join Date
    Oct 2011
    Posts
    12

    Re: Insert a character to other application (focused) input/text field

    I would suspect it gets trickier when trying to do the same, but with the HW keyboard .

    I will take a look what kind of events I can listen to in background (if possible).

  6. #6
    Registered User
    Join Date
    Oct 2011
    Posts
    12

    Re: Insert a character to other application (focused) input/text field

    I've been looking for a way to listen to keypresses in the background. I've found some examples, but I'm not sure if it is possible to use it together with Qt code.

    Is it possible to listen to HW key events and SW key events?

  7. #7
    Super Contributor
    Join Date
    Oct 2007
    Location
    જુનાગઢ - India
    Posts
    3,034

    Re: Insert a character to other application (focused) input/text field

    Yes, that (Symbian C++ code) can be used in Qt to listen key press events in background.

  8. #8
    Registered User
    Join Date
    Oct 2011
    Posts
    12

    Re: Insert a character to other application (focused) input/text field

    KeyCapture captures few HW keys (If I read correctly).

    Method OfferKeyEventL from CCoeControl can also be used in a Qt background app?

    Thank you for your reply.

  9. #9
    Super Contributor
    Join Date
    Oct 2007
    Location
    જુનાગઢ - India
    Posts
    3,034

    Re: Insert a character to other application (focused) input/text field


  10. #10
    Registered User
    Join Date
    Oct 2011
    Posts
    12

    Re: Insert a character to other application (focused) input/text field

    Thank you. This will be very helpful.

  11. #11
    Registered User
    Join Date
    Oct 2011
    Posts
    12

    Re: Insert a character to other application (focused) input/text field

    I've got the key press events to be catched. Now I'm searching a way to put a TKeyEvent with a unicode character in it and haven't found it yet . Is it possible? Or do I need to use any other method?
    Last edited by MasterMind2k; 2011-10-29 at 17:11.

  12. #12
    Registered User
    Join Date
    Oct 2011
    Posts
    12

    Re: Insert a character to other application (focused) input/text field

    I have managed to fix this problem.

    I have another problem . How can I capture Virtual keyboard's key events? Since using the example code, it doesn't work.
    Last edited by MasterMind2k; 2011-10-29 at 18:51.

  13. #13
    Registered User
    Join Date
    Oct 2011
    Posts
    12

    Re: Insert a character to other application (focused) input/text field

    Got to work on the HW keyboard.

    I have another question. The input field has a state (uppercase/lowercase). Is it there a way to get that kind of information? I suppose I would need to implement a FEP for that?

    Thank you all for all the help.
    Last edited by MasterMind2k; 2011-10-30 at 19:17.

  14. #14
    Super Contributor
    Join Date
    Oct 2007
    Location
    જુનાગઢ - India
    Posts
    3,034

    Re: Insert a character to other application (focused) input/text field

    Yes, you can in Symbian.

    Check MAknEditingStateIndicator and CAknIndicatorContainer.

  15. #15
    Registered User
    Join Date
    Oct 2011
    Posts
    12

    Re: Insert a character to other application (focused) input/text field

    Great! Need to find the appropriate indicator id .

    Thanks.

Similar Threads

  1. Text input field only accepts one character and then auto loses focus. Help!
    By galaxyg in forum [Archived] Flash Lite on Nokia Devices
    Replies: 1
    Last Post: 2010-09-28, 15:11
  2. highlight character in text field
    By assayag in forum Symbian
    Replies: 3
    Last Post: 2009-10-01, 11:17
  3. Simple text input field
    By erst in forum Symbian
    Replies: 15
    Last Post: 2007-04-03, 06:11
  4. Replies: 2
    Last Post: 2006-01-31, 11:46
  5. Input in text field without new window
    By raffaelesergi in forum Mobile Java General
    Replies: 3
    Last Post: 2003-10-28, 10:58

Posting Permissions

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