Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Sep 2006

    RWsSession variable differences

    Hello People,

    Could somebody please tell me using which one of the following is better to simulate key events???

    1. In the event of my method that simulates key strokes being called,using a local windows server session variable,connect to it,simulate keys and close it and repeat the same everytime my method is called as follows:

    void method()

    RWsSession ws;
    do the TkeyEvent accordingly here

    2. Have a RWsSession variable as a member of my class, instantiate it in the constructor (as seen below) and do the same as above.

    member variable RWsSession ws;
    ws = iCoeEnv->WsSession(); in the constructor of the class

    void method()
    do the TkeyEvent accordingly here
    // DO NOT DO ws.Close();

    I am trying to write an application that simulates key events and can be integrated with any other application that can accept keystrokes like teh message editor etc..By integrated I mean, if my application runs and I open another one that can accept key strokes, since I use the SimulateKeyEventL method, it would appear as if the user typed on the other application.

    Thanks a ton!

  2. #2
    Nokia Developer Expert
    Join Date
    Mar 2003

    Re: RWsSession variable differences

    Usually its better to avoid any extra processing, thus using the session variable initialized by the applications framework would be better.


Similar Threads

  1. Parsing file content
    By hendrawan.ashari in forum Symbian
    Replies: 7
    Last Post: 2007-03-09, 10:41
  2. Replies: 1
    Last Post: 2006-11-15, 07:03
  3. static variable problem
    By plmanikandan in forum Symbian
    Replies: 1
    Last Post: 2005-01-30, 02:29
  4. Does variable name extremely effects to JAR size?
    By tamtam4247229 in forum Mobile Java General
    Replies: 1
    Last Post: 2004-07-12, 09:52
  5. On 8310 wml forms don't do <input>/<postfield> variable substitution?
    By Nokia_Archive in forum Browsing and Mark-ups
    Replies: 1
    Last Post: 2002-05-17, 13:59

Posting Permissions

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