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: Sat, 18 Mar 2006 18:46:15 +0800,    group: microsoft.public.inetsdk.programming.scripting.vbscript        back       


Schedule a script that will kick start IE   
Hi,

I am trying to writing a script but have some difficulties when implementing
it in the windows task scheduler. Therefore, I would like to seek your
advise.

The script works like this: It will luanch a URL through IE, in which some
texts will be entered automatically into the webpage, then a buttom in the
webpage will be clicked to kick-start some program.

I finished the script and it runs just fine. Then, when I tried to schedule
this script to run every night through the Windows task scheduler, it
failed.

I believe the reason might be that the windows was locked when the script
was kicked start and the send-key portion of the script failed to work as
intended.

Would you guys help me out pls?

Thank you very much!

Regards,
Michael
date: Sat, 18 Mar 2006 18:46:15 +0800   author:   michael lam

RE: Schedule a script that will kick start IE   
Do you run this under the current user account?

If not there is no GUI, so SendKeys will not have any succes.

Also do you schedule your script under cscript?
i.e.: commandline cscript abc.vbs?



"michael lam" wrote:

> Hi,
> 
> I am trying to writing a script but have some difficulties when implementing
> it in the windows task scheduler. Therefore, I would like to seek your
> advise.
> 
> The script works like this: It will luanch a URL through IE, in which some
> texts will be entered automatically into the webpage, then a buttom in the
> webpage will be clicked to kick-start some program.
> 
> I finished the script and it runs just fine. Then, when I tried to schedule
> this script to run every night through the Windows task scheduler, it
> failed.
> 
> I believe the reason might be that the windows was locked when the script
> was kicked start and the send-key portion of the script failed to work as
> intended.
> 
> Would you guys help me out pls?
> 
> Thank you very much!
> 
> Regards,
> Michael
> 
> 
>
date: Sun, 26 Mar 2006 14:44:54 -0800   author:   wimZ

Google
 
Web ureader.com


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