Advertisement
Advertisement
| 05.16.2008 at 05:52AM PDT, ID: 23408073 | Points: 125 |
|
[x]
Attachment Details
|
||
| Microsoft |
| Apple |
| Internet |
| Gamers |
| Digital Living |
| Virus & Spyware |
| Hardware |
| Software |
| ITPro |
| Developer |
| Storage |
| OS |
| Database |
| Security |
| Programming |
| Web Development |
| Networking |
| Other |
| Community Support |
| 05.16.2008 at 05:57AM PDT, ID: 21582242 |
| 05.16.2008 at 06:18AM PDT, ID: 21582380 |
| 05.17.2008 at 08:35AM PDT, ID: 21589717 |
| 05.18.2008 at 10:50AM PDT, ID: 21593402 |
| 05.19.2008 at 12:37AM PDT, ID: 21595748 |
| 05.19.2008 at 03:38AM PDT, ID: 21596445 |
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: 31: 32: 33: 34: 35: 36: 37: 38: 39: 40: 41: 42: 43: 44: 45: 46: 47: 48: |
Server:
procedure ProcesThread.AlertUdp(SendText, Recipients: string);
var
Recipient: string;
Udp: TIdEchoUDP;
begin
SendText := FieldByName('TEXT').Value;
while Trim(Recipients) <> '' do
begin
Recipient := Trim(Copy(Recipients, 0, Pos(';', Recipients) - 1));
if Trim(Recipient) = '' then
begin
Recipient := Trim(Recipients);
Recipients := '';
end else
Recipients := Trim(Copy(Recipients, Length(Recipient) + 2, Length(Recipients)));
Udp := TIdEchoUDP.Create(Nil);
try
with Udp do
begin
Host := Copy(Recipient, 0, Pos('@', Recipient) -1);
Port := StrToInt(Copy(Recipient, Length(Host) + 2, Length(Recipient)));
Send(SendText);
end;
finally
FreeAndNil(Udp);
end;
end;
end;
The client side:
procedure TfrmMain.UDPObjUDPRead(Sender: TObject; AData: TStream; ABinding: TIdSocketHandle);
var
Stream: TStringStream;
begin
if Application.Active then
begin
Stream := TStringStream.Create('');
try
Stream.CopyFrom(AData, AData.Size);
medWarning.Text := Stream.DataString;
finally
FreeAndNil(stream);
end;
end;
end;
|
| 05.19.2008 at 03:56AM PDT, ID: 21596525 |
| 05.19.2008 at 04:23AM PDT, ID: 21596671 |
| 05.19.2008 at 04:39AM PDT, ID: 21596781 |
| 05.19.2008 at 05:20AM PDT, ID: 21597066 |
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: |
procedure TfrmPreview.FlashTaskbarButton; var FWinfo: FlashWInfo; begin FWinfo.cbSize := 20; FWinfo.hwnd := Handle; // Handle of Window to flash FWinfo.dwflags := FLASHW_ALL; FWinfo.ucount := 3; // number of times to flash FWinfo.dwtimeout := 0; // speed in ms, 0 default blink cursor rate FlashWindowEx(FWinfo); // make it flash! end; |