How do I set the script in the Positionchanged-event of a container?

How do I set the script in the Positionchanged-event of a container?

]]>
(Next Post) »

One Commentto How do I set the script in the Positionchanged-event of a container?

  1. Anonymous says:

    < ![CDATA[

    //Helper function


    handleEvent = function (item, name, action, data) {


    item.getProperties().edit()


    .setEventHandler(name, action, data)


    .commit();


    }



    //Set the script yourscriptname to the desktop’s posChanged event


    handleEvent(getEvent().getScreen().getCurrentDesktop(), “posChanged”, EventHandler.RUN_SCRIPT, getScriptByName(“yourscriptname”).getId());


    ]]>

Leave a Reply

Your email address will not be published. Required fields are marked *