Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
inet
active_desktop
active_scrptng
asp.components
asp.db
asp.general
comctl32
comp.packaging
components.dev
dbweb
dhtml_editing
docobjects
html_authoring
html_objmodel
iis
iis.ftp
iis.security
iis.smtp_nntp
indexserver
misc
mshtml_hosting
scripting.jscript
scripting.vbscript
sdk_setup
shell_objmodel
urlmonikers
webbrowser_ctl
wininet
  
 
date: Thu, 23 Aug 2007 06:01:56 -0700,    group: microsoft.public.inetsdk.programming.scripting.vbscript        back       


Script Required   
Hi All

can anybody provide me a VBscript that opens a URL in a new browser
window and access the controls(like textboxes,images) etc values..so
that i have to enter new values into that page

Thanks & Regards
Kalyan
date: Thu, 23 Aug 2007 06:01:56 -0700   author:   kalyan

Re: Script Required   
[kalyan] wrote-:
> Hi All
> 
> can anybody provide me a VBscript that opens a URL in a new browser
> window and access the controls(like textboxes,images) etc values..so
> that i have to enter new values into that page
> 

You can use InternetExplorer.Application object.

Untested:

Set ie=CreateObject("InternetExplorer.Application")
ie.visible=true
ie.navigate "http://www.google.com"
do until ie.readyState=4
  wscript.sleep 100
loop
set doc=ie.document
set searchbox=doc.getElementsByName("q").item(0)
searchbox.value="test"
searchbox.form.submit


Good Luck, Ayush.
-- 
XP-Tips & Tricks [Use keyboard shortcuts] :
http://www.microsoft.com/windowsxp/using/setup/tips/kbshortcuts.mspx
date: Sat, 25 Aug 2007 13:15:26 -0600   author:   Ayush ayushmaan.j[aatt]gmail.com

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us