Change steam online status (e.g. Online) #421
-
| I'm looking to achieve the same as going into the Steam desktop client > Friends > Online. self.client = SteamClient() self.client.cli_login(username, password) self.client.change_status(persona_state=EPersonaState.Online)No errors, just doesn't change anything on the Steam desktop client. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
| I'm going to assume this is because I'm creating a new steam client, not connecting to my existing one. Is this project capable of that? |
Beta Was this translation helpful? Give feedback.
-
| When you call Note that you can't use this to control you Steam desktop client. For example, if you want to create a script change your status. |
Beta Was this translation helpful? Give feedback.
When you call
self.client.change_status(...)a message is queued to be sent. You need to yield to thegeventevent loop to allow the message to be processed. You could useclient.idle()orclient.sleep(seconds). That would change the online status ofclientinstance, which a separate session for your account that the session on Steam desktop. If your status changes in one session, it may display in other sessions, like when you are playing a game, etc. Once you kill that session, it will revert back.Note that you can't use this to control you Steam desktop client. For example, if you want to create a script change your status.