ScriptUI Custom Events


hi all,

 

is there chance can propagate custom events in scriptui ? tried sample in estk , works fine. tried run in several cs apps , attempts raised errors. intenttion create custom components throw events listened parent window. asking ?

 

 

function test() {            var w = new window('dialog');           var btn = w.add('button');            w.addeventlistener ('custom', tata);            btn.onclick = function()           {                     w.close()                     var e = new uievent('custom', true, true, w, null);                     e.data= {test:"hello"};                     w.dispatchevent(e)           }             function tata(e)           {                     alert(e.data.test);           }           w.show(); }   test(); 

 

thanks hint/advice,

 

loic

hi loic!

i think remember ancient failed experiment did long time ago indesign not work custom uievents. don't know rest of apps.



More discussions in InDesign Scripting


adobe

Comments

Popular posts from this blog

How to set the order of FAQs instead of alphabetical

Thread: Get UK Keyboard working

how do I change the e-mail address for my merchant account