> Solution: run CreatObject("wmplayer.ocx") later after show, such as in
MAP_CB of dialog.
Yes, that's close to I was going to suggest you.
Iup initializes the COM library with some parameters. This occurs in
IupOpen, or in the first require"iup" in Lua. Try just changing the
require"iup" to be before the require"luacom".
Best,
Scuri
Em sex, 24 de ago de 2018 às 12:11, 云履 <robert...@qq.com> escreveu:
> Demo code (ZeroBrane Studio - Lua IDE, windows 10, lua 5.3, iup 3.24,
> luacom 1.4):
>
> luacom=require 'luacom'
> luacom.CreateObject("wmplayer.ocx") .URL="" --Could comment '.URL=""'
> IUP=require 'iuplua'
> IUP.dialog{title='test'}:show()
> if (IUP.MainLoopLevel()==0) then
> IUP.MainLoop()
> end
>
> Dialog window often *not show*, but exe *process exists*. (And sometimes
> any_key could even work!)
> Seems the COM object sometimes block something, but which COM object
> should be asynchronous.
>
> Other phenomenon maybe related:
> In other code, there would be an 'empty' window with title 'G' related to
> the use of 'wmplayer.ocx' COM. But which COM should not invoke any window:
>
> - CreateObject("wmplayer.ocx").URL="my.mp3" works in *vbs* file.
> - powershell -Command {(new-object -com wmplayer.ocx).URL="my.mp3"}
> works in *powershell*.
>
>
> Solution: run CreatObject("wmplayer.ocx") later after show, such as in
> MAP_CB of dialog.
>
> ------------------------------------------------------------------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> _______________________________________________
> Iup-users mailing list
> Iup-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/iup-users
>
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Iup-users mailing list
Iup-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/iup-users