Jump to content

Wrobot does't press keybind from " my macros" setting


Artek

Recommended Posts

So i set in "my macros" wrobot to press specific button, in combat it only presses once, when i start wrobot and thats it, when not in combat(in city for example, it works well)
below settings.
obraz.png.a4150cff97f4f834f4990094767d09ab.png

Link to comment
Share on other sites

Hello,

Prefer to add it to your fightclass, or use a plugin like :

using robotManager.Helpful;
using System.Threading;
using wManager.Wow.Helpers;

public class AutoPressKey : wManager.Plugin.IPlugin
{
    private bool _isRunning;

    public void Initialize()
    {
        _isRunning = true;
        PressKeyThread();
    }

    public void Dispose()
    {
        _isRunning = false;
    }

    private void PressKeyThread()
    {
        while (_isRunning)
        {
            if (Conditions.InGameAndConnected)
            {
                Keyboard.PressKey(wManager.Wow.Memory.WowMemory.Memory.WindowHandle, "1");
            } 
            Thread.Sleep(1000);
        }
    }

    public void Settings(){}
}

 

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
×
×
  • Create New...