#๐Ÿ”’ run python code in a "seperate process?"

9 messages ยท Page 1 of 1 (latest)

raven stag
#

i use pyautogui to simulate something in a game -> it uses my keybinds eg w a s d, mouse clicking etc

the problem is that i need to keep my focus on the game. i cant minimize the game and do something else with my laptop as it is still using my keyboard.

eg i run it, i try to change to youtube -> will try typing w w d as all the time because the script thinks i am in my game.

i need a way to create two "instances of keyboards" where one only runs in my game and my other one is my normal keyboard

ornate fogBOT
#

@raven stag

Python help channel opened

Remember to:

  • Ask your Python question, not if you can ask or if there's an expert who can help.
  • Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
  • Explain what you expect to happen and what actually happens.

:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.

formal onyx
#

im not too familiar with this library, but is there a way to only affect the window if your tab is focused on it?

raven stag
#

no idea

patent veldt
#

another way is to just buy another PC. Any 2nd hand PC could work for your Youtube enjoyment

raven stag
#

Iโ€™ll just let it run on my raspberry pi I guess

ornate fogBOT
#
Python help channel closed for inactivity

This help channel has been closed. Feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.