panlatv Posted March 7, 2008 Share Posted March 7, 2008 (edited) Hello, I have a problem: My script work's good on xp, but sometimes on vista it can't close a process (vlc.exe) So i use the http interface of vlc to close him, on xp it's ok, on vista not exemple: #RequireAdmin #include <IE.au3> _IELoadWaitTimeout ( "6000" ) $IDprocess[0] = run ("vlc.exe dvb-t:// ... --extraintf=http --http-host=127.0.0.1:8080") sleep (20000) _IECreate ("http://127.0.0.1:8080/?control=stop",0,0) sleep (500) $oIE = _IECreate("http://127.0.0.1:8080/",0,0) $sMyString = "vlc:quit" $oLinks = _IELinkGetCollection($oIE) For $oLink in $oLinks $sLinkText = _IEPropertyGet($oLink, "innerText") If StringInStr($sLinkText, $sMyString) Then _IEAction($oLink, "click") ExitLoop EndIf Next if $IDprocess[0]<>0 and ProcessExists ($IDprocess[0])<>0 Then ProcessClose ( $IDprocess[0] ) sleep (2000); or more if $IDprocess[0]<>0 and ProcessExists ($IDprocess[0])<>0 Then msg (0,"info","Can't close vlc ! ") Exit Do you have a bug with process close on vista, and/or a bug with IE.au3 on vista? (I don't have vista so i can't test) Sorry again for my bad english Edited March 7, 2008 by panlatv Link to comment Share on other sites More sharing options...
DaleHohm Posted March 7, 2008 Share Posted March 7, 2008 The only IE.au3 issue with Vista to date is solved with the #RequireAdmin that you are already using. I'd be surprised if there is an issue with ProcessClose, but I have no evidence one way or ther other. I'm afraid you'll need to do more testing and characterization of this. Dale Free Internet Tools: DebugBar, AutoIt IE Builder, HTTP UDF, MODIV2, IE Developer Toolbar, IEDocMon, Fiddler, HTML Validator, WGet, curl MSDN docs: InternetExplorer Object, Document Object, Overviews and Tutorials, DHTML Objects, DHTML Events, WinHttpRequest, XmlHttpRequest, Cross-Frame Scripting, Office object model Automate input type=file (Related) Alternative to _IECreateEmbedded? better: _IECreatePseudoEmbedded Better Better? IE.au3 issues with Vista - Workarounds SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=Y Doesn't work needs to be ripped out of the troubleshooting lexicon. It means that what you tried did not produce the results you expected. It begs the questions 1) what did you try?, 2) what did you expect? and 3) what happened instead? Reproducer: a small (the smallest?) piece of stand-alone code that demonstrates your trouble Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now