Changes

Jump to navigation Jump to search
3 bytes removed ,  06:38, 28 March 2009
no edit summary
Line 113: Line 113:  
                       <code>
 
                       <code>
 
                       XGetInputFocus(...); //to focus to the window.
 
                       XGetInputFocus(...); //to focus to the window.
   
                       // Create the event
 
                       // Create the event
 
                       XKeyEvent event = createKeyEvent(...);
 
                       XKeyEvent event = createKeyEvent(...);
   
                       // Send the KEYCODE. We can define these using XK_ constasnts
 
                       // Send the KEYCODE. We can define these using XK_ constasnts
 
                       XSendEvent(...);
 
                       XSendEvent(...);
   
                       // Resend the event to emulate the key release
 
                       // Resend the event to emulate the key release
 
                       event = createKeyEvent(...);
 
                       event = createKeyEvent(...);
52

edits

Navigation menu