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 s​how, 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

Reply via email to