2013-07-10 32 views
0

我使用這個功能,但SetCursorPos 私人聲明函數SetCursorPos庫 「USER32」(BYVAL X作爲的Int32,BYVALÿ作爲Int32)已作爲的Int32C# - 把光標移動功能定位的Windows 8

但我遭遇了一點小問題當我去到Windows 8的角落。它不會調用側邊菜單,開始菜單,等等。

如果有人知道任何可導入的函數'MouseMove'?因此,這將是Windows8的

回答

0

的智能屏更好的支持後,我接到了輸入模擬一個適當的開源庫上http://inputsimulator.codeplex.com/

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

這對我工作代碼。