Re-2: alternatelanguages ... persistent objects from createObject
Hello Krey, the reason for my desire to reuse open win COM objects aims to use many other COM Objects and winword/excel is just an example anyone knows. Of course in winword you can save the file and open it in a second session. But I have some scenarios where it would be fine to having let the object opened and just interact with it. It is just an idea to think about during a coffee break ... Regards, Franz Original Messageprocessed by David InfoCenter Subject: Re: alternatelanguages ... persistent objects from createObject (09-Okt-2008 16:35) From:Ken Ray [EMAIL PROTECTED] To: [EMAIL PROTECTED] But: Could it be possible out of runrev (any idea) to have 2 alternatelanguagescripts runword1.vbs and writeagaininword2.vbs where the second just uses the word object opened by the first. = Can I use a COM-object again by any trick? The first script could perhaps give back an objectID in the result variable to runrev, but how could I reconnect the writeagaininword2.vbs to this existing object (if the first script did not close it)? Just curious - why would you need to do this instead of just creating a new object? The reason I ask is that you can successfully link to currently open instances of applications (I'm thinking MS Office primarily) to manipulate them from multiple independent scripts. That is, you can use VBS with createObject to launch an instance of Excel, say, and get a sheet started, and then later use another VBS with createObject to add data to the same worksheet in Excel. Of course it would be the best runrev could use COM directly ... how about a createObject command in 3.1 ;-) That would be nice! :-) What can I do with the XML alternatelanguage on windows? Sorry, haven't done anything with that... maybe someone else can chime in... Ken Ray Sons of Thunder Software, Inc. Email: [EMAIL PROTECTED] Web Site: http://www.sonsothunder.com/ ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution To: use-revolution@lists.runrev.com ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: alternatelanguages ... persistent objects from createObject
But: Could it be possible out of runrev (any idea) to have 2 alternatelanguagescripts runword1.vbs and writeagaininword2.vbs where the second just uses the word object opened by the first. = Can I use a COM-object again by any trick? The first script could perhaps give back an objectID in the result variable to runrev, but how could I reconnect the writeagaininword2.vbs to this existing object (if the first script did not close it)? Just curious - why would you need to do this instead of just creating a new object? The reason I ask is that you can successfully link to currently open instances of applications (I'm thinking MS Office primarily) to manipulate them from multiple independent scripts. That is, you can use VBS with createObject to launch an instance of Excel, say, and get a sheet started, and then later use another VBS with createObject to add data to the same worksheet in Excel. Of course it would be the best runrev could use COM directly ... how about a createObject command in 3.1 ;-) That would be nice! :-) What can I do with the XML alternatelanguage on windows? Sorry, haven't done anything with that... maybe someone else can chime in... Ken Ray Sons of Thunder Software, Inc. Email: [EMAIL PROTECTED] Web Site: http://www.sonsothunder.com/ ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
alternatelanguages ... persistent objects from createObject
Hello, Using alternatelanguages allows these (like VBS, Javascript) to interact with windows COM objects (using the createObject Syntax f.e. for opening word or excel and write sth there, save it and close). As I asked some weeks ago - how could I reuse such an object later? One answer in the list (I do not find the posting in the moment, sorry for making no credits) was really good: I can use a global variable result in the alternatelanguage as an global variable bridge: f.e. from vbs to runrev. This indeed works. But: Could it be possible out of runrev (any idea) to have 2 alternatelanguagescripts runword1.vbs and writeagaininword2.vbs where the second just uses the word object opened by the first. = Can I use a COM-object again by any trick? The first script could perhaps give back an objectID in the result variable to runrev, but how could I reconnect the writeagaininword2.vbs to this existing object (if the first script did not close it)? Of course it would be the best runrev could use COM directly ... how about a createObject command in 3.1 ;-) Regards, Franz Böhmisch A second question: What can I do with the XML alternatelanguage on windows? After put the alternatelanguages on one pc I get XML VBScript VBScript.Encode JScript JScript.Encode PerlScript SignedJavaScript SignedVBScript ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution