julianperrott/FishingFun

Using vendor mounts

BanditTech opened this issue · 1 comments

We can send a string to the window by calling this function:

public int sendWindowsStringMessage(int hWnd, int wParam, string msg)
{
    int result = 0;
    
    if (hWnd > 0)
    {
        byte[] sarr = System.Text.Encoding.Default.GetBytes(msg);
        int len = sarr.Length;
        COPYDATASTRUCT cds;
        cds.dwData = (IntPtr)100;
        cds.lpData = msg;
        cds.cbData = len + 1;
        result = SendMessage(hWnd, WM_COPYDATA, wParam, ref cds);
    }
    
    return result;
}

And passing lines such as "/use Grand Expedition Yak" and "/target Cousin Slowhands" to then press the interact with target button... and pause for addons to do their magic.

Interesting?

Hi, I tried to get this working on classic, but have failed :(