All Questions
1,520
questions
0
votes
0
answers
62
views
Reading & Writing other process's STD handles in python
I am trying to use Pywin32 to get the STD handles of another process, then read and write to them.
My source code is:
import win32api
import win32con
import win32file
STD_INPUT_HANDLE = -10
...
0
votes
0
answers
61
views
Is there a way to write an image to memory with Python and read it from another application written in C++?
I would like to create and write an image to the memory in such a way that other processes are able to read it. The goal is to have a Python script create some graph using matplotlib.pyplot, write it ...
0
votes
0
answers
33
views
Does processes triggered by ProcessPoolExecutor.submit have any kind of interference with each other?
Background:
.
├── app.py # API source code file
├── worker.py # CPU-bound task
I am using ProcessPoolExecutor().submit() in app.py to execute an entrance function main() stored in worker.py. As long ...
-2
votes
1
answer
55
views
My code only works on one image file the rest of the image files are read and saved but untouched by my code I need my code to work on all image files
I'm new to Python. I'm using Glob to Batch Process multiple image files. When I run my code, it processes and saves all image files as it should, but only one image file is affected by my code all ...
0
votes
0
answers
25
views
Immediately interrupting Bokeh processes using a button click
I'm working on a Bokeh application where I have a function update_data() that performs some time-consuming tasks. I want to add a way to immediately interrupt all ongoing processes when a button is ...
0
votes
1
answer
50
views
Reproducing and stopping sounds from Python
I was interested in creating a script that could play songs as threads and be able to stop it and reproduce other sounds. I have seen that there's a module for reproducing sounds playsound3, but it is ...
2
votes
1
answer
35
views
Stop process from another process
Hi guys I have two different processes running at the same time.
I'm trying to stop the other process which i have named loop_b
but I have only managed to stop the current process and the other doesn'...
0
votes
0
answers
16
views
Kill mouse event
I am wondering is there a way with Python that
we can detect process that use a click event so we can kill them.
That would help in the step of an anti cheat
I asked my friend if he can code something ...
0
votes
1
answer
37
views
How to get children processes if the parent process has already exited
To make it simple, say if the python program Program_1 started process_1. Immediately after process_1 has started, process_1 starts another process process_2, and then exits itself.
Now, if Program_1 ...
2
votes
1
answer
33
views
Get periodic updates from a process [duplicate]
I have a function which will increment a number with time. This is given to a process; but it doesn't increment while the process runs. I want the incremented value of my global variable at regular ...
0
votes
1
answer
19
views
Obtain .exe path (or similar static identifier) of a Windows program visible to user at a specific display coordinate
I'm working on a small program that lets the user select a specific area of their screen by clicking their mouse and then throughout its run records what windows were visible to the user at that ...
4
votes
1
answer
111
views
How to asynchronously run Matplolib server-side with a timeout? The process hangs randomly
I'm trying to reproduce the ChatGPT code interpreter feature where a LLM create figures on demand by executing to code.
Unfortunately Matplotlib hangs 20% of time, I have not managed to understand why....
1
vote
0
answers
23
views
How can I start a process based on the information sent from another computer?
Background
I have two computers, A and B. These computers are connected through the use of an ethernet cable where A is connected wireless to the router while B is in monitor mode and is therefore not ...
0
votes
0
answers
12
views
How do I divide a matrix into chunks, per row, and allocate each chunk to a process?
So I have been trying to divide my matrix into chunks of rows and allocating them to processes(using
pool
from multiprocessing)
For example, what I have done so far:
parser.add_argument("-p",...
0
votes
0
answers
69
views
How to get a list of all running GUI apps means processes that have a window attached? using python
I have searched extensively for a solution and discovered the psutil library. While I've managed to retrieve all running processes using psutil, I'm struggling to segregate them into GUI applications ...