Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #9898 > unrolled thread
| Started by | Dr J R Stockton <reply1201@merlyn.demon.co.uk> |
|---|---|
| First post | 2012-01-03 17:09 +0000 |
| Last post | 2012-01-07 20:11 +0000 |
| Articles | 11 on this page of 31 — 9 participants |
Back to article view | Back to comp.lang.javascript
JScript - is a file of a known Type? Dr J R Stockton <reply1201@merlyn.demon.co.uk> - 2012-01-03 17:09 +0000
Re: JScript - is a file of a known Type? "Mayayana" <mayayana@invalid.nospam> - 2012-01-03 21:13 -0500
Re: JScript - is a file of a known Type? Todd Vargo <tlvargo@sbcglobal.netz> - 2012-01-04 00:55 -0500
Re: JScript - is a file of a known Type? "Mayayana" <mayayana@invalid.nospam> - 2012-01-04 09:18 -0500
Re: JScript - is a file of a known Type? "Dave \"Crash\" Dummy" <invalid@invalid.invalid> - 2012-01-04 09:40 -0500
Re: JScript - is a file of a known Type? "Mayayana" <mayayana@invalid.nospam> - 2012-01-04 10:23 -0500
Re: JScript - is a file of a known Type? Todd Vargo <tlvargo@sbcglobal.netz> - 2012-01-04 20:22 -0500
Re: JScript - is a file of a known Type? "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2012-01-05 22:01 -0800
Re: JScript - is a file of a known Type? John G Harris <john@nospam.demon.co.uk> - 2012-01-06 11:04 +0000
Re: JScript - is a file of a known Type? "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2012-01-06 04:26 -0800
Re: JScript - is a file of a known Type? John G Harris <john@nospam.demon.co.uk> - 2012-01-06 14:58 +0000
Re: JScript - is a file of a known Type? "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2012-01-06 12:27 -0800
Re: JScript - is a file of a known Type? Dr J R Stockton <reply1201@merlyn.demon.co.uk> - 2012-01-07 21:54 +0000
JScript - WScript output similar to CScript output> Dr J R Stockton <reply1201@merlyn.demon.co.uk> - 2012-01-05 20:29 +0000
Re: JScript - WScript output similar to CScript output> "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2012-01-05 22:05 -0800
Re: JScript - WScript output similar to CScript output> Bwig Zomberi <zomberiMAPSONNOSPAM@gmail.invalid> - 2012-01-06 14:31 +0530
Re: JScript - WScript output similar to CScript output> Dr J R Stockton <reply1201@merlyn.demon.co.uk> - 2012-01-07 21:14 +0000
Re: JScript - WScript output similar to CScript output> Dr J R Stockton <reply1201@merlyn.demon.co.uk> - 2012-01-07 21:10 +0000
Re: JScript - WScript output similar to CScript output> "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2012-01-08 14:52 -0800
Re: JScript - WScript output similar to CScript output> Dr J R Stockton <reply1202@merlyn.demon.co.uk> - 2012-01-09 23:45 +0000
Re: JScript - WScript output similar to CScript output> Todd Vargo <tlvargo@sbcglobal.netz> - 2012-01-10 00:27 -0500
Re: JScript - WScript output similar to CScript output> Dr J R Stockton <J.R.Stockton@physics.org> - 2012-01-10 13:40 -0800
Re: JScript - WScript output similar to CScript output> "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2012-01-10 17:04 -0800
Re: JScript - WScript output similar to CScript output> Dr J R Stockton <reply1202@merlyn.demon.co.uk> - 2012-01-12 23:43 +0000
Re: JScript - WScript output similar to CScript output> "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2012-01-12 22:36 -0800
Re: JScript - WScript output similar to CScript output> "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2012-01-12 22:47 -0800
Re: JScript - WScript output similar to CScript output> Dr J R Stockton <J.R.Stockton@physics.org> - 2012-01-14 12:15 -0800
Re: JScript - WScript output similar to CScript output> Bwig Zomberi <zomberiMAPSONNOSPAM@gmail.invalid> - 2012-01-06 14:43 +0530
Re: JScript - WScript output similar to CScript output> Todd Vargo <tlvargo@sbcglobal.netz> - 2012-01-06 05:20 -0500
Re: JScript - WScript output similar to CScript output> "Mayayana" <mayayana@invalid.nospam> - 2012-01-06 08:33 -0500
Re: JScript - WScript output similar to CScript output> Dr J R Stockton <reply1201@merlyn.demon.co.uk> - 2012-01-07 20:11 +0000
Page 2 of 2 — ← Prev page 1 [2]
| From | Todd Vargo <tlvargo@sbcglobal.netz> |
|---|---|
| Date | 2012-01-10 00:27 -0500 |
| Subject | Re: JScript - WScript output similar to CScript output> |
| Message-ID | <jegi88$qv9$1@news.albasani.net> |
| In reply to | #10097 |
On 1/9/2012 6:45 PM, Dr J R Stockton wrote: <snip> > Aside : AFAICS, no GUI editor or viewer that I have can AFAIK accept > piped-in text, which is a pity. > > What I want to end up with is using essentially the same code as I have > at present, but as a GUI application - instead of opening a Command > Prompt and giving it a Command Line, to open a GUI window and give it, > with some equivalent of a JavaScript prompt(), the commands. Or just > command-line in, GUI out. > > I forgot to say that the GUI needs to show each line as it is output > from the current code, without waiting for the stream to complete. The vbscript code that I posted does that. To set a fixed pitch font, change <body> tag to <body STYLE=""font:10 pt courier""> If desired. you can easily code it to receive input through stdin, but that usually implies user operation from the command line. > > The alternative seems to be to use an HTA, treating my existing code as > an include file of functions and variables, and suppressing any unwanted > parts. That should be easy, if I learn about HTAs first - - - which I > seem to have done. > > It's now fundamentally working in an HTA, but the adapting needs to be > cleaned up, though not tonight. -- Todd Vargo (Post questions to group only. Remove "z" to email personal messages)
[toc] | [prev] | [next] | [standalone]
| From | Dr J R Stockton <J.R.Stockton@physics.org> |
|---|---|
| Date | 2012-01-10 13:40 -0800 |
| Subject | Re: JScript - WScript output similar to CScript output> |
| Message-ID | <0df36383-f970-490d-b373-b3a4998a7fdd@n6g2000vbz.googlegroups.com> |
| In reply to | #10097 |
On Jan 9, 11:45 pm, Dr J R Stockton <reply1...@merlyn.demon.co.uk>
wrote:
> The alternative seems to be to use an HTA, treating my existing code as
> an include file of functions and variables, and suppressing any unwanted
> parts. That should be easy, if I learn about HTAs first - - - which I
> seem to have done.
>
> It's now fundamentally working in an HTA, but the adapting needs to be
> cleaned up, though not tonight.
Rather easy. Essentially, the HTA has a button and a textarea. The
existing JScript for WSH is modified so that the code is just
declarations of globals and functions, followed by a call of the main
function :-
if (typeof window == "undefined") SEAKFYLE()
In CScript, that call calls, and all still works as before; in HTA,
that call does not call, but the button does it instead.
The HTA "include"s SEAKFYLE.JS, and also contains script
Fawm = document.forms[0]
SEAKFYLE.JS uses the value of Fawm to write to the textarea, and the
truth of Fawm for minor code changes, such as reading the command line
from an "<input type=text" in the HTA.
<http://www.merlyn.demon.co.uk/programs/32-bit/seakfyle.htm>
<http://www.merlyn.demon.co.uk/programs/32-bit/seakfyle.js>
<http://www.merlyn.demon.co.uk/programs/32-bit/seek.hta>
<http://www.merlyn.demon.co.uk/programs/32-bit/seek.bat>
<http://www.merlyn.demon.co.uk/programs/32-bit/seakfyle.zip>
but please take copies for repeated use.
Query : is there an easy way to resize the textarea vertically when
the HTA window is resized, so that the form comes within a gnat's
whisker (0.5 ex, or a few px) of the bottom of the window, and if so
what is it?
--
(c) John Stockton, near London, UK. Using Google, no spell-check.
Mail: J.R.""""""""@physics.org or (better) via Home Page at
Web: <http://www.merlyn.demon.co.uk/>
FAQish topics, acronyms, links, etc.; Date, Pascal, JavaScript, ....|
[toc] | [prev] | [next] | [standalone]
| From | "Michael Haufe (TNO)" <tno@thenewobjective.com> |
|---|---|
| Date | 2012-01-10 17:04 -0800 |
| Subject | Re: JScript - WScript output similar to CScript output> |
| Message-ID | <67023a25-650b-454f-a915-ebeae30ccf6e@f11g2000yql.googlegroups.com> |
| In reply to | #10128 |
On Jan 10, 3:40 pm, Dr J R Stockton <J.R.Stock...@physics.org> wrote: > Rather easy. Essentially, the HTA has a button and a textarea. The > existing JScript for WSH is modified so that the code is just > declarations of globals and functions, followed by a call of the main > function :- > > if (typeof window == "undefined") SEAKFYLE() > > In CScript, that call calls, and all still works as before; in HTA, > that call does not call, but the button does it instead. > > The HTA "include"s SEAKFYLE.JS, and also contains script > > Fawm = document.forms[0] > > SEAKFYLE.JS uses the value of Fawm to write to the textarea, and the > truth of Fawm for minor code changes, such as reading the command line > from an "<input type=text" in the HTA. > > <http://www.merlyn.demon.co.uk/programs/32-bit/seakfyle.htm> > <http://www.merlyn.demon.co.uk/programs/32-bit/seakfyle.js> > <http://www.merlyn.demon.co.uk/programs/32-bit/seek.hta> Note that HTML Applications can take command like arguments as well by using windows.dialogArguments More info should be here: <http://msdn.microsoft.com/en-us/library/ms536496%28v=vs.85%29.aspx> The WScript object is not available in an HTA. Alternative methods must be used. > <http://www.merlyn.demon.co.uk/programs/32-bit/seek.bat> Why do you want/need a *.BAT file? If *.js is registered to open with Cscript.exe or Wscript.exe, then it would be sufficient to simply type SEAKFYLE.JS at the command prompt. Passing arguments to the script can be managed by the WScript.Arguments collection: <http://www.devguru.com/technologies/wsh/quickref/ wscript_arguments.html> > <http://www.merlyn.demon.co.uk/programs/32-bit/seakfyle.zip> > > but please take copies for repeated use. > > Query : is there an easy way to resize the textarea vertically when > the HTA window is resized, so that the form comes within a gnat's > whisker (0.5 ex, or a few px) of the bottom of the window, and if so > what is it? Perhaps this might help: <https://gist.github.com/1592291>
[toc] | [prev] | [next] | [standalone]
| From | Dr J R Stockton <reply1202@merlyn.demon.co.uk> |
|---|---|
| Date | 2012-01-12 23:43 +0000 |
| Subject | Re: JScript - WScript output similar to CScript output> |
| Message-ID | <2CWCZ3dvA3DPFwos@invalid.uk.co.demon.merlyn.invalid> |
| In reply to | #10130 |
In comp.lang.javascript message <67023a25-650b-454f-a915-ebeae30ccf6e@f1 1g2000yql.googlegroups.com>, Tue, 10 Jan 2012 17:04:55, "Michael Haufe (TNO)" <tno@thenewobjective.com> posted: >On Jan 10, 3:40 pm, Dr J R Stockton <J.R.Stock...@physics.org> wrote: > >> Rather easy. Essentially, the HTA has a button and a textarea. The >> existing JScript for WSH is modified so that the code is just >> declarations of globals and functions, followed by a call of the main >> function :- >> >> if (typeof window == "undefined") SEAKFYLE() >> >> In CScript, that call calls, and all still works as before; in HTA, >> that call does not call, but the button does it instead. >> >> The HTA "include"s SEAKFYLE.JS, and also contains script >> >> Fawm = document.forms[0] >> >> SEAKFYLE.JS uses the value of Fawm to write to the textarea, and the >> truth of Fawm for minor code changes, such as reading the command line >> from an "<input type=text" in the HTA. >> >> <http://www.merlyn.demon.co.uk/programs/32-bit/seakfyle.htm> >> <http://www.merlyn.demon.co.uk/programs/32-bit/seakfyle.js> >> <http://www.merlyn.demon.co.uk/programs/32-bit/seek.hta> > >Note that HTML Applications can take command like arguments as well by >using windows.dialogArguments That's well worth knowing. I could use that to pre-load the input line; and I can add an option, command-line only, to auto-start after pre- load. ... Except that neither windows nor window.dialogArguments appears to exist. ... Needs <hta:application ID="oHTA" and then alert(oHTA.commandLine) shows the command line. >More info should be here: ><http://msdn.microsoft.com/en-us/library/ms536496%28v=vs.85%29.aspx> > >The WScript object is not available in an HTA. Alternative methods >must be used. I think that, in HTA mode, no path of execution should now lead to a WScript. Because of the heritage of the "design" of the code, detected errors lead to a chain of function calls used as GOTOs, since they ended up in the original Pascal with a Halt(N) call. In WSH, WScript.Quit(N) does the same. I'd like to use something similar in HTA mode; but the only way of stopping that I know is to exit all routines and fall off the end of the script, which would be tiresome to arrange. That problem is now circumvented. >> <http://www.merlyn.demon.co.uk/programs/32-bit/seek.bat> > >Why do you want/need a *.BAT file? If *.js is registered to open with >Cscript.exe or Wscript.exe, then it would be sufficient to simply type >SEAKFYLE.JS at the command prompt. I prefer to change such defaults as little as possible. I'd have to remember to do it on other machines, and other users would also need to do it. There could be other *.js files needing to run in WScript. But I've added the possibility to the description. > Passing arguments to the script can >be managed by the WScript.Arguments collection: ><http://www.devguru.com/technologies/wsh/quickref/ >wscript_arguments.html> I'm using WScript.Arguments already. >> <http://www.merlyn.demon.co.uk/programs/32-bit/seakfyle.zip> >> >> but please take copies for repeated use. >> >> Query : is there an easy way to resize the textarea vertically when >> the HTA window is resized, so that the form comes within a gnat's >> whisker (0.5 ex, or a few px) of the bottom of the window, and if so >> what is it? > >Perhaps this might help: ><https://gist.github.com/1592291> It is rather too much changed from a version that I no longer have to import, or to be easy to follow. Having seen it working, aesthetics demand that the textarea is sized to fill the rest of the form, and the form is sized to only nearly reach the bottom of the viewport. But @FrmMain margin-bottom: 5px; does that. Resizing then is nice, or will be once I've trapped the error that occurs when the bottom is dragged up too far. This does it : TA.style.height = Math.max(0, TA.parentNode.offsetHeight - 10) + "px"; The <H3> wastes height !! I'll stick with <big> or equivalent. The ROWS control seems not to work; but it has no useful function with auto-resizing. Removed. The SEEK button failed, because of its re-naming, fixed. I was somewhat surprised that Fawm = document.forms[0]; in the HEAD works when the actual form is in the body. There is at present one remaining infelicity: the heading (and other) text, when wrapped because of Zoom or narrowing the window, wraps under the following element. That's now mitigated by shortening the heading line. If IE gets Zoom Text Only, I suppose the vertical sizing will have to be redone in ex or em units. The version uploaded at about 23:40 GMT, dated 2012-01-12, includes all this. More thanks. -- (c) John Stockton, nr London, UK. ?@merlyn.demon.co.uk Turnpike 6.05 WinXP. Web <http://www.merlyn.demon.co.uk/> - FAQ-type topics, acronyms, and links. Command-prompt MiniTrue is useful for viewing/searching/altering files. Free, DOS/Win/UNIX now 2.0.6; see <URL:http://www.merlyn.demon.co.uk/pc-links.htm>.
[toc] | [prev] | [next] | [standalone]
| From | "Michael Haufe (TNO)" <tno@thenewobjective.com> |
|---|---|
| Date | 2012-01-12 22:36 -0800 |
| Subject | Re: JScript - WScript output similar to CScript output> |
| Message-ID | <19136d73-ea4f-4a87-a9a9-af752e45dcbc@k28g2000yqc.googlegroups.com> |
| In reply to | #10190 |
On Jan 12, 5:43 pm, Dr J R Stockton <reply1...@merlyn.demon.co.uk> wrote: ... Except that neither windows nor window.dialogArguments appears > to exist. ... Needs <hta:application ID="oHTA" and then > alert(oHTA.commandLine) shows the command line. Indeed, I was staring at the wrong msdn page (not to mention the typo). >The version uploaded at about 23:40 GMT, dated 2012-01-12, includes all >this. More thanks. You're welcome
[toc] | [prev] | [next] | [standalone]
| From | "Michael Haufe (TNO)" <tno@thenewobjective.com> |
|---|---|
| Date | 2012-01-12 22:47 -0800 |
| Subject | Re: JScript - WScript output similar to CScript output> |
| Message-ID | <580d7cc3-8f1f-4064-a169-7bb5bffbb27c@k8g2000yqk.googlegroups.com> |
| In reply to | #10190 |
On Jan 12, 5:43 pm, Dr J R Stockton <reply1...@merlyn.demon.co.uk> wrote: > In comp.lang.javascript message <67023a25-650b-454f-a915-ebeae30ccf6e@f1 > 1g2000yql.googlegroups.com>, Tue, 10 Jan 2012 17:04:55, "Michael Haufe > (TNO)" <t...@thenewobjective.com> posted: > >On Jan 10, 3:40 pm, Dr J R Stockton <J.R.Stock...@physics.org> wrote: > >> <http://www.merlyn.demon.co.uk/programs/32-bit/seakfyle.js> > >> <http://www.merlyn.demon.co.uk/programs/32-bit/seek.hta> > > >Note that HTML Applications can take command like arguments as well by > >using windows.dialogArguments > > That's well worth knowing. I could use that to pre-load the input line; > and I can add an option, command-line only, to auto-start after pre- > load. ... Except that neither windows nor window.dialogArguments appears > to exist. ... Needs <hta:application ID="oHTA" and then > alert(oHTA.commandLine) shows the command line. ... > The version uploaded at about 23:40 GMT, dated 2012-01-12, includes all > this. More thanks. Since I was correct only in recalling the idea and not the API, it would be nice if seakfyle.js didn't perpetuate my bad advice at the bottom. A generic attribution or nothing at all would be fine with me.
[toc] | [prev] | [next] | [standalone]
| From | Dr J R Stockton <J.R.Stockton@physics.org> |
|---|---|
| Date | 2012-01-14 12:15 -0800 |
| Subject | Re: JScript - WScript output similar to CScript output> |
| Message-ID | <22a9e5d9-ed0b-45ec-8910-32cc182c58b0@d8g2000vbb.googlegroups.com> |
| In reply to | #10196 |
On Jan 13, 6:47 am, "Michael Haufe (TNO)" <t...@thenewobjective.com> wrote: > Since I was correct only in recalling the idea and not the API, it > would be nice if seakfyle.js didn't perpetuate my bad advice at the > bottom. A generic attribution or nothing at all would be fine with > me. Removed, some while ago now! You'll probably have noticed how I am, for the time being, indicating what I've changed in your HTA; for example, auto-start is available from the SEEK.HTA command line, and the layout is tighter. Also, SEEK.BAT is no longer limited to 8 Options. Instead of using WScript.Quit at the end of performing a non- continuable Option, I now set a Boolean to indicate that the option is wanted. The Boolean can then be tested in the main routine; if set, the Option routine is called and returns, and from there it is easy to in effect GOTO near the end of the main routine. SEAKFYLE.HTM has a list of what that I use in CScript mode I have not yet been able to do in HTA mode. For some inscrutable reason, my newsreader seems to think that this thread, or the pair of us, is kill-ruled. Unless I recall the possibility at the right time, that delays getting the item as a News article to where I like to reply from. Therefore, see sig. Thanks for your continued help. -- (c) John Stockton, near London, UK. Using Google, no spell-check. Mail: J.R.""""""""@physics.org or (better) via Home Page at Web: <http://www.merlyn.demon.co.uk/> FAQish topics, acronyms, links, etc.; Date, Pascal, JavaScript, ....|
[toc] | [prev] | [next] | [standalone]
| From | Bwig Zomberi <zomberiMAPSONNOSPAM@gmail.invalid> |
|---|---|
| Date | 2012-01-06 14:43 +0530 |
| Subject | Re: JScript - WScript output similar to CScript output> |
| Message-ID | <je6dhs$1g7$1@speranza.aioe.org> |
| In reply to | #9940 |
Dr J R Stockton wrote: > Typically, MS make it harder to tell by code whether a file's Type is > known or not by putting an uninformative but readable string where they > could more easily have put an empty string or a recognisable language- > independent one such as "-". When Windows and programs are installed files types are created. Some applications hijacks extensions. They keep it meaningful or give it all a same name. The logic is still the same - what Mayayana has stated. If it is in the registry, it is a known file type. Otherwise, it is unknown. -- Bwig Zomberi
[toc] | [prev] | [next] | [standalone]
| From | Todd Vargo <tlvargo@sbcglobal.netz> |
|---|---|
| Date | 2012-01-06 05:20 -0500 |
| Subject | Re: JScript - WScript output similar to CScript output> |
| Message-ID | <je6hu0$pvp$1@news.albasani.net> |
| In reply to | #9940 |
On 1/5/2012 3:29 PM, Dr J R Stockton wrote:
> In comp.lang.javascript message<je1ocf$e6m$1@dont-email.me>, Wed, 4 Jan
> 2012 09:40:15, "Dave \"Crash\" Dummy"<invalid@invalid.invalid> posted:
>
>>
>> The trouble with "file type" as stored in the registry and read by
>> "objFile.type" is that it can be and often is changed by applications. For
>> example, on my computer the ".bmp" file mentioned above is a "Paint
>> Shop
>> Pro 5 Image," not a "Paint.Picture."
>
> The fact that the Type string can be changed provides a good reason for
> having a convenient way to read the Type string.
>
> Typically, MS make it harder to tell by code whether a file's Type is
> known or not by putting an uninformative but readable string where they
> could more easily have put an empty string or a recognisable language-
> independent one such as "-".
>
> No-one has actually answered the question.
Your question was malformed. It did not request to provide code to
demonstrate a different method from the one you previously chose. As
indicated, your answer can be found in HKCR but effort on your part is
necessary to capture it.
> Let's try another.
>
> The CScript in question is started from the DOS-box command-line and
> writes lines to the screen - it would run perfectly well on an ASR33
> teletype. At present, if started in WScript, it exits leaving a small
> note.
>
> It would be nice to allow execution by WScript, with GUI output; but, to
> be worth doing, it would be necessary for there to be an easy way of
> creating and writing (line by line) to something resembling an HTML
> textarea. Is that available, and if so how is it done or where do I
> need to look?
Not even going to attempt to research it on your own?
Watch for the line wraps...
'''''' Creates an Internet Explorer instance to display VBScript output
''''''
'On Error Resume Next
Set WshShell = WScript.CreateObject("WScript.Shell")
Set objExplorer = Wscript.CreateObject("InternetExplorer.Application",
"IE_")
objExplorer.Navigate "about:blank"
objExplorer.ToolBar = False
objExplorer.StatusBar = False
objExplorer.Top = 180
objExplorer.Left = 200
objExplorer.Width = 630
objExplorer.Height = 320
objExplorer.Visible = True
objExplorer.Resizable = False
Do While (objExplorer.Busy) 'Wait for Iexplore instance to load
Wscript.Sleep 250
Loop
With objExplorer.Document
.Writeln "<html><head><title></title></head><body>"
.Title = Wscript.ScriptName & " is running... "
.body.style.cursor = "Wait"
.Writeln "<img
src=""http://www.merlyn.demon.co.uk/graphics/merlyn-1.gif"">"
.Writeln "<p class=""style2""><B>Please wait while APPLICATION is
loading...</B></p>"
For x = 1 to 25
.Writeln "Line..." & x & "<br>"
WScript.Sleep(50) 'Pause 50 miliseconds
.body.createtextrange.scrollIntoView False 'Scroll to bottom of page
Next
.Writeln "<p>Ok - Bye.</p><br>"
.body.createtextrange.scrollIntoView False 'Scroll to bottom of page
.body.style.cursor = "" 'Return cursor to normal
.Title = Wscript.ScriptName & " is Done! "
End With
WScript.Sleep(5000) 'Pause 5 seconds
objExplorer.Quit 'Close the status window
Set objExplorer = Nothing
Wscript.Quit
Sub IE_onQuit() 'This subroutine will fire when Iexplore is closed
'Script will continue to run after IE window closes.
MsgBox "User closed window!"
End Sub
--
Todd Vargo
(Post questions to group only. Remove "z" to email personal messages)
[toc] | [prev] | [next] | [standalone]
| From | "Mayayana" <mayayana@invalid.nospam> |
|---|---|
| Date | 2012-01-06 08:33 -0500 |
| Subject | Re: JScript - WScript output similar to CScript output> |
| Message-ID | <je6t23$iqf$1@dont-email.me> |
| In reply to | #9958 |
| Your question was malformed. Indeed. Neither of his questions seems coherent to me. He never explained what he was trying to do. And he's been around long enough, in any case, to answer both of his questions himself. ...Odd.
[toc] | [prev] | [next] | [standalone]
| From | Dr J R Stockton <reply1201@merlyn.demon.co.uk> |
|---|---|
| Date | 2012-01-07 20:11 +0000 |
| Subject | Re: JScript - WScript output similar to CScript output> |
| Message-ID | <lZj2PWF9bKCPFwSY@invalid.uk.co.demon.merlyn.invalid> |
| In reply to | #9977 |
In comp.lang.javascript message <je6t23$iqf$1@dont-email.me>, Fri, 6 Jan 2012 08:33:40, Mayayana <mayayana@invalid.nospam> posted: >| Your question was malformed. > >Indeed. Neither of his questions seems coherent to >me. He never explained what he was trying to do. >And he's been around long enough, in any case, to >answer both of his questions himself. ...Odd. You should not confuse knowing a lot that others do not with knowing everything that others do know. -- (c) John Stockton, near London. *@merlyn.demon.co.uk/?.?.Stockton@physics.org Web <http://www.merlyn.demon.co.uk/> - FAQish topics, acronyms, and links.
[toc] | [prev] | [standalone]
Page 2 of 2 — ← Prev page 1 [2]
Back to top | Article view | comp.lang.javascript
csiph-web