[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [amibroker] Automation -- More than 'URLGet' -- Done



PureBytes Links

Trading Reference Links




Does 
that technique capture images as well as the text?
<FONT face=Arial color=#0000ff 
size=2> 
<FONT face=Arial color=#0000ff 
size=2>d

  
  <FONT 
  face=Tahoma size=2>-----Original Message-----From: salil_gangal 
  [mailto:salil_gangal@xxxxxxxxx] Sent: Sunday, August 03, 2003 12:22 
  PMTo: amibroker@xxxxxxxxxxxxxxxSubject: [amibroker] 
  Automation -- More than 'URLGet' -- 
  DonexxDingo,Thanks.The automation is 
  done !  Tomasz was right,  Automation should be paid more 
  attention.But then again (as always) I want more !  Now I wonder 
  if there is something like 'grep' or 'awk' available in WSH.  If not, 
  it is not a problem I can invoke batch file containing PERL within WSH and 
  move forward 
  anyways.///////////////////////////////////////////////////////////////////WScript.Echo( 
  "invoking IE");var IE = new 
  ActiveXObject("InternetExplorer.Application");WScript.Echo( "opening 
  file");var fso = new ActiveXObject("Scripting.FileSystemObject"); file 
  = fso.OpenTextFile( "C:\\FILE.txt", 2, true ); IE.visible = 
  true;IE.navigate("urs you want");while( IE.busy ) { 
  }WScript.Echo( "getting inner HTML");var innerHTML = 
  IE.document.body.innerHTML;WScript.Echo( "writing to 
  file");file.Write( innerHTML ); WScript.Echo( "closing 
  file");file.Close(); WScript.Echo( 
  "quitting");IE.quit();WScript.Echo( 
  "done");///////////////////////////////////////////////////////////////////Regards,- 
  Salil V Gangal--- In amibroker@xxxxxxxxxxxxxxx, "dingo" 
  <dingo@xxxx> wrote:> Salil,>  > You can get to 
  the "stuff" in the browser by using the object> 
  ie.document.body.innerHTML and then writing that to a disk file on 
  your> own.>  > d> > -----Original 
  Message-----> From: salil_gangal [mailto:salil_gangal@xxxx] > 
  Sent: Sunday, August 03, 2003 11:23 AM> To: 
  amibroker@xxxxxxxxxxxxxxx> Subject: [amibroker] Re: Automation -- More 
  than 'URLGet'> > > xxDingo,> > Thanks ... 
  Will explore that.> > In the meantime found out more 
  (busy/quit).  Still what I need is > menu 'File Save As' and click 
  'Save'.> > WScript.Echo( "invoking IE");> var IE = new 
  ActiveXObject("InternetExplorer.Application");> IE.visible = 
  true;> IE.navigate("URL you want");> while( IE.busy ) { 
  }> WScript.Echo( "quitting");> IE.quit();> WScript.Echo( 
  "done");> > Regards,> - Salil V Gangal> > 
  --- In amibroker@xxxxxxxxxxxxxxx, "dingo" <dingo@xxxx> wrote:> 
  > do a search on "document object model" in google.> >  
  > > d> > > > -----Original Message-----> 
  > From: salil_gangal [mailto:salil_gangal@xxxx] > > Sent: Sunday, 
  August 03, 2003 10:57 AM> > To: amibroker@xxxxxxxxxxxxxxx> 
  > Subject: [amibroker] Re: Automation -- More than 'URLGet'> > 
  > > > > Friends,> > > > Quickly foud 
  out the following.> > > > WScript.Echo( "invoking 
  IE");> > var IE = new 
  ActiveXObject("InternetExplorer.Application");> > IE.visible = 
  true;> > IE.navigate("URL you want");> > WScript.Echo( 
  "done");> > > > Now I need methods for 'File Save As' and 
  then for clicking 'Save' > to > > finish the automation I 
  have in mind ...> > > > Regards,> > - Salil V 
  Gangal> > > > --- In amibroker@xxxxxxxxxxxxxxx, Salil V 
  Gangal > <salil_gangal@xxxx> > > wrote:> > 
  > > > > Friends,> > > > > > 
  Newletter (<A 
  href="">http://www.amibroker.com/newsletter/02-2001.html) 
  > > describes how to use automation to download the data at a URL 
  and > to > > process it.> > > > > > 
  However, suppose I don't want to use URLGet, what I want is to > > 
  actually invoke IE and used IE's own 'File Save As', then how to do 
  > > that sort of Automation ?> > > > > > 
  So the manual steps will be> > > > > > 1) Invoke 
  IE> > > > > > 2) Get a URL> > > 
  > > > 3) Invoke menu 'File Save As'> > > > 
  > > 4) Click 'Save'> > > > > > 5) Now steps 
  similar to the ones described in newsletter will > follow> > 
  > > > > Any inputs ?  (I know ... this will focus on IE's 
  automation > rather > > than AmiBroker's.)> > > 
  > > > Any links / documents / samples which will describe this 
  ?> > > > > > BTW, Is 'Guru' automation available yet 
  ? I read the document, I > > don't think it is ...> > 
  > > > > Regards,> > > > > > - Salil 
  V Gangal> > > > > > > > > 
  ---------------------------------> > > Do you Yahoo!?> 
  > > Yahoo! SiteBuilder - Free, easy-to-use web site design 
  software> > > > > > > > Yahoo! Groups 
  Sponsor      > > > > 
  ADVERTISEMENT> >  > > > <<A 
  href="">http://rd.yahoo.com/M=245454.3656312.4921743.1261774/D=egroupweb/S=17> 
  05> > > 632198:HM/A=1457554/R=0/SIG=11c6fnta2/*<A 
  href="">http://ipunda.com/clk/beibunmai> 
  su> > iyuiwabei>       > 
  >  > > <<A 
  href="">http://us.adserver.yahoo.com/l?> 
  M=245454.3656312.4921743.1261774/D=egrou> > 
  pmail/S=:HM/A=1457554/rand=123786671>       
  > > > > Send BUG REPORTS to bugs@xxxx> > Send 
  SUGGESTIONS to suggest@xxxx> > 
  -----------------------------------------> > Post AmiQuote-related 
  messages ONLY to: amiquote@xxxxxxxxxxxxxxx > > (Web page: <A 
  href="">http://groups.yahoo.com/group/amiquote/messages/)> 
  > --------------------------------------------> > Check group FAQ 
  at:> > <A 
  href="">http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
  > > > > Your use of Yahoo! Groups is subject to the Yahoo! 
  Terms of Service> > <<A 
  href="">http://docs.yahoo.com/info/terms/> 
  .> > > > Yahoo! Groups 
  Sponsor      > > 
  ADVERTISEMENT>  > <<A 
  href="">http://rd.yahoo.com/M=259538.3625325.4914071.1261774/D=egroupweb/S=1705> 
  632198:HM/A=1695348/R=0/SIG=11u38u3s2/*<A 
  href="">http://hits.411web.com/cgi-bin/hi> 
  t?page=1374-105951838331032> click here      
  >  > <<A 
  href="">http://us.adserver.yahoo.com/l?M=259538.3625325.4914071.1261774/D=egrou> 
  pmail/S=:HM/A=1695348/rand=216334048>       
  > > Send BUG REPORTS to bugs@xxxx> Send SUGGESTIONS to 
  suggest@xxxx> -----------------------------------------> Post 
  AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx > (Web 
  page: <A 
  href="">http://groups.yahoo.com/group/amiquote/messages/)> 
  --------------------------------------------> Check group FAQ 
  at:> <A 
  href="">http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
  > > Your use of Yahoo! Groups is subject to the Yahoo! Terms of 
  Service> <<A 
  href="">http://docs.yahoo.com/info/terms/> 
  .Send 
  BUG REPORTS to bugs@xxxxxxxxxxxxxSend SUGGESTIONS to 
  suggest@xxxxxxxxxxxxx-----------------------------------------Post 
  AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx (Web page: <A 
  href="">http://groups.yahoo.com/group/amiquote/messages/)--------------------------------------------Check 
  group FAQ at: <A 
  href="">http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
  Your use of Yahoo! Groups is subject to the <A 
  href="">Yahoo! Terms of Service. 







Yahoo! Groups Sponsor


  ADVERTISEMENT 









Send BUG REPORTS to bugs@xxxxxxxxxxxxx
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx 
(Web page: http://groups.yahoo.com/group/amiquote/messages/)
--------------------------------------------
Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html



Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.