Shoutbox

Passing information DLL -> script - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Messenger Plus! for Live Messenger (/forumdisplay.php?fid=4)
+---- Forum: Scripting (/forumdisplay.php?fid=39)
+----- Thread: Passing information DLL -> script (/showthread.php?tid=63513)

Passing information DLL -> script by lysp on 07-18-2006 at 08:11 AM

Just a quick thought.

At the moment you are able to call com functions from a script.

How would you go about going the other direction, eg. the dll is running in the background and when it gets information will need to pass it back to a script. Is this able to be done?

Only other way i can think of doing this is having a timer or a loop, but im not sure how resource hungry that'd be.

Eg.

while() {

if (dataAvailable)
    call getdata()

}

or

timer_event()
{

if (dataAvailable)
    call getdata()

}

Has anyone tried this? As i think what i'll need to do is implement some sort of buffering system into my compiled code and buffer/stack the data until the script calls it to read the info out.


RE: Passing information DLL -> script by -dt- on 07-18-2006 at 08:24 AM

well how Ive managed to do it is create a hidden plus window then pass the hwnd of some textbox on it to your dll then just sendMessage and insert some text into that textbox and it should trigger a plus event


RE: Passing information DLL -> script by lysp on 07-18-2006 at 11:33 PM

Nice idea, thanks.


RE: Passing information DLL -> script by lysp on 07-20-2006 at 01:04 PM

Sorry just after a bit more information, do you have an example of this in one of your scripts?


off topic: u from melb?