Re: [Xpert]Fake Event

2002-06-01 Thread Henrik Sandklef



On Wed, 2002-05-29 at 15:11, Bharathi S wrote:
 On 26 May 2002, Henrik Sandklef wrote:
 
  You can use XTest extension to do this  
  You can look at xnee for an example on how to use XTest
  http://xnee.sourceforge.net

How to download the source code from this site ? :(

Follow the link Download ... just to be called Release
(http://xnee.sourceforge.net/xnee_download.html)

 
It is possible to generate the Fake Event inside
the Xlib Function ?

You can fake an event using Xlibs XSendEvent. However some applications
recognise that the event was sent using that function (a bit is set).
And you need the win id.


XSendEvent(dpy, winID, propagate, event_mask, event )
 
If i didn't give the window id ( Bcoz i don't know )
 
Pl give some example :)


XTestFakeKeyEvent (your_display, your_keycode, True, some_time);
XTestFakeKeyEvent (your_display, your_keycode, False, some_time);

 
If there is any separeate list is there for Xlib :)
Hmm I am not sure I follow you. Can you please ask the question again?
 
  On Fri, 2002-05-24 at 17:50, Bharathi S wrote:
 
 Whenever an keypress event occure i want to
 generate one more keypress event.
   
 The 2nd keypress should go with frist event
 keycode. And the 1st event should go with 
 my own keycode.
 
 TIA,
 -- 
 --==| Bharathi S | BSB-364 DONLab | IIT-Madras |==--
 Like sent in bud secrets conceal
 In the bosom of her half smile.
 *In Tirukkural of Holy Tamil poet Tiruvalluvar.
 
 
 
 
-- 
Henrik Sandklef   http://www.sandklef.com/hesa/

Email [EMAIL PROTECTED]
Software  http://www.sandklef.com/software/

___
Xpert mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/xpert



Re: [Xpert]Fake Event

2002-05-29 Thread Bharathi S

On 26 May 2002, Henrik Sandklef wrote:

 You can use XTest extension to do this  
 You can look at xnee for an example on how to use XTest
   http://xnee.sourceforge.net
   
   How to download the source code from this site ? :(

   It is possible to generate the Fake Event inside
   the Xlib Function ?

   XSendEvent(dpy, winID, propagate, event_mask, event )

   If i didn't give the window id ( Bcoz i don't know )

   Pl give some example :)

   If there is any separeate list is there for Xlib :)

 On Fri, 2002-05-24 at 17:50, Bharathi S wrote:

Whenever an keypress event occure i want to
generate one more keypress event.
  
The 2nd keypress should go with frist event
keycode. And the 1st event should go with 
my own keycode.

TIA,
-- 
--==| Bharathi S | BSB-364 DONLab | IIT-Madras |==--
Like sent in bud secrets conceal
In the bosom of her half smile.
*In Tirukkural of Holy Tamil poet Tiruvalluvar.


___
Xpert mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/xpert



Re: [Xpert]Fake Event

2002-05-26 Thread Henrik Sandklef

You can use XTest extension to do this  


You can look at xnee for an example on how to use XTest
http://xnee.sourceforge.net

/hesa
On Fri, 2002-05-24 at 17:50, Bharathi S wrote:
 Hello all,
   Whenever an keypress event occure i want to
   generate one more keypress event.
 
   The 2nd keypress should go with frist event
   keycode. And the 1st event should go with 
   my own keycode.
 
   It is possible to generate the fake event inside
   XkbLookupkeyshm() -*- XKBBind.c -*- Xlib function.
   Bcoz QT getting the event from this function only.
 
 TIA Bye,
 -- 
 --==| Bharathi S | BSB-364 DONLab | IIT-Madras |==--
 The virtue-killer may be saved
 Not benefit-killer wo is damned.
 *In Tirukkural of Holy Tamil poet Tiruvalluvar.
 
 ___
 Xpert mailing list
 [EMAIL PROTECTED]
 http://XFree86.Org/mailman/listinfo/xpert
 
 
-- 
Henrik Sandklef   http://www.sandklef.com/hesa/

Email [EMAIL PROTECTED]
Software  http://www.sandklef.com/software/

___
Xpert mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/xpert



[Xpert]Fake Event

2002-05-24 Thread Bharathi S

Hello all,
  Whenever an keypress event occure i want to
  generate one more keypress event.

  The 2nd keypress should go with frist event
  keycode. And the 1st event should go with 
  my own keycode.

  It is possible to generate the fake event inside
  XkbLookupkeyshm() -*- XKBBind.c -*- Xlib function.
  Bcoz QT getting the event from this function only.

TIA Bye,
-- 
--==| Bharathi S | BSB-364 DONLab | IIT-Madras |==--
The virtue-killer may be saved
Not benefit-killer wo is damned.
*In Tirukkural of Holy Tamil poet Tiruvalluvar.

___
Xpert mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/xpert