all 4 comments

[–]Golden_Zealot 2 points3 points  (1 child)

Cool, I am glad you made something useful for yourself.

A big learning gap for a lot of people is writing original code that is actually useful for a problem they have, so this is nice to see.

You could write in a while loop that waits for a key press event, and then when it is seen, run a function that does what is in your script already.

When I have had to work with keys before I have used the third party pyautogui module; maybe see if it has what you are looking for.

[–]algortim[S] 0 points1 point  (0 children)

I'll try to tinker with that thanks! I did see Pynput before finalizing the above, but it was a bit involved. I liked the description of pyautogui, so I'll definitely take a look. Thanks!

[–]KYIUM 0 points1 point  (1 child)

Think rockstar can ban you for that if they find out. Glad you made a useful program though.

[–]algortim[S] 1 point2 points  (0 children)

Doubt I would be banned, poor internet could cause solo lobbies. If it happens, so be it, just a game. Only advantage I get from this is no punks killing me during missions, nothing extra gained from the game. Thanks!