PureBytes Links
Trading Reference Links
|
Hi,
AmiBroker doesn't host/execute .js (Javascript) files directly. .js
files are hosted/executed by the ActiveX scripting engine from
Microsoft -- you execute a .js file using either version of the
engine -- cscript.exe or wscript.exe (the only difference is where
output goes. Small note - when you use wscript, every WScript.Echo
("Hello"); command will result in a separate dialog box that you have
to dismiss. When you use cscript, all WScript.Echo("..."); output
streams in the command window.)
By default, when you double-click a .js file in Windows Explorer,
you're executing:
<path of wscript.exe>\wscript.exe <path of your script file>
Now, within AmiBroker, you can add a custom item to the tools menu
(I'm pretty sure -- I'm not at my home PC at the moment) to do just
that. AmiBroker isn't executing the js directly -- it's enabling you
to launch a js script from within it.
Now, if you're not confused, then be sure to look up the whole
concept of intermingling Microsoft script code with AFL code in the
online help. That doesn't sound like what you want, and with the
advanced control structures now in AFL and support for ActiveX
objects, it's much less frequently done. However, it's possible.
Gordon
--- In amibroker@xxxxxxxxxxxxxxx, "tardon186" <marg_w@xxxx> wrote:
> Hi,
>
> It's probably right in front of me but I can't find it - I've tried
> loading a .js script into the workspace and that doesn't seem to
work.
>
> What should I do?
>
> Thanks
>
> Marg
------------------------ Yahoo! Groups Sponsor --------------------~-->
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/GHeqlB/TM
--------------------------------------------------------------------~->
Check AmiBroker web page at:
http://www.amibroker.com/
Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/amibroker/
<*> To unsubscribe from this group, send an email to:
amibroker-unsubscribe@xxxxxxxxxxxxxxx
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|