Jump to content

How save last LoadProfile?


d-one
 Share

Recommended Posts

Hello! How save last LoadProfile?

So example we have Profile 1 and 2. 
Loaded profile 2 and if bot stop/start  again profile 1 Started

Me need save settings in bot last load profile help pls

Link to comment
Share on other sites

Hello, use code like: 

        Quester.Bot.QuesterSetting.Load();
        if (Quester.Bot.QuesterSetting.CurrentSetting != null)
        {
            Quester.Bot.QuesterSetting.CurrentSetting.ProfileName = "nouveau nom de profil";
            Quester.Bot.QuesterSetting.CurrentSetting.Save();
        }

 

Link to comment
Share on other sites

2 hours ago, Droidz said:

Hello, use code like: 

        Quester.Bot.QuesterSetting.Load();
        if (Quester.Bot.QuesterSetting.CurrentSetting != null)
        {
            Quester.Bot.QuesterSetting.CurrentSetting.ProfileName = "nouveau nom de profil";
            Quester.Bot.QuesterSetting.CurrentSetting.Save();
        }

 

Use in Action type-RunCode and not working (
It's work for 1.12.1?

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
 Share

×
×
  • Create New...