Python Forum
Interacting with desktop apps. - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: General Coding Help (https://python-forum.io/forum-8.html)
+--- Thread: Interacting with desktop apps. (/thread-16742.html)



Interacting with desktop apps. - SheeppOSU - Mar-13-2019

I am able to use os to open an app, but I don't know how to interact with it. Can someone plz tell me how. I put in some text it was saying in the cmd. It may help you figure out what I need to do.

Python code
import os

command = 'C:/Users/Chadd/Desktop/Signal.lnk'

os.system(command)
What the cmd was saying
{"name":"log","hostname":"SheeppOSU_AW,"pid":#5-digit number#,"level":30,"msg":"SQL channel job 31 (updateConversation) succeeded in 126ms","time":"2019-03-13T00:27:56.812Z","v":0}
I don't know if that helps but it said that a bunch with specific stuff changed for example the job number. And the part saying "updateConversation" was also sometimes different


RE: Interacting with desktop apps. - Yoriz - Mar-13-2019

Try using pywinauto