Skip to content
View in the app

A better way to browse. Learn more.

WRobot

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

changewowpath error

  • Product: Relogger
  • Type: Bug
  • Status: Unconfirmed

We are talking about a relogger profile that is running and has many tasks and was running before the problems appeared. If at some point changewowpath of pofile changes (in my case, the disk volume with wow  folder simply disappeared due to a malfunction), the profile will not stop and will not throw an exception, but will continue to execute tasks, but instead of running the changewowpath task, before each Run Task, it will run wow.exe from the general relogger settings.
I think that the relogger should throw an exception if the wow path from the ChangeWowPath task is not found, even if there were no problems when starting the profile. That is, the check for the existence of the path should be not only at startup, but also inside the profile task loop.

User Feedback

Recommended Comments

Hi,

your use case is not common, the relogger checks at startup if the paths are good.

Here is a plugin (to test) that should do what you want:

using System;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Windows.Forms;
using Relogger.Classes;
using robotManager.Helpful;

namespace MyNamespace
{
    public class MyPlugin : Relogger.ReloggerPlugin
    {
        public override string Name { get { return "Stop profile if wow path not found"; } }

        bool IsRunning { get; set; }

        public override void OnStart()
        {
            IsRunning = true;
            var timer = Stopwatch.StartNew();
            while (IsRunning)
            {
                if (timer.ElapsedMilliseconds > 10000)
                {
                    timer.Restart();
                    try
                    {
                        for (int i = 0; i < ReloggerGeneralSettings.CurrentSetting.Profiles.Count; i++)
                        {
                            var p = ReloggerGeneralSettings.CurrentSetting.Profiles[i];
                            if (p.Status == Relogger.Classes.Status.Running)
                            {
                                var changeWowPathTasks = p.Settings.Tasks
                                    .Where(t => t.Task.TaskType == TaskType.ChangeWowPath).ToList();
                                if (changeWowPathTasks.Any())
                                {
                                    foreach (var task in changeWowPathTasks)
                                    {
                                        if (task.Task is ChangeWowPathReloggerTask taskTask)
                                        {
                                            if (!File.Exists(taskTask.WowPath))
                                            {
                                                Logging.WriteError(Name + " > Wow path not found: " + taskTask.WowPath);
                                                p.Stop();
                                                break;
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                    catch (Exception e)
                    {
                        Logging.WriteError(Name + " > " + e);
                    }
                }

                System.Threading.Thread.Sleep(500);
            }
        }
        public override void OnStop()
        {
            IsRunning = false;
        }

        public override void OnButtonPress()
        {
            MessageBox.Show("No available.");
            base.OnButtonPress();
        }
    }
}

 

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.