quote:
Originally posted by matty
The reason for this is because Patchou had to define these functions within Messenger Plus! itself therefore it will not allow you to define a function and get a pointer to it.
Not quite sure what you are on about here matty
GetCallbackPtr was meant for exactly that purpose really.
However, the reason the OP's code doesn't work is that CreateThread needs an asynchronous callback to work, and unfortunately, Plus! only supports synchronous callbacks due to technical limitations of the scripting engine.