Hey guys, i've been messing around with this and can't find out whats wrong with it X_x


public class Win32APICall
{
[DllImport("user32.dll", EntryPoint = "mouse_event")]
public static extern void mouse_event(int dwFlags, int dx, int dy, int cButtons, int dwExtraInfo);

public const int MOUSEEVENTF_LEFTDOWN = 0x02;
public const int MOUSEEVENTF_LEFTUP = 0x04;
public const int MOUSEEVENTF_RIGHTDOWN = 0x08;
public const int MOUSEEVENTF_RIGHTUP = 0x10;
}

private void button1_Click(object sender, EventArgs e)
{
Win32APICall.mouse_event(Win32APICall.MOUSEEVENTF_LEFTDOWN, 544, 472, 0, 0);
Win32APICall.mouse_event(Win32APICall.MOUSEEVENTF_LEFTUP, 544, 472, 0, 0);
}


I click the button, and the mouse stays in the exact same spot. I'm trying to get it to click a link that's in a webbrowser on the form. I checked coordinates, they are right. I tried a whole bunch of times, nothing changes in there. There are no errors either. Any ideas? Thx.