[Bug 31423] Windows script host broken

wine-bugs at winehq.org wine-bugs at winehq.org
Thu Aug 23 21:30:55 CDT 2012


http://bugs.winehq.org/show_bug.cgi?id=31423

--- Comment #2 from guillaume <djahma at gmail.com> 2012-08-23 21:30:55 CDT ---
Hi,
Thanks for caring about this issue.
Once AmiBroker is opened, you should see a 'Charts' tab in the left hand side
vertical pane. Click on it, then right click the 'custom' folder and select
New->Formula. Then right click your formula file and choose 'edit'. Copy the
following AFL language code:

EnableScript("jscript");
<%
function displayMessage(message)
{
    var myshell = new ActiveXObject("WScript.Shell");
    myshell.Popup(message);
}
%>
script=GetScriptObject();
script.displayMessage("A message");

Save that and click on the button named 'AFL' to check syntax. You should get
an error saying 'Is there a semicolon missing'. Actually, AmiBroker cannot find
windows scripting host and thus, the 'script' object from the code above is
never created.
Also, if you start AB from a terminal, you should get a message saying:
"fixme:jscript:JScript_SetScriptSate unimplemented state 3".
This message wasn't there when it was working on my previous xubuntu version. 
Also, two years ago when I first installed AB on Linux, I had to install
internet explorer 6, vcrun6 and wsh56 to get scripting working, in addition to
MFC40.dll and MFC42.dll to get AmiBroker to install.

Regards,
Guillaume

-- 
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
Do not reply to this email, post in Bugzilla using the
above URL to reply.
------- You are receiving this mail because: -------
You are watching all bug changes.



More information about the wine-bugs mailing list