I
ILT5000
Guest
Hello,
When i use SendInput for scrolling, the execution is delayed.
(Sorry, I completely edited the post because i thought it's a mouse hook related problem but i figured it out to test it without the hook.)
I can scroll with the following code but it scrolls with a delay.
(I position the mouse over the browser and press a button that executes the code by the "enter" key).
Is the delayed action a normal behaviour, i can find nothing about it.
INPUT m_input = new INPUT();
Point p;
GetCursorPos(out p);
m_input.type = INPUT_MOUSE;
m_input.mi.dx = p.X;
m_input.mi.dy = p.Y;
m_input.mi.dwFlags = 0x01000;
m_input.mi.dwExtraInfo = IntPtr.Zero;
m_input.mi.mouseData = 120;
m_input.mi.time = 0;
SendInput(1, ref m_input, Marshal.SizeOf(m_input));
Continue reading...
When i use SendInput for scrolling, the execution is delayed.
(Sorry, I completely edited the post because i thought it's a mouse hook related problem but i figured it out to test it without the hook.)
I can scroll with the following code but it scrolls with a delay.
(I position the mouse over the browser and press a button that executes the code by the "enter" key).
Is the delayed action a normal behaviour, i can find nothing about it.
INPUT m_input = new INPUT();
Point p;
GetCursorPos(out p);
m_input.type = INPUT_MOUSE;
m_input.mi.dx = p.X;
m_input.mi.dy = p.Y;
m_input.mi.dwFlags = 0x01000;
m_input.mi.dwExtraInfo = IntPtr.Zero;
m_input.mi.mouseData = 120;
m_input.mi.time = 0;
SendInput(1, ref m_input, Marshal.SizeOf(m_input));
Continue reading...