how to control a module from another module ?
  • User avatar
    FlyingLobster
    member
    Posts: 23
    Joined: Sun Jul 19, 2009 10:45 am
    Location: Brussels, Belgiuym
    Contact:

    how to control a module from another module ?

    by FlyingLobster » Sun Jul 19, 2009 11:07 am

    Hey guys,

    I am building a module which would be like a master control panel for all the functions I am using I the various modules.
    The goal whould be that all buttons in this master module would be linked to buttons of other modules and controlling them.

    Is there any way to link a button on a module with one of another module ?
    If not, is there any way to interact with a module from another one ? (passing values, etc...)
    Only constraint is that I don't want to have to edit the code of the module to be controlled (if it's the only way, why not).

    Thank you



    Please enjoy the two modules I shared in the library... you can find them under FlyingLobster...
  • tb_101
    junior Member
    Posts: 9
    Joined: Mon Jun 29, 2009 12:52 am

    by tb_101 » Sun Jul 19, 2009 12:34 pm

    the only way, i found out is checking a shared dictionary
    periodically. to see how it works, have a look at the bpm
    module from garagecube.

    its realy not very comfortable ...

    here the info from the doc:

    getshareddictionary
    This function returns the global shared dictionary. This dictionary is useful to allow the modules to
    communicate together and share values. By default, all the modules are executed in completely separated
    spaces to avoid any conflict of variables and functionalities. However there is a global dictionary that any
    module can use to read or to store values. This function can be used to get this dictionary.

Who is online

Users browsing this forum: No registered users and 6 guests