- @echo off
- Call:Mouse-LeftClick 80,80
- pause
- goto :eof
- :Mouse-LeftClick
- powershell -noprofile -executionpolicy bypass "Add-Type 'using System.Runtime.InteropServices;public class Mouse{[DllImport("user32")]private static extern void mouse_event(int dwFlags, int dx, int dy, int cButtons, int dwExtraInfo);[DllImport("user32")]public static extern bool SetCursorPos(int x, int y);private const int MOUSEEVENTF_CLICK=0x02|0x04;Mouse(){}public static void LeftClick(int x,int y){SetCursorPos(x,y);mouse_event(MOUSEEVENTF_CLICK,0,0,0,0);}}';[mouse]::LeftClick(%1,%2)"
- goto :eof
复制代码 |