I use Adobe products (such as Premiere Pro/Photoshop) a lot and wanted to have Discord Rich Presence implementation. I found a very useful python script for this: https://github.com/smokes/adobe-rpc
If I manually execute it (opens command prompt) it works perfectly fine, it detects my Discord and Premiere Pro/Photoshop and displays it correctly in Discord.
However I wanted to run this script when I launch Premiere Pro/Photoshop so I used a batch file for this:
@echo off
start "Premiere Pro" "C:\Program Files\Adobe\Adobe Premiere Pro CC 2019\Adobe Premiere Pro.exe"
ping -n 20 localhost
python "E:\Software\Python\Adobe Discord Rich Presence\adobe-rpc-master\rpc.py"
It opens the script as it should but when it actually launches the script, the script can not find Discord or the Adobe software. It just states "Run Adobe/Discord App".
I have tested the script by opening a fresh Command Prompt and dragging the script in: same result as stated above. It can not find Discord or the Adobe software.
This is very strange to me as I can perfectly run it if I open it manually but not if I run it in the Command Prompt?
Furthermore, Python does not give an actual error message, just the "error message" that is built inside the script.
When I launch it manually, it opens in the Command Prompt so I am very confused as to why this happens.
Can anyone explain this/help me? I am very new to the Command Prompt and Python.