static void OnLoggedOff(SteamUser.LoggedOffCallback callback) { IsLoggedIn = false; CurrentPersonaState = 0; Console.WriteLine("[" + Program.BOTNAME + "] - Logged off of Steam: {0}", callback.Result); InfoForm.InfoHelper.CustomMessageBox.Show("Error", "Logged off of Steam:" + callback.Result); }
private void OnLoggedOff(SteamUser.LoggedOffCallback callback) { Application.ChangelistTimer.Stop(); Log.WriteInfo("Steam", "Logged out of Steam: {0}", callback.Result); IRC.Instance.SendEmoteAnnounce("logged out of Steam: {0}", callback.Result); }
private void OnLoggedOff(SteamUser.LoggedOffCallback callback) { //if we are shutting down - ok; if drop - throw if (_isRunning == SteamManagerStatus.Stopped) { return; } _exception = new SteamLoginException("Unexpectedly logged off"); }
private void OnLoggedOff(SteamUser.LoggedOffCallback obj) { logger.Warn("Steam user logged off with result {result}", obj.Result); logger.Warn("Client is connected: {isConnected}", client.IsConnected); if (client.IsConnected) { user.LogOnAnonymous(); } }
private void OnLoggedOff(SteamUser.LoggedOffCallback callback) { if (callback == null) { return; } Logging.LogGenericInfo(BotName, "Logged off of Steam: " + callback.Result); }
private static void OnLoggedOff(SteamUser.LoggedOffCallback callback) { Log.Instance.Warn("Logged off from Steam for reason: " + callback.Result + ", logging in again..."); foreach (var trigger in triggers) { trigger.OnLoggedOff(); } LogOn(); }
private static void OnLoggedOff(SteamUser.LoggedOffCallback callback) { Log.Info("Logged off"); isLoggedOn = false; if (quitOnDisconnect) { steamClient.Disconnect(); } }
// Run when given logged off callback // Resets logonmanager to default state private void OnLoggedOff(SteamUser.LoggedOffCallback callback) { UpdateUILabel("System logged off"); user = null; pass = null; twoFactorAuth = null; authCode = null; loggedOn = false; attemptedToConnect = false; }
private void OnLoggedOff(SteamUser.LoggedOffCallback callback) { Application.ChangelistTimer.Stop(); Log.WriteInfo("Steam", "Logged out of Steam: {0}", callback.Result); IRC.Instance.SendEmoteAnnounce("logged out of Steam: {0}", callback.Result); GameCoordinator.UpdateStatus(0, callback.Result.ToString()); }
private void OnLoggedOff(SteamUser.LoggedOffCallback callback) { Timer.Stop(); Log.WriteInfo("Steam", "Logged out of Steam: {0}", callback.Result); IRC.SendMain("Logged out of Steam: {0}{1}{2}. See{3} http://steamstat.us", Colors.OLIVE, callback.Result, Colors.NORMAL, Colors.DARK_BLUE); IRC.SendEmoteAnnounce("logged out of Steam: {0}", callback.Result); GameCoordinator.UpdateStatus(0, callback.Result.ToString()); }
private void OnLoggedOff(SteamUser.LoggedOffCallback callback) { if (IsLoggedOn) { Bootstrap.Broadcast(new LogOffEvent()); IsLoggedOn = false; } Bootstrap.Log("Logged off from Steam"); }
void OnLoggedOff(SteamUser.LoggedOffCallback callback) { if (callback == null) { return; } isConnected = false; isRunning = false; form.AddLog(String.Format("[ERROR] Disconnected from steam: {0}", callback.Result)); form.ToggleAll(false); }
static void OnLoggedOff(SteamUser.LoggedOffCallback callback) { if (callback == null) { return; } informationsteam = (String.Format("Отключен от стима: {0}", callback.Result)); if (callback.Result == EResult.LoggedInElsewhere) { isRunning = false; } }
static void OnLoggedOff(SteamUser.LoggedOffCallback callback) { Console.WriteLine("Logged off of Steam: {0}", callback.Result); System.Threading.Thread.Sleep(5000); steamUser.LogOn(new SteamUser.LogOnDetails { Username = username, Password = password, }); return; }
static void OnLoggedOff(SteamUser.LoggedOffCallback callback) { if (callback == null) { return; } informationsteam = (String.Format("Disconnected from steam: {0}", callback.Result)); if (callback.Result == EResult.LoggedInElsewhere) { isRunning = false; } }
private void OnLoggedOff(SteamUser.LoggedOffCallback callback) { if (callback.Result.ToString().Contains("LoggedInElsewhere")) { accounts.Add(new AccountDetails() { login = $"{username}:{password}", steam64id = steamid }); } else { Console.WriteLine($"Logged off of Steam: {callback.Result}"); } }
static void OnLoggedOff(SteamUser.LoggedOffCallback callback) { if (callback == null) { throw new ArgumentNullException(nameof(callback)); } LastLogOnResult = callback.Result; IsLoggedIn = false; CurrentPersonaState = 0; Console.WriteLine("[" + Program.BOTNAME + "] - Logged off of Steam: {0}", callback.Result); InfoForm.InfoHelper.CustomMessageBox.Show("Error", "Logged off of Steam:" + callback.Result); }
public override void OnLoggedOff(SteamUser.LoggedOffCallback callback) { if (callback.Result == EResult.LoggedInElsewhere || callback.Result == EResult.AlreadyLoggedInElsewhere) { Result = Result.AlreadyLoggedInSomewhereElse; } if (Result == Result.AlreadyLoggedInSomewhereElse) { _log.Warning("Account is already logged on somewhere else. Skipping..."); } else { _log.Debug("Successfully logged off from Steam: {Result}", callback.Result); } }
} // Wird gecalled wenn wir uns einloggen static void OnLoggedOff(SteamUser.LoggedOffCallback callback) { Console.Title = "Steam Bot - Logged off"; Console.WriteLine($"(WARNING) Steam logged us of: {callback.Result}", Color.OrangeRed); Console.WriteLine("(HELP US) Please send us a screenshot of this error!", Color.Yellow); Console.WriteLine("(INFORMATION) Logging back in.", Color.SkyBlue); steamUser.LogOn(new SteamUser.LogOnDetails { Username = user, Password = pass, AuthCode = authcode, TwoFactorCode = twofactor, //SentryFileHash = sentryHash, }); loggedBackOn = true; } // Wird gecalled wenn wir ausgelogged werden
private void OnLoggedOff(SteamUser.LoggedOffCallback obj) { logger.Info($"Log off from Steam with bot {BotName} by reason: {obj.Result.ToString()}"); if (obj.Result == EResult.LoggedInElsewhere) { logger.Error($"Error occuried with bot {BotName}. Maybe there are some problems with bot... Change bot state to 'Crashed'", new Exception()); botManager.UpdateBotState(EBotState.Crashed); return; } if (obj.Result == EResult.LogonSessionReplaced) { return; } logger.Info("Disconnecting from SteamClient..."); steamClient.Disconnect(); }
public void HandleCallback(CallbackMsg msg) { if (msg.IsType <SteamClient.ConnectCallback>()) { int retryCount = SteamService.GetClient().GetRetryCount(); String retries = (retryCount > 0) ? " (retry " + retryCount + ")" : ""; SteamAlerts.ShowProgressDialog("Connecting", "Logging in..." + retries, this); } else if (msg.IsType <SteamUser.LogOnCallback>()) { SteamUser.LogOnCallback callback = (SteamUser.LogOnCallback)msg; if (callback.Result == EResult.AccountLogonDenied) { RequestAuthKey(); } else if (callback.Result == EResult.InvalidLoginAuthCode) { InvalidAuthKey(); } else if (callback.Result == EResult.InvalidPassword) { SteamAlerts.ShowAlertDialog("Invalid credentials", "Invalid username or password", this); } else if (callback.Result == EResult.AlreadyLoggedInElsewhere) { SteamAlerts.ShowAlertDialog("Already logged in", "This Steam account is already logged in elsewhere", this); } } else if (msg.IsType <SteamUser.LoggedOffCallback>()) { SteamUser.LoggedOffCallback callback = (SteamUser.LoggedOffCallback)msg; if (callback.Result == EResult.InvalidProtocolVer) { SteamAlerts.ShowAlertDialog("Error", "Invalid protocol version", this); } } UpdateButtons(); }
//on Logg off function public void OnLoggedOff(SteamUser.LoggedOffCallback callback) { Console.WriteLine($"Logged off succesfully {callback.Result}"); }
static void OnLoggedOff(SteamUser.LoggedOffCallback callback) { Console.WriteLine("Logged off of Steam: {0}", callback.Result); }
private void onLoggedOff(SteamUser.LoggedOffCallback callback) { onLoggedOffEvent.Set(); }
static void OnLoggedOff(SteamUser.LoggedOffCallback callback) { }
public abstract void OnLoggedOff(SteamUser.LoggedOffCallback callback);
private void OnLoggedOff(SteamUser.LoggedOffCallback callback) { Log.WriteInfo("SteamAnonymous", "Logged out of Steam: {0}", callback.Result); }
private void OnSteambotLoggedOff(SteamUser.LoggedOffCallback callback) { stop = true; LoggedIn = false; Console.WriteLine("Logged off of Steam: {0}", callback.Result); }
private void OnLoggedOff(SteamUser.LoggedOffCallback callback) { Trace.WriteLine(string.Format("Logged off of Steam: {0}", callback.Result), "Steam"); }
private void OnLoggedOff(SteamUser.LoggedOffCallback callback) { Console.WriteLine($"Logged off of Steam: {callback.Result}"); }