PureBytes Links
Trading Reference Links
|
Greetings,
I am trying to export images from Amibroker via ExportImage. Calling
directly from Amibroker does not work, also I have read some posts
that it should be run externally, so I created simple file
"screenshot.js" in my filesystem which looks like this:
AB = new ActiveXObject("Broker.Application"); // create Amibroker object
dir = "C:\\Images\\";
AB.ActiveWindow.ExportImage( dir+AB.ActiveDocument.Name+".gif", 1680,
1050 ); // export image
This works fine, after execution of this file the image is saved on disk.
But I would like to use some static variables saved in Amibroker in my
javascript file to choose more compound filename. Object "AFL", which
is used in Amibroker environment, is unknown to scripting host. :o(
Or maybe it is somehow possible to create an afl formula which could
call ExportImage with passing chosen filename in variable? Is there a
way to call screenshot.js with some parameters directly from Amibroker
formula? Or is it possible to create and call a DLL? Unfortunately, I
am not able to figure how to use DLLs in Amibroker, so I would be
grateful even for any URL with basic information about this area.
Thank you very much,
Martin
------------------------------------
**** IMPORTANT ****
This group is for the discussion between users only.
This is *NOT* technical support channel.
*********************
TO GET TECHNICAL SUPPORT from AmiBroker please send an e-mail directly to
SUPPORT {at} amibroker.com
*********************
For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/
For other support material please check also:
http://www.amibroker.com/support.html
*********************************
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/amibroker/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/amibroker/join
(Yahoo! ID required)
<*> To change settings via email:
mailto:amibroker-digest@xxxxxxxxxxxxxxx
mailto:amibroker-fullfeatured@xxxxxxxxxxxxxxx
<*> 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/
|