Advertisement
Guest User

Untitled

a guest
Aug 18th, 2017
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Delphi 0.70 KB | None | 0 0
  1. if (Copy(UserMessage, 1, 6) = MSG_NEW_MESSAGE) then
  2.     begin
  3.       Delete(UserMessage, 1, 6);
  4.       txtLog.Lines.Add(UserMessage + #13#10);
  5.       for i := 0 to sckHost.Socket.ActiveConnections - 1 do
  6.       begin
  7.         if (sckHost.Socket.Connections[i].SocketHandle <> Socket.SocketHandle) then
  8.           sckHost.Socket.Connections[i].SendText(MSG_NEW_MESSAGE + UserMessage);
  9.       end;
  10.       if (IsIconic(frmMain.Handle) = TRUE) then
  11.       begin
  12.         FlashInfo.cbSize := SizeOf(FLASHWINFO);
  13.         FlashInfo.hwnd := frmMain.Handle;
  14.         FlashInfo.uCount := 5;
  15.         FlashInfo.dwTimeout := 100;
  16.         FlashInfo.dwFlags := FLASHW_ALL;
  17.         FlashWindowEx(FlashInfo);
  18.       end;
  19.     end;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement