WaitEvent()

Wait to an event on a window previously created, after exeute this command you can consult last event type with MessageID(), and parameters of last event with wParam() and lParam(), this command is designed for applications.