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

  • SEARCH
  • Home
  • 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 974435
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T03:26:11+00:00 2026-05-16T03:26:11+00:00

I’m using PyWin32’s win32process.CreateProcess to start up a GUI program that has functionality I

  • 0

I’m using PyWin32’s win32process.CreateProcess to start up a GUI program that has functionality I want to use in a Python class.

I want to do the following from Python with this GUI:

  • sent text to individual windows within the GUI (which seem to change identifiers every time I create the process if WinSpy++ is to be believed),
  • click buttons on the GUI to configure and initiate the calculation, and
  • retrieve calculation output from the GUI (which allows for either in-GUI text output or save-file output).

Quick question: what Python/PyWin32 functionality should I be researching to accomplish these tasks? I’m not looking for actual code, just the area I should research to learn how to do these things myself. I’ve scanned most of Learning Python, Programming Python, and Python Programming on Win32 and don’t recognize the answer if it’s there.

Thanks,

Mike

  • 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-16T03:26:12+00:00Added an answer on May 16, 2026 at 3:26 am

    What you want to do is complicated and I’m not sure you can accomplish that with Python. I can only post some pointers, but can’t guarantee that it’s right direction.

    As for sending text to individual windows – there is SendMessage function – you’d probably need to send your data as keystroke messages to desired window. As for hWnd argument that SendMessage takes – you should be able to obtain it by calling EnumChildWindows function or similar.

    Retrieving output is even harder – I think you need to replace WndProc of target window with one that will save output for you while it’s being printed. You can substitute WndProc with SetWindowLong (probably).

    It should be possible that way, but personally I’d do anything to avoid coding something like that.

    One more thing – it’s not exactly python related question. Try to find C/C++ code accomplishing something similar with Win32API and try to translate it to Python. Search SO for WinAPI resources. If you’re desperate enough, that is…

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

Sidebar

Related Questions

No related questions found

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.