Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 630351
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T19:50:45+00:00 2026-05-13T19:50:45+00:00

I want to send a keystroke to a GLUT program on X11, but I

  • 0

I want to send a keystroke to a GLUT program on X11, but I can’t find there’s an X11 client attached to the GLUT program.

I do this, using the most excellent demo program for the chipmunk 2d physics package:

xlsclients -a|sort >aa
chipmunk_demos  (in another window)
xlsclients -a|sort >bb
diff aa bb

and there’s no difference.

My eventual hope is that I can control the GLUT program by sending key events with the equivalent of:

xdotool key --window 0x4000002 a

So my questions:

  1. how can I remote control a GLUT program running on linux/X11?
  2. Is there a way to get an X11 window id for a GLUT program?
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T19:50:45+00:00Added an answer on May 13, 2026 at 7:50 pm

    Install xtrace, then:

    In Terminal 1:

    xtrace -d :0 -D :8 | grep CreateWindow

    In Terminal 2:

    DISPLAY=:8 chipmunk_demos

    You should get a line with:

    … CreateWindow depth=0x18 window=0x04a00002 …

    Update: xdotool actually contains powerful search functionality, which recent versions make even easier to use. It doesn’t make sense to use xtrace like this, just use xdotool search instead

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

im using keybd_event(); and i want use SendMessage(); to send keystroke to notepad, can
I want send a email by Email Class in codeigniter with gmail, but i
I want to send this URL as a request to the server to change
I want so send every week an update by email. But Im afraid that
I want to send email from a Ruby application. Is there a call in
How can I send array to stored procedure? I want send it from JS
I want send an email in the background of iphone. Can anybody help me
Can jquery.ajax post a value from an attribute Name? If can, I want send
I have some action. I want send mail. usually i doing this way. public
How can i configure WCF service / client to send UTF-8 characters to the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.