Question

I am using this function but SetCursorPos Private Declare Function SetCursorPos Lib "user32" (ByVal x As Int32, ByVal Y As Int32) As Int32

But i suffered a little problem that when i go to the corners of windows 8. It doesn't invoke side menus, start menus , ... etc ..

If anyone knows any importable function 'MouseMove' ? So it would be better support to Smart Screen of Windows8

Était-ce utile?

La solution

Later I got the a proper opensource library for input simulation on http://inputsimulator.codeplex.com/

 var   inputSimulator = new InputSimulator(); 
    inputSimulator.Mouse.MoveMouseBy(pixX, pixY);

This code work for me .

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top