Send & Post | developer.brewmp.com Send & Post | developer.brewmp.com

Developer

Send & Post

Forums:

Can anybody tell me what is the difference between ISHELL_Send & ISHELL_Post event.

Regards,
Tom

when U call ISHELL_Send - it will run immediately from the place, it called, but if u call ISHELL_Post( asynchronous ) - it will run when U'll exit from current function's scope.
So, if u will make next code:
if(flag)
{
ISHELL_PostEvent(...); // posting event, no brakes, event
// won't rise after that call. - It will be passes asap.
ISHELL_SendEvent(...); // sending event immideately and it will be
// processed here

return 0;
// after that, maybe, ISHELL_PostEvent will take place
And note - u can use ISHELL_SendEvent to send events only for your app. Via ISHELL_PostEvent U can send events to any app.

when U call ISHELL_Send - it will run immediately from the place, it called, but if u call ISHELL_Post( asynchronous ) - it will run when U'll exit from current function's scope.
So, if u will make next code:
if(flag)
{
ISHELL_PostEvent(...); // posting event, no brakes, event
// won't rise after that call. - It will be passes asap.
ISHELL_SendEvent(...); // sending event immideately and it will be
// processed here

return 0;
// after that, maybe, ISHELL_PostEvent will take place
And note - u can use ISHELL_SendEvent to send events only for your app. Via ISHELL_PostEvent U can send events to any app.

mr.j8 wrote:And note - u can use ISHELL_SendEvent to send events only for your app. Via ISHELL_PostEvent U can send events to any app.
That is incorrect. You can use ISHELL_SendEvent to send events to other apps.
-Erik

mr.j8 wrote:And note - u can use ISHELL_SendEvent to send events only for your app. Via ISHELL_PostEvent U can send events to any app.
That is incorrect. You can use ISHELL_SendEvent to send events to other apps.
-Erik

This is very similar to windows sendevent (synchronous) and postevent (asynchronous).

This is very similar to windows sendevent (synchronous) and postevent (asynchronous).