I have found the below vbscript code that will move the mouse cursor to a particular location but I also need it to make one click wherever the cursor is at on the screen.
I need this to be done only with vbscript because the systems constraints imply so. My current code:
Option Explicit
Dim Excel, x, y
Set Excel = WScript.CreateObject("Excel.Application")
x = "111"
y = "222"
Excel.ExecuteExcel4Macro ( _
"CALL(""user32"",""SetCursorPos"",""JJJ""," & x & "," & y & ")")
WScript.Sleep (100)