Jump to content
  • Relogger Working Schedule Randomizer fields


    Pudge
    • Product: Relogger Type: Suggestion Status: Unconfirmed

    Hello, could you add a similar function to the relogger to randomize the profile launch schedule, just if you do it through the plugin, the launch setting changes forever, but I would like the default values to be saved.
     

    for (int i = 0; i < Relogger.Classes.ReloggerGeneralSettings.CurrentSetting.Profiles.Count; i++)
                {
                    
                    var p = Relogger.Classes.ReloggerGeneralSettings.CurrentSetting.Profiles[i];
                    if (p.Settings.ScheduleFrom.TimeOfDay != new TimeSpan(0, 0, 0))
                    {
                      var rndseconds = Others.Random(30, 120);
                        var rnd = Others.Random(1, 2);
                        if (rnd == 1)
                        {
                            p.Settings.ScheduleFrom.AddSeconds(rndseconds);
                            Logging.Write(rndseconds + " was added to " + p.Name + " shedulefrom");
                        }
                        else
                        {
                            p.Settings.ScheduleFrom.AddSeconds(-rndseconds);
                            Logging.Write(rndseconds + " was taken away from " + p.Name + " shedulefrom");
                        }
    
                    }
    
                    if (p.Settings.ScheduleTo.TimeOfDay != new TimeSpan(23, 59, 59))
                    {
                      var rndseconds = Others.Random(30, 120);
                        var rnd = Others.Random(1, 2);
                        if (rnd == 1)
                        {
                            p.Settings.ScheduleTo.AddSeconds(rndseconds);
                            Logging.Write(rndseconds + " was added to " + p.Name + " ScheduleTo");
                        }
                        else
                        {
                            p.Settings.ScheduleTo.AddSeconds(-rndseconds);
                            Logging.Write(rndseconds + " was taken away from " + p.Name + " ScheduleTo");
                        }
                    }
                }

    Or maybe you know how you can change these parameters without saving in the interface?



    User Feedback

    Recommended Comments

    There are no comments to display.



    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...