Jump to content

Dave668

Members
  • Posts

    10
  • Joined

  • Last visited

Everything posted by Dave668

  1. Weeii, that worked! thanks!! did the same and now i get the file to the desktop! #include <ie.au3> Opt('WinTitleMatchMode', 4) Opt('WinSearchChildren', 1) Opt('WinDetectHiddenText', 1) $WebPage = "long url to internal system" $oIE = _IECreate($WebPage,0,0,0) WinWait('classname=#32770', 'Publisher:') If Not WinActive('classname=#32770', 'Publisher:') Then WinActivate('classname=#32770', 'Publisher:') Sleep(250) ControlSend('classname=#32770', 'Do you want to open or save this file?', '', "!s") If Not WinActive('classname=#32770', 'Save as') Then WinActivate('classname=#32770', 'Save As') Sleep(250) ControlSend('classname=#32770', '', '', "!s") If Not WinActive('classname=#32770', 'Save as') Then WinActivate('classname=#32770', 'Save As') Sleep(250) ControlSend('classname=#32770', '', '', "!y") Exit
  2. Now i feel stupid, both of the links i provided actually worked the way you have suggested. But it does not work with my internal URL still. I get this in the file when trying: "You must have Internet Explorer v5.0 or later installed to use this program!" so the "InetGet($WebPage...." can't be used. I will see if i can find an appropriate URL.
  3. Ok i replicated this with a file on the internet: $WebPage = "http://se2.php.net/get/php-5.2.1-Win32.zip/from/se.php.net/mirror"; notice this is not a direct link to a file, but it will start a download. $oIE = _IECreate ($WebPage,0,0) WinActivate("File Download","") Send("!s") all i get is this download box: then the script just waits..i want to download this file directly to c:\temp or whatever. i found some more info on this but for vb, not figured out how to do this though, also the post is old so might not be relevant. http://www.vbip.com/forum/topic.asp?id=6882 The same behaviour can be shown with this URL "http://phpnuke.org/modules.php?name=Downloads&d_op=getit&lid=425" also not a direct link, but it gets you the file. [EDIT: spelling errors! added a new d/l link to try]
  4. $WebPage = "http://www.someurl.com/somefile.exe" ;Notice I have the file I want to get there <- This is not the URL to the file!! its an masked URL, the server gets the file. otherwise this would have worked yes!!
  5. seems i cant even detect this window. i tried with If WinExists("File Download") Then MsgBox(0, "", "Window exists") EndIf i get no box :-( also tried to add: Opt("WinDetectHiddenText", 1) didn't help..
  6. No. look in my previous reply, its not a direct link. Its a "faked" url to a server. The server digs up the right doc and version based upon the URL i send it. in this case the URL is a direct linmk to the latest version of this document.
  7. $WebPage = "long link to document system"; <- this link is correct! InetGet("$WebPage", "C:\temp\")
  8. none of these seems to work. trying the InetGet i get "Error parsing function call.: " the url is not an direct link to the document. it's a link to our document management system, so the URL is interpreted by an metaface server who in turn returns the file. So my best bet is to go trough internet explorer..
  9. in my defence i have searched the forum for over 1 hour and didn't find what i was looking for so i post here instead :-) problem: i need to download a file through internet explorer locally on my machine automatically. why? the webpage is active directory enabled so using IE bypasses the AD checking. problem manifest: i can run an hidden ie by using: ;_IECreate ("$webpage", 0, 0) then i get this annoying "File Download" box, telling me to "cancel" "save" or "open" script: _IECreate ("$webpage", 0, 0) WinWaitActive("File Download" , "Do you want to open or save this file?") Send("!s") but the file download box just sits there... i think this should be an easy script right? i am a newbie in this so please help :-)
×
×
  • Create New...