如何模拟鼠标点击程序本身某个位置?
我是在程序里框了一个网页
然后要模拟鼠标点击其中某个位置。
关键还需要当程序在后台时也能继续点。
------解决方案--------------------获取那个链接的url
webBrowser.Navigate(url)
------解决方案--------------------你当真以为写鼠标模拟点击的程序真的是在“点击”吗。。。。
------解决方案--------------------
程序在后台把他弹到前台可以么?然后调用这两个api
       [DllImport("user32.dll", CharSet = CharSet.Auto, SetLastError = true)] 
       static extern int SetCursorPos(int x,int y); 
       [DllImport("user32.dll", CharSet = CharSet.Auto, SetLastError = true)] 
       static extern void mouse_event(int dwFlags,int dx,int dy,int cButtons, int dwExtraInfo); 
       public const int MOUSEEVENTF_LEFTDOWN = 0x2; 
       public const int MOUSEEVENTF_LEFTUP = 0x4;