我使用以下代码:
但如何使它适用于向下滚动呢?
private const int MOUSEEVENTF_WHEEL = 0x0800;
public void MouseWheelUp()
{
mouse_event(MOUSEEVENTF_WHEEL, 0, 0, 120, 0);
}
但如何使它适用于向下滚动呢?
[DllImport("user32.dll", CharSet = CharSet.Auto, CallingConvention = CallingConvention.StdCall)] public static extern void mouse_event(uint dwFlags, uint dx, uint dy, uint cButtons, UIntPtr dwExtraInfo);
- Michal Ciechan