TJ,
Thanks... got AB to start properly and complete the
scripts ... using
AB = new
ActiveXObject("Broker.Application");
Problem / Question: At the
end of the scripts, AB remained active (in task Manager), and the AA window
remained on the screen, contrary to your comments below.
Closing the AA window did not remove Broker.exe
from task Manager. I had to explixitly terminate from within Task
Manager.
AB was not running when I initiated the
script.
Also if this info is useful... when I
use:
AB = CreateObject("Broker.Application"); I
get JScript Runtime Error: "Object Expected, Code 800A138F
Any suggestions?
Ara
----- Original Message -----From: Tomasz JaneczkoSent: Friday, March 24, 2006 4:10 PMSubject: Re: [amibroker] Starting AB from script - AB version 4.78.1 / Windows 2000Ara,First, the path in _javascript_ has to be written with DOUBLE backslashes:AB.LoadDatabase("D:\\AB Dbs\\QP3");Second thing is that the behaviour you describe is normal:You initiate AmiBroker, load database and THEN..... your script ends, and Windows Scripting hostautomatically destroys all created objects (in this case: AmiBroker).AmiBroker will be running ONLY FOR DURATION of your script (if it was created in the script).AB will continue to run ONLY if it was running BEFORE script was started (so script did not create object but just attached to running instance).
Best regards,
Tomasz Janeczko
amibroker.com----- Original Message -----From: Ara KaloustianTo: AB-MainSent: Friday, March 24, 2006 10:39 PMSubject: [amibroker] Starting AB from script - AB version 4.78.1 / Windows 2000Am trying to start AB from a jscript....AB = CreateObject("Broker.Application");
AB.LoadDatabase("D:\AB Dbs\QP3");When I start the script, I see AB listed in the Pocesses (Task Manager) for about a second or so, then it's gone.Anyone know what is happening?Thanksara
Please note that this group is for discussion between users only.
To get support from AmiBroker please send an e-mail directly to
SUPPORT {at} amibroker.com
For other support material please check also:
http://www.amibroker.com/support.html
SPONSORED LINKS
| Investment management software | Real estate investment software | Investment property software |
| Software support | Real estate investment analysis software | Investment software |
YAHOO! GROUPS LINKS
- Visit your group "amibroker" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
