region id query

hi

  1. which region of the application collects the keyboard events. - keyboard
    region or window manager region ?

  2. how to find the region id of second application running in the system
    from first application.

PhQueryRid () function always return -1 with error no set to ‘no such
process’.

where can i find some help or example of PhQueryRid function ?

thanks,

sameer

sam wrote:

hi

  1. which region of the application collects the keyboard events. - keyboard
    region or window manager region ?

The keyboard events are emitted from the device region towards the
root region and the first region that is sensitive to the keyboard event
will receive it. If that region is also opaque to that type of event it
, then it will stop there, otherwise the event will continue on until it
hits a region that is opaque to key events or the root region.

  1. how to find the region id of second application running in the system
    from first application.

Is it your application? You could setup a message passing routine
or a shared memory location to store the value. IF it’s not your
applciation then that is not going to work, but if it is, then that is
probably the best way to share region id’s.

PhQueryRid () function always return -1 with error no set to ‘no such
process’.

How are you making the call? Can you post the code here?

where can i find some help or example of PhQueryRid function ?

I will help you as best I can.

Thanks,
Rodney

thanks,

sameer

hi Rodney,
thanks for reply…
i was not in touch with newsgroups last couple of days…

about PhQueryRid (), i was passing values which was narrowing the
selection and so i was not able to get the correct rids. now have the
correct values with me now.

now as i have the rids, i want to send keyboard stoke event from one
application to another application. i.e. i want to simulate the keyboard key
strokes from app. ’ A’ for photon application ‘B’. ‘B’ application is
normal application and it will not know whether event received is simulated
or real. and it should act as keyboard key was received by ‘B’ application
only.

i am trying to use PhEventEmit function for this. but not able to send
event to another application. this function returns -1 and errono 35.

do i have to put keystrokes in keyboard buffer so another application can
read those ?

can u guide me in this?

sameer

Hello Sam

Can you please post the code that sets up and emits the event?

Thanks,
Rodney


sam wrote:

hi Rodney,
thanks for reply…
i was not in touch with newsgroups last couple of days…

about PhQueryRid (), i was passing values which was narrowing the
selection and so i was not able to get the correct rids. now have the
correct values with me now.

now as i have the rids, i want to send keyboard stoke event from one
application to another application. i.e. i want to simulate the keyboard key
strokes from app. ’ A’ for photon application ‘B’. ‘B’ application is
normal application and it will not know whether event received is simulated
or real. and it should act as keyboard key was received by ‘B’ application
only.

i am trying to use PhEventEmit function for this. but not able to send
event to another application. this function returns -1 and errono 35.

do i have to put keystrokes in keyboard buffer so another application can
read those ?

can u guide me in this?

sameer

hi Rodney,

i found the problem, now it is working fine. i am able to send the key
board event to another application.

thanks for your support.

sameer

“Rodney Dowdall” <rdowdall@qnx.com> wrote in message
news:3EDB1CEF.6050607@qnx.com

Hello Sam

Can you please post the code that sets up and emits the event?

Thanks,
Rodney


sam wrote:
hi Rodney,
thanks for reply…
i was not in touch with newsgroups last couple of days…

about PhQueryRid (), i was passing values which was narrowing the
selection and so i was not able to get the correct rids. now have the
correct values with me now.

now as i have the rids, i want to send keyboard stoke event from one
application to another application. i.e. i want to simulate the keyboard
key
strokes from app. ’ A’ for photon application ‘B’. ‘B’ application is
normal application and it will not know whether event received is
simulated
or real. and it should act as keyboard key was received by ‘B’
application
only.

i am trying to use PhEventEmit function for this. but not able to send
event to another application. this function returns -1 and errono 35.

do i have to put keystrokes in keyboard buffer so another application
can
read those ?

can u guide me in this?

sameer
\