Local oIE as InternetExplorer.Application >Declare Integer Sleep In Win32api Integer >oIE = CreateObject( "InternetExplorer.Application" ) >oIE.Silent = .T. >oIE.Visible = .T. >oIE.Navigate( "https://www.aesdirect.gov/enter.html" ) >fWait( oIE ) > >* ... use Windows Script Host (WSH) SendKeys to enter the User ID and Password into the resulting dialog box. > >fWait( oIE ) > >* .. invoke download. If this is via a link, then you could use something like: >oInputs = oIE.Document.all.tags("INPUT") >*- In the following 28 is an arbitrary number that corresponds to a particular >*- link that needs to be Clicked. >*- Change the number, then use the mouse or keyboard to select the following >*- code (from the ? to the end of the line) - then Right Mouse, Execute Selection. >*- Repeat this until you spot the link that you are after. >*--- ? oInputs.item(28).outerHTML >oInputs.item(28).Click() >fWait( oIE ) > >* ... etc. > >Return .T. > >********************* >Function fWait( oIE ) >********************* > #If .F. Then > Local oIe as InternetExplorer.Application > #Endif > Do While oIE.Busy ; > Or oIE.Document.readyState # "complete" > ?? "." > Sleep(500) > EndDo > Return .T. > EndFunc && fWait( oIE ).