How to Move the mouse using VBScript

前端 未结 2 857
鱼传尺愫
鱼传尺愫 2021-01-22 14:38

I am trying to move the mouse using VBScript. I tried to use Sendkeys \"{CLICK LEFT , x , y}\" and Sendkeys \"{MOVETO, 10 , 20}\" but it isn\'t workin

2条回答
  •  遥遥无期
    2021-01-22 15:16

    VBScript can't do this natively. You'd have to do some calls to the Windows API or some other library that can do this for you.

    As an alternative, you may want to consider a different scripting language, like AutoHotKey which can do this in one simple line of code for you.

提交回复
热议问题