简体   繁体   中英

How can I pull data from a program currently running on my computer using Python?

How do I pull data from an app? I have a phone app, when the call comes in, I want to be able to copy the phone number that appears.

This is a good question as it is a fundamental one.

The app that knows the phone number is able to know it because it owns the memory holding that piece of data. No other process is able to read that piece of memory.

You have to explicitly set up interprocess communication (IPC) to achieve what you want. This is a deep topic on its own so there is no one easy answer based on the description of the problem you gave.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM