Thank you for being a valued part of the CNET community. As of December 1, 2020, the forums are in read-only format. In early 2021, CNET Forums will no longer be available. We are grateful for the participation and advice you have provided to one another over the years.

Thanks,

CNET Support

General discussion

Is there a VB Script command for....

Oct 10, 2007 10:09AM PDT

clicking a button or clicking the mouse?

I'm in need of a line of code in VB Script

which will click a mouse.


I'm writing it with Windows Server Host in Windows

2000.


Thanks for any help.

Discussion is locked

- Collapse -
See sendkeys.
Oct 10, 2007 10:25AM PDT
- Collapse -
www.autohotkey.com
Oct 12, 2007 2:02AM PDT

This is a free download and goes way past VB Scripting.

It's more technical and harder to get up and running unless
one has at least basic scripting/programming knowledge.

I was able to get the button coordinates I needed using an add-on
program that came with autohotkey called "Window spy " (it is a real time scanner of the active window - really cool).