Jump to content

No prompt for user after forceful terminate - RememberLogin still False


markm75

Recommended Posts

I have the situation, where i have 2 users.. if i log in as one of them and not check off "remember me", then close the program via the normal methods (close via the x), I relaunch, i am still prompted for a user (good)..

 

But in my situation i have a batch file that i run to relaunch apps and it uses the taskkill processname.exe /f /t

 

If i run this and re-launch MBT, i am no longer prompted for that last user that was logged in.. it simply loads it as if it were never closed and already logged in.

(the command that is launched just after the taskkill is   start "" /max C:\Users\USERIDHERE\AppData\Roaming\MediaBrowser-Theater\System\MediaBrowser.UI.exe

 

Seems if i run my batch file.. i see the already logged in situation, then manually close the app.. then reopen via the normal shortcut, it then works as expected..

**edit:  if i use the taskkill, run the app from its normal start menu shortcut, already logged in situation.. then manually close and reclick start menu item, no longer logged in.

 

I checked in system.xml and the rememberlogin is still set to false..

 

Any ideas why this might be occurring?

 

Thanks in advance

Edited by markm75
Link to comment
Share on other sites

Actually, it appears even ALT-F4 and reopening it from the shortcut results in the user staying logged in.. not just a taskkill command  (only clicking the X is the safe way to relaunch without the user being logged in).. So unless there is a way to programmatically make it do the "X" click, this wont work.. or if media browser theater has a command line switch to force user login on launch.

 

UPDATE:  So i realized the basic commands to exit the app (if logged in) were escape, right, enter.. and that if you are on the login screen being prompted for a user the only option is the X to close or alt F4..
 
I put the following in a file called taskclose.vbs and called it from the batch file that i use to re-launch the application..
 
 
 
Set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.AppActivate "Media Browser Theater"
WshShell.SendKeys "{ESCAPE}"
WshShell.SendKeys "{RIGHT}"
WshShell.SendKeys "{ENTER}"
WshShell.SendKeys "%{F4}"
 
 
By doing the typical "logged in" commands first, this covers 99% of the situations of reopening.. then throw in the ALT F4 for the situation where you are at the login prompt window and still need to close.. as the commands of escape / right enter, wont do any harm from the main window (assuming the second login to the right has an actual password and wont then login).
 
This solves it for me for now, until a better solution exists (to force the selection of user even after an alt f4 type close).
Edited by markm75
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...