webcamUnit.pas
上传用户:gdszzsp
上传日期:2007-01-08
资源大小:621k
文件大小:51k
源码类别:

远程控制编程

开发平台:

Delphi

  1. unit webcamUnit;
  2. interface
  3. uses
  4.   Windows, Messages, SysUtils, Classes, Graphics,
  5.   Controls, Forms, Dialogs, StdCtrls, ExtCtrls, ScktComp;
  6. type
  7.   Twebcam=class(TForm)
  8.     CaptionLabel: TLabel;
  9.     CloseButton: TFlatSpeedButton;
  10.     Shape1: TShape;
  11.     Image1: TImage;
  12.     button1: TOutlookBtn;
  13.     button2: TOutlookBtn;
  14.     Label1: TLabel;
  15.     RxSpinEdit: TRxSpinEdit;
  16.     websock: TClientSocket;
  17.     doit: TTimer;
  18.     procedure button1Click(Sender: TObject);
  19.     procedure CaptionLabelMouseDown(Sender: TObject; Button: TMouseButton; Shift: TShiftState; X: Integer; Y: Integer);
  20.     procedure CaptionLabelMouseMove(Sender: TObject; Shift: TShiftState; X: Integer; Y: Integer);
  21.     procedure CaptionLabelMouseUp(Sender: TObject; Button: TMouseButton; Shift: TShiftState; X: Integer; Y: Integer);
  22.     procedure CloseButtonClick(Sender: TObject);
  23.     procedure doitTimer(Sender: TObject);
  24.     procedure FormCreate(Sender: TObject);
  25.     procedure FormPaint(Sender: TObject);
  26.     procedure FormResize(Sender: TObject);
  27.     procedure FormShow(Sender: TObject);
  28.     procedure RxSpinEditChange(Sender: TObject);{?}
  29.     procedure websockConnect(Sender: TObject; Socket: TCustomWinSocket);
  30.     procedure websockRead(Sender: TObject; Socket: TCustomWinSocket);
  31.   private
  32.     { Private declarations }
  33.   public
  34.     { Public declarations }
  35.   end ;
  36. var
  37.   webcam: Twebcam;
  38. {This file is generated by DeDe v2.34 (c) 1999 by DaFixer}
  39. implementation
  40. {$R *.DFM}
  41. procedure Twebcam.button1Click(Sender: TObject);
  42. begin
  43. {
  44. 004DE698   53                     push    ebx
  45. 004DE699   8BD8                   mov     ebx, eax
  46. 004DE69B   83BBF402000000         cmp     dword ptr [ebx+$02F4], +$00
  47. 004DE6A2   7509                   jnz     004DE6AD
  48. 004DE6A4   8BC3                   mov     eax, ebx
  49. 004DE6A6   E831FEFFFF             call    004DE4DC
  50. 004DE6AB   EB07                   jmp     004DE6B4
  51. 004DE6AD   8BC3                   mov     eax, ebx
  52. 004DE6AF   E848FFFFFF             call    004DE5FC
  53. 004DE6B4   8B83F4020000           mov     eax, [ebx+$02F4]
  54. 004DE6BA   83F801                 cmp     eax, +$01
  55. 004DE6BD   1BC0                   sbb     eax, eax
  56. 004DE6BF   F7D8                   neg     eax 
  57. 004DE6C1   F6D8                   neg     al
  58. 004DE6C3   1BC0                   sbb     eax, eax
  59. 004DE6C5   8983F4020000           mov     [ebx+$02F4], eax
  60. 004DE6CB   5B                     pop     ebx
  61. 004DE6CC   C3                     ret
  62. }
  63.  end ; 
  64. procedure Twebcam.CaptionLabelMouseDown(Sender: TObject; Button: TMouseButton; Shift: TShiftState; X: Integer; Y: Integer);
  65. begin
  66. {
  67. 004DE3F0   55                     push    ebp
  68. 004DE3F1   8BEC                   mov     ebp, esp
  69. 004DE3F3   53                     push    ebx
  70. 004DE3F4   8BD8                   mov     ebx, eax
  71. 004DE3F6   8B83C4020000           mov     eax, [ebx+$02C4]
  72. 004DE3FC   8B4024                 mov     eax, [eax+$24]
  73. 004DE3FF   E8D8E0F5FF             call    0043C4DC
  74. 004DE404   50                     push    eax
  75. * Reference to: SHBrowseForFolderA.SetCapture
  76. |
  77. 004DE405   E86E94F2FF             call    00407878
  78. 004DE40A   C783F4020000FFFFFFFF   mov     dword ptr [ebx+$02F4], $FFFFFFFF
  79. 004DE414   8B450C                 mov     eax, [ebp+$0C]
  80. 004DE417   8983EC020000           mov     [ebx+$02EC], eax
  81. 004DE41D   8B4508                 mov     eax, [ebp+$08]
  82. 004DE420   8983F0020000           mov     [ebx+$02F0], eax
  83. 004DE426   5B                     pop     ebx
  84. 004DE427   5D                     pop     ebp
  85. 004DE428   C20C                   ret     $0C
  86. }
  87.  end ; 
  88. procedure Twebcam.CaptionLabelMouseMove(Sender: TObject; Shift: TShiftState; X: Integer; Y: Integer);
  89. begin
  90. {
  91. 004DE42C   55                     push    ebp
  92. 004DE42D   8BEC                   mov     ebp, esp
  93. 004DE42F   53                     push    ebx
  94. 004DE430   56                     push    esi
  95. 004DE431   8BD8                   mov     ebx, eax
  96. 004DE433   83BBF402000000         cmp     dword ptr [ebx+$02F4], +$00
  97. 004DE43A   7433                   jz      004DE46F
  98. 004DE43C   8B83C4020000           mov     eax, [ebx+$02C4]
  99. 004DE442   8B7024                 mov     esi, [eax+$24]
  100. 004DE445   8B83EC020000           mov     eax, [ebx+$02EC]
  101. 004DE44B   2B450C                 sub     eax, dword ptr [ebp+$0C]
  102. 004DE44E   8B5630                 mov     edx, [esi+$30]
  103. 004DE451   2BD0                   sub     edx, eax
  104. 004DE453   8BC6                   mov     eax, esi
  105. 004DE455   E8527AF5FF             call    00435EAC
  106. 004DE45A   8B83F0020000           mov     eax, [ebx+$02F0]
  107. 004DE460   2B4508                 sub     eax, dword ptr [ebp+$08]
  108. 004DE463   8B5634                 mov     edx, [esi+$34]
  109. 004DE466   2BD0                   sub     edx, eax
  110. 004DE468   8BC6                   mov     eax, esi
  111. 004DE46A   E8617AF5FF             call    00435ED0
  112. 004DE46F   5E                     pop     esi
  113. 004DE470   5B                     pop     ebx
  114. 004DE471   5D                     pop     ebp
  115. 004DE472   C208                   ret     $08
  116. }
  117.  end ; 
  118. procedure Twebcam.CaptionLabelMouseUp(Sender: TObject; Button: TMouseButton; Shift: TShiftState; X: Integer; Y: Integer);
  119. begin
  120. {
  121. 004DE478   55                     push    ebp
  122. 004DE479   8BEC                   mov     ebp, esp
  123. 004DE47B   53                     push    ebx
  124. 004DE47C   56                     push    esi
  125. 004DE47D   8BD8                   mov     ebx, eax
  126. 004DE47F   83BBF402000000         cmp     dword ptr [ebx+$02F4], +$00
  127. 004DE486   7440                   jz      004DE4C8
  128. 004DE488   8B83C4020000           mov     eax, [ebx+$02C4]
  129. 004DE48E   8B7024                 mov     esi, [eax+$24]
  130. * Reference to: SHBrowseForFolderA.ReleaseCapture
  131. |
  132. 004DE491   E89293F2FF             call    00407828
  133. 004DE496   33C0                   xor     eax, eax
  134. 004DE498   8983F4020000           mov     [ebx+$02F4], eax
  135. 004DE49E   8B83EC020000           mov     eax, [ebx+$02EC]
  136. 004DE4A4   2B450C                 sub     eax, dword ptr [ebp+$0C]
  137. 004DE4A7   8B5630                 mov     edx, [esi+$30]
  138. 004DE4AA   2BD0                   sub     edx, eax
  139. 004DE4AC   8BC6                   mov     eax, esi
  140. 004DE4AE   E8F979F5FF             call    00435EAC
  141. 004DE4B3   8B83F0020000           mov     eax, [ebx+$02F0]
  142. 004DE4B9   2B4508                 sub     eax, dword ptr [ebp+$08]
  143. 004DE4BC   8B5634                 mov     edx, [esi+$34]
  144. 004DE4BF   2BD0                   sub     edx, eax
  145. 004DE4C1   8BC6                   mov     eax, esi
  146. 004DE4C3   E8087AF5FF             call    00435ED0
  147. 004DE4C8   5E                     pop     esi
  148. 004DE4C9   5B                     pop     ebx
  149. 004DE4CA   5D                     pop     ebp
  150. 004DE4CB   C20C                   ret     $0C
  151. }
  152.  end ; 
  153. procedure Twebcam.CloseButtonClick(Sender: TObject);
  154. begin
  155. {
  156. 004DE3DC   53                     push    ebx
  157. 004DE3DD   8BD8                   mov     ebx, eax
  158. 004DE3DF   8BC3                   mov     eax, ebx
  159. 004DE3E1   E816020000             call    004DE5FC
  160. 004DE3E6   8BC3                   mov     eax, ebx
  161. 004DE3E8   E88F16F7FF             call    0044FA7C
  162. 004DE3ED   5B                     pop     ebx
  163. 004DE3EE   C3                     ret
  164. }
  165.  end ; 
  166. procedure Twebcam.doitTimer(Sender: TObject);
  167. begin
  168. {
  169. 004DEB14   55                     push    ebp
  170. 004DEB15   8BEC                   mov     ebp, esp
  171. 004DEB17   6A00                   push    $00
  172. 004DEB19   6A00                   push    $00
  173. 004DEB1B   53                     push    ebx
  174. 004DEB1C   8BD8                   mov     ebx, eax
  175. 004DEB1E   33C0                   xor     eax, eax
  176. 004DEB20   55                     push    ebp
  177. * Possible String Reference to: "槿J