Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Steam log out #35

Open
Asmund11 opened this issue Apr 22, 2019 · 3 comments
Open

Steam log out #35

Asmund11 opened this issue Apr 22, 2019 · 3 comments
Assignees

Comments

@Asmund11
Copy link

Look. I use your program to log in. After closing Steam, if i open it again manually, i must to enter password. It's very uncomfortable. Can you make changes? I don't want enter password again and again, when i'm logging in the same account.

@rex706
Copy link
Owner

rex706 commented Apr 23, 2019

This is a problem that comes from SAM using the built in Steam login parameters. Using this method of logging in will unfortunately prevent Steam from being able to utilize the 'Remember' checkbox, which will then make you enter your password in again on the next manual open like you describe. I have even tried manipulating the memory to enable this check box when logging in with SAM, but that doesn't seem to work.

I have thought about not going this route and to have SAM auto enter the information in the login window, but the problem then becomes not knowing if there is a username entered in the first field, which would then have the input auto selected onto the password box. After a little more digging, I found out there is a -nocache launch option that may guarantee that the username field is always empty, but I will have to do more testing later when I get home. If that works I could probably just send the appropriate key presses to the client login window with some tabs to get to the next fields or something to also tick the 'Remember' check box.

You could probably just enable the SAM auto-login feature on the account you want in order to get around the problem you're facing. I don't even have a default shortcut to Steam anymore and just use SAM instead.

@rex706 rex706 self-assigned this Jul 5, 2019
@rex706
Copy link
Owner

rex706 commented Jul 13, 2019

Update: I finally figured out that Steam creates a reg key entry in Computer\HKEY_CURRENT_USER\Software\Valve\Steam called AutoLoginUser, which must be cleared to a blank value to guarantee the username field is empty when starting Steam. Deleting this key entirely prompts the user for an option to create a new account or sign into an existing one, which isn't what we want so clearing it should be enough.

Now that I have that piece sorted out, I should be able to avoid using the login parameters entirely and login with sent key presses instead. I will add a toggle for remembering password as well in the settings.

@rex706 rex706 closed this as completed Jul 16, 2019
@rex706 rex706 reopened this Jul 16, 2019
@rex706
Copy link
Owner

rex706 commented Jul 16, 2019

Reopened this issue as I am not currently 100% certain whether or not the password can be forcibly remembered by Steam while using the -login parameter.

@rex706 rex706 added the bug label Jul 16, 2019
rex706 added a commit that referenced this issue Dec 4, 2022
* Initial implementation for setting the login state of the Steam Friends window per account. Currently only works if the localconfig file already exists. #110
* Include experimental RememberPassword code. #35 #103
* Disable MainGrid on Login instead of when a button is pressed for cases like auto login. #107
* Include SteamIDs_Engine library: https://github.com/NachoReplay/SteamID-NET
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants