
sendkeys right mouse click...
Hi,
Not with straight VBS. Can you install an ActiveX in your environment?
Hiddensoft's AutoItX freeware can be set and called from vbs to perform very
articulate mouse clicks, so long as it can identify the window (menu). For
mouse clicks, download the full AutoIt freeware package (not just the
AutoItX component). You'll need AutoIt Reveal Mode to get the data for the
coordinates inside the window, to set the method for the click location.
AutoIt comes with an explanatory CHM file, and there is an online help
group. AutoItX works inside scripting languages (like VBS). AutoIt by
itself is a separate standalone script that also compiles to exe files, and
you may be able to do this entirely with AutoIt, without having to install
the ActiveX or work though VBS.
Also, the AutoItX version of Send is more articulate than VBS's SendKeys,
and it includes the Windows Application Key (the context menu key), which
may get you the equivalent of your right click without having to simulate a
mouse click.
http://www.hiddensoft.com/autoit/
help group
http://groups.yahoo.com/group/autoitlist/
Joe Earnest
Quote:
> i know this isn't possible with standard sendkeys but does anyone know of
a
> third party way of using sendkeys to perform a left or right mouse click
> after the user highlighted a file first?