Search found 14 matches

by kenthompson
Tue Mar 02, 2010 4:39 am
Forum: VBScript
Topic: Get reference to objects in called script?
Replies: 9
Views: 2307

Get reference to objects in called script?

It required killing because I was originally using window.close in the cancel routine and it was causing problems. I'll show you since I don't seem to be able to explain it. The child window that was generated with a showmodelessdialogue has this button: ---------------------------------------------...
by kenthompson
Tue Mar 02, 2010 1:49 am
Forum: VBScript
Topic: Get reference to objects in called script?
Replies: 9
Views: 2307

Get reference to objects in called script?

I"ve got it working now. I was using window.close in the cancel routine, but the code was still processing. I changed the window.close to a wmi terminate and now it closes the MS Apps correctly and kills the mshta. Works fine.
by kenthompson
Wed Feb 24, 2010 4:17 am
Forum: VBScript
Topic: Get reference to objects in called script?
Replies: 9
Views: 2307

Get reference to objects in called script?

When COM objects are launched they are, by necessity, launched asynchronously. This also means that you cannot have a reference to one that is sharable except that you can return the process ID and use that as a Kill mechanism. The only waay to pass this process id would be through a file so puti i...
by kenthompson
Wed Feb 24, 2010 12:37 am
Forum: VBScript
Topic: Get reference to objects in called script?
Replies: 9
Views: 2307

Get reference to objects in called script?

The only response I get to this question is to completely redesign the application. I guess it's assumed that the design is arbitrary? I guess I am confused, as I was under the impression that seperating interface from processing was standard design. The specific reason they are seperated is so that...
by kenthompson
Thu Feb 11, 2010 4:42 am
Forum: VBScript
Topic: Get reference to objects in called script?
Replies: 9
Views: 2307

Get reference to objects in called script?

Hello, I have an hta that calls a vbs, which in turn instantiates MS Word and MS Excel. It scrapes the word doc (which must follow a certain format) and with info gleaned from the user in the hta creates a spreadsheet out of the data from the word doc. (on which the user will choose row specific opt...
by kenthompson
Wed Feb 10, 2010 10:37 pm
Forum: Other Scripting Languages
Topic: How to reference apps opened by called script?
Replies: 1
Views: 2734

How to reference apps opened by called script?

Hello, I have an hta that calls a vbs, which in turn instantiates MS Word and MS Excel. It scrapes the word doc (which must follow a certain format) and with info gleaned from the user in the hta creates a spreadsheet out of the data from the word doc. (on which the user will choose row specific opt...
by kenthompson
Wed Feb 10, 2010 10:37 pm
Forum: Other Scripting Languages
Topic: How to reference apps opened by called script?
Replies: 1
Views: 2734

How to reference apps opened by called script?

Hello, I have an hta that calls a vbs, which in turn instantiates MS Word and MS Excel. It scrapes the word doc (which must follow a certain format) and with info gleaned from the user in the hta creates a spreadsheet out of the data from the word doc. (on which the user will choose row specific opt...
by kenthompson
Thu Nov 19, 2009 6:34 am
Forum: Other Scripting Languages
Topic: wshshell.run breaks when converted to .exe
Replies: 1
Views: 2800

wshshell.run breaks when converted to .exe

I figured out the problem. The run line should have looked like this WshShell.Run strCmdLine,1,false I didn't have the switches before. I don't know why it worked as an hta without the switches, but it did. and now it works as an exe with the switches in there.... mysterious to me, but I'm sure ther...
by kenthompson
Thu Nov 19, 2009 6:02 am
Forum: Other Scripting Languages
Topic: wshshell.run breaks when converted to .exe
Replies: 1
Views: 2800

wshshell.run breaks when converted to .exe

I have an hta I am attempting to convert to an exe with htaedit. Everything works fine, (wshshell.run on an hta runs ok) except I have a wshshell.run command to run a vbs file. The exe seems to just unload the file structure into a temp file and everything that gets called is in the original folder ...
by kenthompson
Thu Nov 19, 2009 3:49 am
Forum: Other Scripting Languages
Topic: How to run a .chm from hta?
Replies: 2
Views: 2842

How to run a .chm from hta?

Yes, that's the ticket...

Thanks!