Python Forum
How can I move in an external program via Python?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How can I move in an external program via Python?
#1
Hello,

I would like to ask a question about controlling a program via Python.

I can open an external program or file with subprocess command in Python. But how can I control this external program I opened?

For example, I want to use the File - Open command in this external program which I opened via Python. Or I want to open a script, which is written for this external program, and run it again in that external program.

Pyautogui can come to mind, but I'm looking for more than the mouse control. I need to use command of external program. Anybody have any experience on the subject?

Example:

import subprocess
subprocess.Popen(r'"C:\Program Files\...\....exe"', shell=True)
#I opened the program
#Now, I need to open a file in this external program. I have to use File - Open.
#How can I move or write a command?

I would like to read if the question has been asked earlier or if there is a similar issue. I want to go ahead on this topic as far as I can.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  mouse move event/cinfiguration ttk/python janeik 4 984 Jul-03-2023, 05:30 PM
Last Post: deanhystad
  programming OpenOffice with External Python Project bobthebuilder44 1 733 Apr-07-2023, 06:02 AM
Last Post: buran
  python move specific files from source to destination including duplicates mg24 3 1,051 Jan-21-2023, 04:21 AM
Last Post: deanhystad
  python move folders and subfolders not working mg24 5 2,072 Nov-09-2022, 02:24 PM
Last Post: Larz60+
  Program to move a dot towards a circle center plumberpy 10 4,064 Dec-03-2021, 12:20 PM
Last Post: BashBedlam
  How to send data from a python application to an external application aditya_rajiv 1 2,131 Jul-26-2021, 06:00 AM
Last Post: ndc85430
  how difficult its to move to Python 3.8 from Python 2.7 dkirandasari 4 3,151 Jan-23-2020, 07:42 PM
Last Post: DeaD_EyE
  I can't read data from the clipboard in an external program AlekseyPython 1 2,574 Mar-19-2019, 07:56 AM
Last Post: buran
  How to excess external program and get a value back? hhanswurster 7 3,808 Jun-12-2018, 05:46 PM
Last Post: hhanswurster
  Executing external Python file in background and get output in python nakiscia 0 4,938 Feb-15-2018, 02:07 PM
Last Post: nakiscia

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020