Closing ALL Internet Explorer Windows: Difference between revisions
From NSIS Wiki
Jump to navigationJump to search
m (Updated author links.) |
(→Links) |
||
(5 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
{ | {{PageAuthor|simham_uk}} | ||
== Links == | |||
* [http://forums.winamp.com/showthread.php?threadid=122305 Original forum thread] | |||
* [[Closing ALL Browsers Windows]] | |||
== Description == | == Description == | ||
Thanks to Sunjammer I have managed to finally get this to work..so here's the code. I use it in the init function but it can be used anywhere. | Thanks to [[User:Sunjammer|Sunjammer]] I have managed to finally get this to work..so here's the code. I use it in the init function but it can be used anywhere. | ||
== The Script == | == The Script == | ||
Line 25: | Line 27: | ||
Simon H | Simon H | ||
[[Category:System Plugin Examples]] |
Latest revision as of 16:12, 29 June 2010
Author: simham_uk (talk, contrib) |
Links
Description
Thanks to Sunjammer I have managed to finally get this to work..so here's the code. I use it in the init function but it can be used anywhere.
The Script
; Kill all instances of Internet Explorer Function .onInit ;Closing all IE Windows loop: FindWindow $0 "IEFrame" IntCmp $0 0 done IsWindow $0 0 done System::Call 'user32::PostMessageA(i,i,i,i) i($0,${WM_CLOSE},0,0)' Sleep 100 Goto loop done: FunctionEnd
Hope this is useful to someone
Simon H