View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0002747 | MMW v4 | Framework: Scripts/Extensions | public | 2007-01-05 13:54 | 2014-02-13 16:51 |
Reporter | Ludek | Assigned To | |||
Priority | high | Severity | minor | Reproducibility | always |
Status | resolved | Resolution | no change required | ||
Product Version | 3.0 | ||||
Target Version | 5.0.0 | ||||
Summary | 0002747: Remove dependance on msscript.ocx | ||||
Description | Currently MM needs msscript.ocx in order to execute scripts. However, this isn't absolutely necessary, we can do without it, the methods for script execution can be executed directly from MM. | ||||
Tags | No tags attached. | ||||
Fixed in build | |||||
|
Technical info: The methods to be used are in ACTIVSCP.H file (standard MS WinAPI header file). I found some examples of how interfaces from this file should be used: http://support.microsoft.com/kb/223139 http://blogs.msdn.com/ericlippert/archive/2005/10/12/480154.aspx http://www.experts-exchange.com/Programming/Programming_Languages/Delphi/Q_10118366.html So, shortly, we need to remove dependance on MSScriptControl_TLB.pas from Scripts.pas. |
|
Assigning to Pavel. Assign back to me when you are done, so that I can remove msscript.ocx from the installer. |
|
I have removed dependance on msscript.ocx and implemented internal MM script execution mechanism. |
|
While it works in some scripts (e.g. Statistics), it causes errors in some specific ones - in my case I couldn't get running http://www.mediamonkey.com/wiki/index.php/Sample_AMG_Search_script - when Search from Amazon is initiated, an error occurs. When I reverted SVN Revision 3727, it started to work normally. Raising to Immediate, since we can't include it this way in the next release. In case it's fixed, it could be included, but we will probably wait for more testing in a new version. |
|
Btw, as for JScript testing, some scripts are in forum, e.g. http://www.mediamonkey.com/forum/viewtopic.php?t=12496&highlight=jscript |
|
Actually, I rather reverted the change in SVN in order to be able to release MM 3.0, this can be finished later. Decreasing priority, there are other things to do. |
|
Ludek, try to finish the work Pavel started some time ago. The basics should be in SVN history. |