0

hello I am trying to have a cursor left click and hold from a batch file. I am using the command nircmd movecursor X Y to move the cursor I just need a way for my mouse to left click and hold it. an example would be to move a window in windows using this script

@echo off
nircmd.exe setcursor X Y ::move the cursor into position
left click and hold
nircmd.exe movecursor X Y ::move the window into position

what I am trying to do specifically needs a setup like this. I can use other languages if that would be easier. Thanks

MathMXC
  • 319
  • 1
  • 3
  • 14

1 Answers1

2

you can try with mouse.bat.I think the drag switch is what you need:

//relative drag (lefclick and move)
call mouse dragBy 300x200

//absolute drag
call mouse dragTo 500x500

More examples can be seen here.

Community
  • 1
  • 1
npocmaka
  • 55,367
  • 18
  • 148
  • 187