Jump to content
  • Relogger Working Schedule Randomizer fields


    Pudge
    • Product: Relogger Type: Suggestion Status: Unconfirmed
     Share

    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?


     Share


    User Feedback

    Recommended Comments

    There are no comments to display.



    Join the conversation

    You can post now and register later. If you have an account, sign in now to post with your account.

    Guest
    Add a comment...

    ×   Pasted as rich text.   Paste as plain text instead

      Only 75 emoji are allowed.

    ×   Your link has been automatically embedded.   Display as a link instead

    ×   Your previous content has been restored.   Clear editor

    ×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...