{"action":"created","issue":{"url":"https://api.github.com/repos/tomato111/Lyric-Show-Modoki/issues/5","repository_url":"https://api.github.com/repos/tomato111/Lyric-Show-Modoki","labels_url":"https://api.github.com/repos/tomato111/Lyric-Show-Modoki/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/tomato111/Lyric-Show-Modoki/issues/5/comments","events_url":"https://api.github.com/repos/tomato111/Lyric-Show-Modoki/issues/5/events","html_url":"https://github.com/tomato111/Lyric-Show-Modoki/issues/5","id":182115082,"number":5,"title":"a plugin to get lyricText that load/download by ESLyric(foo_uie_eslyric.dll)","user":{"login":"elia-is-me","id":5344103,"avatar_url":"https://avatars.githubusercontent.com/u/5344103?v=3","gravatar_id":"","url":"https://api.github.com/users/elia-is-me","html_url":"https://github.com/elia-is-me","followers_url":"https://api.github.com/users/elia-is-me/followers","following_url":"https://api.github.com/users/elia-is-me/following{/other_user}","gists_url":"https://api.github.com/users/elia-is-me/gists{/gist_id}","starred_url":"https://api.github.com/users/elia-is-me/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elia-is-me/subscriptions","organizations_url":"https://api.github.com/users/elia-is-me/orgs","repos_url":"https://api.github.com/users/elia-is-me/repos","events_url":"https://api.github.com/users/elia-is-me/events{/privacy}","received_events_url":"https://api.github.com/users/elia-is-me/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-10-10T21:03:01Z","updated_at":"2016-10-12T06:39:06Z","closed_at":null,"body":"ttsping add COM features to [ESLyric](https://hydrogenaud.io/index.php/topic,111278.0.html) component and that enables WSH Panel Mod (Plus) to get lyric text through a callback function which is useful if someone do not intend to use ESLyric panel but WSH-Lyric (like Lyric-Show-Modoki) to display lyrics.\r\n\r\nESLyric is powerful to download (and parse) lyrics and I`m glad to make use of it. here is the code:\r\n```javascript\r\npl = {\r\n    name: 'lplugin_ESLyric',\r\n    label: 'ESLyric: 检索',\r\n    author: 'Elia',\r\n    onStartUp: function() {\r\n        var ESLyric; \r\n\r\n        // ESLyric component is installed and can create COM object.\r\n        try {\r\n            ESLyric = new ActiveXObject(\"ESLyric\");\r\n        } catch (e) {\r\n            return;\r\n        }\r\n        //\r\n        ESLyric.SetLyricCallback(onLyricGet);\r\n        fb.IsPlaying && fb.RunMainMenuCommand('View/ESLyric/Reload lyric'); // trigger onLyricGet\r\n        // fb.IsPlaying && fb.RunMainMenuCommand('视图/ESLyric/重载歌词');\r\n\r\n        function onLyricGet(obj) {\r\n\r\n            main(obj.lyricText);\r\n\r\n        }\r\n\r\n    },\r\n\r\n    onCommand: function() {\r\n        if (!utils.checkComponent(\"foo_uie_eslyric\"))\r\n            return;\r\n        fb.IsPlaying && fb.RunMainMenuCommand('View/ESLyric/Search...');\r\n        // fb.IsPlaying && fb.RunMainMenuCommand('视图/ESLyric/搜索歌词...');\r\n    }\r\n}\r\n```\r\n> ESLyric with COM is not released in public but it' ll not take long.\r\n"},"comment":{"url":"https://api.github.com/repos/tomato111/Lyric-Show-Modoki/issues/comments/253131813","html_url":"https://github.com/tomato111/Lyric-Show-Modoki/issues/5#issuecomment-253131813","issue_url":"https://api.github.com/repos/tomato111/Lyric-Show-Modoki/issues/5","id":253131813,"user":{"login":"tomato111","id":1456245,"avatar_url":"https://avatars.githubusercontent.com/u/1456245?v=3","gravatar_id":"","url":"https://api.github.com/users/tomato111","html_url":"https://github.com/tomato111","followers_url":"https://api.github.com/users/tomato111/followers","following_url":"https://api.github.com/users/tomato111/following{/other_user}","gists_url":"https://api.github.com/users/tomato111/gists{/gist_id}","starred_url":"https://api.github.com/users/tomato111/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomato111/subscriptions","organizations_url":"https://api.github.com/users/tomato111/orgs","repos_url":"https://api.github.com/users/tomato111/repos","events_url":"https://api.github.com/users/tomato111/events{/privacy}","received_events_url":"https://api.github.com/users/tomato111/received_events","type":"User","site_admin":false},"created_at":"2016-10-12T06:39:06Z","updated_at":"2016-10-12T06:39:06Z","body":"thx! I'll merge a commit(2074791) for now."}}
{"actor":{"display_login":"tomato111"}}