I'm self-studying python so I'm very inexperienced so I hope you guys can help
The specific problem is:
I'm building a voice communication virtual assistant, I have managed to open the application by voice, but can't write the code to close a running application with a specific name.
I tried using the command
send_keys('%{F4}')
and doesn't seem to get the desired result
So is there any other way?
elif "discord" in you:
app = application.Application()
app.start("C://Users//admin//AppData//Local//Discord//Update.exe --processStart Discord.exe")
robot_brain = "runing Discord"
elif you == " exit discord":
send_keys('%{F4}') # close an active window with Alt+F4
robot_brain = " exit discord"