|
-
Dec 29th, 2010, 01:58 AM
#1
Thread Starter
New Member
How to click Alt+Double click in browser using vb.Net
Hi,
My Requirement is i want to open one browser and navigate to google.com
Then i want click Alt+Double click on the browser.
Please help me...
My Code is:
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
IE = CreateObject("InternetExplorer.Application")
IE.navigate("http://www.google.co.in")
IE.Visible = True
Do Until IE.readyState = 4
'DoEvents()
Loop
SetCursorPos(300, 100)
wshShell = CreateObject("WScript.Shell")
wshShell.SendKeys("%") ' To press Alt key.
mouse_event(MOUSEEVENTF_LEFTDOWN, 300, 100, 0, 0)
mouse_event(MOUSEEVENTF_LEFTUP, 300, 100, 0, 0)
mouse_event(MOUSEEVENTF_LEFTDOWN, 300, 100, 0, 0)
mouse_event(MOUSEEVENTF_LEFTUP, 300, 100, 0, 0)
End Sub
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|