SAM icon indicating copy to clipboard operation
SAM copied to clipboard

Steam log out

Open Asmund11 opened this issue 5 years ago • 3 comments

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.

Asmund11 avatar Apr 22 '19 18:04 Asmund11

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 avatar Apr 23 '19 14:04 rex706

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 avatar Jul 13 '19 20:07 rex706

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 avatar Jul 16 '19 21:07 rex706