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.

RunCode class

Featured Replies

Does anyone know how the RunCode class works?

I want to be able to let a user enter some C# similar to the quester runcode step. The RunCode class has some Compile methods but none for running that I could decifer.

Any help would be appreciated ❤️

Hi, like that:

var CodeToRun = "var r = 1 + 1;";

                string _sourceCodeIQuesterCondition =
                    @"using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Configuration;
using System.IO;
using System.Linq;
using System.Threading;
using robotManager;
using robotManager.FiniteStateMachine;
using robotManager.Helpful;
using wManager.Wow.Class;
using wManager.Wow.Helpers;
using wManager.Wow.ObjectManager;
using Timer = robotManager.Helpful.Timer;
using wManager.Wow.Enums;

public class Main
{
    public static void Pulse()
    {
        [RUNCODE];
    }
}";

string error;
if (!robotManager.Helpful.RunCode.CompileAndInvokeStaticMethod(RunCode.CodeType.CSharp, _sourceCodeIQuesterCondition.Replace("[RUNCODE]", CodeToRun), "Main", "Pulse", out error))
    Logging.WriteError(error);

 

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.