森思:想用vbs來控制鼠標的移動和點擊,雖然按鍵精靈可以做到,但做這么簡單的事情不想啟動那么大一個程序,所以自己用VC寫了一個小程序,可以讓VBS來控制鼠標移動和點擊。
用法:
移動鼠標到桌面坐標200,50的vbs命令如下:
CreateObject("WScript.Shell").Run "mouse.exe m,200,50"
點擊鼠標左鍵的vbs命令如下:
CreateObject("WScript.Shell").Run "mouse.exe l"
點擊鼠標右鍵的vbs命令如下:
CreateObject("WScript.Shell").Run "mouse.exe r"
雙擊鼠標左鍵的vbs命令如下:
CreateObject("WScript.Shell").Run "mouse.exe d"