troubleshooting Question

vbs mouse event for IE window

Avatar of SRG041808
SRG041808Flag for United States of America asked on
Web BrowsersVB Script
10 Comments1 Solution2049 ViewsLast Modified:
I need to create a vbs script that can click a specific spot inside an Internet Explorer window...

navigating to the site works fine

I have attached my current code....

dim Window
set Window = CreateObject("InternetExplorer.Application")
Window.RegisterAsBrowser = True
Window.Navigate("websitegoeshere"& PWORD)
Window.MenuBar = True
Window.ToolBar = False
Window.AddressBar = True
Window.StatusBar = True
Window.FullScreen = False
Window.Resizable = True
Window.Visible = True
Window.Width = 800
Window.Height = 600 
'below here is where it gets all messed up or appears to not click anything
Dim dest_x 
Dim dest_y 
dest_x = 18078
dest_y = 18078
' Move the mouse to its final destination and click it.
    mouse_event _
        dest_x, dest_y, 0, 0
Mike Tomlinson
High School Computer Science, Computer Applications, Digital Design, and Mathematics Teacher
Join our community to see this answer!
Unlock 1 Answer and 10 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 10 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros