[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [amibroker] JS File Opens Rather than Executes



PureBytes Links

Trading Reference Links

sounds like he could have js files assigned to notepad in windows so it
edits the file instead of running it
check the file associations in wondows


-- 
Cheers
Graham
AB-Write >< Professional AFL Writing Service
Yes, I write AFL code to your requirements
http://www.aflwriting.com

On 05/01/07, Ken Close <ken45140@xxxxxxxxx> wrote:
>
>  Hello:
>
> I am trying to help a friend run a simple JS script file in order to
> export some images of charts.
>
> I used a js example (from Help) file as follows:
>
> AB = new ActiveXObject("Broker.Application");
> Win = AB.ActiveWindow;
> Win.ExportImage( "DC_Test.bmp", 640, 480 );
>
> I instructed him to install the file in the Plugin folder, then use the
> Tools>Customize box to add the file name to the drop down list in the Tools
> menu.
>
> Opening a chart, then clicking on Tools>name of js file will execute the
> file and export the active windows image.  I know because this works fine on
> my computer.
>
> He reports that after following all of the steps I sent him, he clicks on
> the js filename in the Tools drop down, and the file pops open in Notepad
> rather than executing.
>
> Is this possible (it must be as he reports it is happening).  What would
> cause this and what step(s) can I suggest he do so the process operates like
> it is supposed to (and like it does correctly on my machine).   My friend is
> not a member of this conference so I will direct any suggestions to him.
>
> Thanks for any help.
>
> Ken
>
> 
>

Content-Description: "AVG certification"
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.432 / Virus Database: 268.16.5/616 - Release Date: 1/4/2007 1:34 PM