Quantcast
Channel: Active questions tagged python - Stack Overflow
Viewing all articles
Browse latest Browse all 23131

Run .exe file in python with geany

$
0
0

I’m using python on geany and would love to know how I could get it to run a .exe file on my computer. Wait 10 seconds then run a hotkey.

Its running no errors but just not doing anything.also would it be possible to get my friends online to be able to run this onto my always on laptop from their computer when im gone

import osimport timeimport pyautoguidef auto_stream():    #path to obs     obs_path = "C:\\Program Files\\obs-studio\\bin\\64bit\\obs64.exe"    # start obs    os.startfile = (obs_path)    #time for obs to start up    time.sleep(10)    #press start stream hotkey    pyautogui.hotkey('ctrl', 'alt', '8')auto_stream()

Viewing all articles
Browse latest Browse all 23131

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>