
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">
<wml>
	<head><meta forua="true" http-equiv="Cache-Control" content="max-age=0" /></head><card id="MainCard" title="&#x6B22;&#x8FCE;&#x5149;&#x4E34;"><p><a href="wap.asp">&#x6728;&#x5B50;&#x5C4B;</a><br/>&nbsp;</p><p><b>&#x6807;&#x9898;&#x3A;</b> &#x56;&#x42;&#x36;&#x2E;&#x30;&#x8C03;&#x7528;&#x77;&#x69;&#x6E;&#x33;&#x32;&#x61;&#x70;&#x69;&#x6A21;&#x62DF;&#x9F20;&#x6807;&#x5355;&#x51FB;&#x7B49;&#x64CD;&#x4F5C;</p><p><b>&#x4F5C;&#x8005;&#x3A;</b> &#x64;&#x6E;&#x61;&#x77;&#x6F;</p><p><b>&#x65E5;&#x671F;&#x3A;</b> &#x32;&#x30;&#x31;&#x30;&#x2D;&#x30;&#x39;&#x2D;&#x33;&#x30;&#x20;&#x30;&#x35;&#x3A;&#x32;&#x31;&#x20;&#x50;&#x4D;</p><p><b>&#x5206;&#x7C7B;&#x3A;</b> <a href="wap.asp?do=showLog&amp;cateID=16">&#x57;&#x69;&#x6E;&#x7F16;&#x7A0B;</a></p><p><b>&#x5185;&#x5BB9;&#x3A;</b> 1.&#x83B7;&#x53D6;&#x7A97;&#x53E3;&#x5750;&#x6807;<br/>&#x590D;&#x5236;&#x5185;&#x5BB9;&#x5230;&#x526A;&#x8D34;&#x677F; &#x7A0B;&#x5E8F;&#x4EE3;&#x7801;&#39;Win32 Api<br/>Private Declare Function FindWindow Lib &#34;user32&#34; Alias &#34;FindWindowA&#34; (ByVal lpClassName As String, ByVal lpWindowName As String) As Long<br/>Private Declare Function GetWindowRect Lib &#34;user32&#34; (ByVal hwnd As Long, lpRect As Rect) As Long<br/>Private Type Rect<br/>&nbsp;&nbsp;&nbsp;&nbsp;Left As Long<br/>&nbsp;&nbsp;&nbsp;&nbsp;Top As Long<br/>&nbsp;&nbsp;&nbsp;&nbsp;Right As Long<br/>&nbsp;&nbsp;&nbsp;&nbsp;Bottom As Long<br/>End Type<br/>Private Sub Command1_Click()<br/>&nbsp;&nbsp;&nbsp;&nbsp;Dim hwnd As Long<br/>&nbsp;&nbsp;&nbsp;&nbsp;Dim result As Long, myrect As Rect<br/>&nbsp;&nbsp;&nbsp;&nbsp;<br/>&nbsp;&nbsp;&nbsp;&nbsp;hwnd = FindWindow(vbNullString, &#34;&#x6728;&#x5B50;&#x5C4B;&#34;)<br/>&nbsp;&nbsp;&nbsp;&nbsp;If hwnd &lt;&gt; 0 Then<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;result = GetWindowRect(hwnd, myrect)<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;If result &lt;&gt; 0 Then<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;MsgBox &#34;&#x5DE6;&#x4E0A;&#x89D2;&#x5750;&#x6807;&#xFF1A;(&#34; &amp; myrect.Left &amp; &#34;,&#34; &amp; myrect.Top &amp; &#34;) &#x53F3;&#x4E0B;&#x89D2;&#x5750;&#x6807;&#xFF1A;(&#34; &amp; myrect.Right &amp; &#34;,&#34; &amp; myrect.Bottom &amp; &#34;)&#34;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Else<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;MsgBox &#34;&#x7A97;&#x53E3;&#x5750;&#x6807;&#x83B7;&#x53D6;&#x5931;&#x8D25;&#xFF01;&#34;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;End If<br/>&nbsp;&nbsp;&nbsp;&nbsp;Else<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;MsgBox &#34;&#x83B7;&#x53D6;&#x7A97;&#x53E3;&#x53E5;&#x67C4;&#x5931;&#x8D25;&#xFF01;&#34;<br/>&nbsp;&nbsp;&nbsp;&nbsp;End If<br/>End Sub<br/>2.&#x83B7;&#x53D6;&#x6307;&#x5B9A;&#x5750;&#x6807;&#x7684;&#x989C;&#x8272;<br/>&#x590D;&#x5236;&#x5185;&#x5BB9;&#x5230;&#x526A;&#x8D34;&#x677F; &#x7A0B;&#x5E8F;&#x4EE3;&#x7801;&#39;Win32 Api<br/>Private Declare Function GetPixel Lib &#34;gdi32&#34; (ByVal hdc As Long, ByVal x As Long, ByVal y As Long) As Long<br/>Private Declare Function GetDC Lib &#34;user32&#34; (ByVal hwnd As Long) As Long<br/>Private Sub Command1_Click()<br/>&nbsp;&nbsp;&nbsp;&nbsp;MsgBox GetPixel(GetDC(0), 62, 704)<br/>End Sub<br/>3.&#x6A21;&#x62DF;&#x9F20;&#x6807;&#x5355;&#x51FB;<br/>&#x590D;&#x5236;&#x5185;&#x5BB9;&#x5230;&#x526A;&#x8D34;&#x677F; &#x7A0B;&#x5E8F;&#x4EE3;&#x7801;&#39;Win32 Api<br/>Private Declare Function SetCursorPos Lib &#34;user32&#34; (ByVal x As Long, ByVal y As Long) As Long<br/>Private Declare Sub mouse_event Lib &#34;user32&#34; (ByVal dwFlags As Long, ByVal dx As Long, ByVal dy As Long, ByVal cButtons As Long, ByVal dwExtraInfo As Long)<br/>Const MOUSEEVENTF_ABSOLUTE = &amp;H8000<br/>Const MOUSEEVENTF_MOVE = &amp;H1<br/>Const MOUSEEVENTF_LEFTDOWN = &amp;H2<br/>Const MOUSEEVENTF_LEFTUP = &amp;H4<br/>Const MOUSEEVENTF_MIDDLEDOWN = &amp;H20<br/>Const MOUSEEVENTF_MIDDLEUP = &amp;H40<br/>Const MOUSEEVENTF_RIGHTDOWN = &amp;H8<br/>Const MOUSEEVENTF_RIGHTUP = &amp;H10<br/>Private Sub Command1_Click()<br/>&nbsp;&nbsp;&nbsp;&nbsp;Dim result As Boolean<br/>&nbsp;&nbsp;&nbsp;&nbsp;result = SetCursorPos(62, 704)<br/>&nbsp;&nbsp;&nbsp;&nbsp;If result Then<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#39;&#x4E24;&#x4E2A;&#x8FDE;&#x7EED;&#x52A8;&#x4F5C;&#x4F7F;&#x7528;OR&#x76F8;&#x8FDE;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;mouse_event MOUSEEVENTF_RIGHTDOWN o&#114; MOUSEEVENTF_RIGHTUP, 0, 0, 0, 0<br/>&nbsp;&nbsp;&nbsp;&nbsp;End If<br/>End Sub<br/>4.&#x5EF6;&#x65F6;<br/>&#x590D;&#x5236;&#x5185;&#x5BB9;&#x5230;&#x526A;&#x8D34;&#x677F; &#x7A0B;&#x5E8F;&#x4EE3;&#x7801;&#39;Win32 Api<br/>Private Declare Sub Sleep Lib &#34;kernel32&#34; (ByVal dwMilliseconds As Long)<br/>Private Sub Command1_Click()<br/>&nbsp;&nbsp;&nbsp;&nbsp;Dim time1 As Date, time2 As Date<br/>&nbsp;&nbsp;&nbsp;&nbsp;time1 = Now()<br/>&nbsp;&nbsp;&nbsp;&nbsp;Sleep 3000 &#39;&#x5EF6;&#x65F6;3&#x79D2;<br/>&nbsp;&nbsp;&nbsp;&nbsp;time2 = Now()<br/>&nbsp;&nbsp;&nbsp;&nbsp;MsgBox &#34;&#x5EF6;&#x65F6;&#34; &amp; DateDiff(&#34;s&#34;, time1, time2) &amp; &#34;&#x79D2;&#34;<br/>End Sub<br/>5.&#x83B7;&#x53D6;&#x9F20;&#x6807;&#x5750;&#x6807;<br/>&#x590D;&#x5236;&#x5185;&#x5BB9;&#x5230;&#x526A;&#x8D34;&#x677F; &#x7A0B;&#x5E8F;&#x4EE3;&#x7801;&#39;Win32 Api<br/>Private Declare Function GetCursorPos Lib &#34;user32&#34; (lpPoint As POINTAPI) As Long<br/>Private Type POINTAPI<br/>&nbsp;&nbsp;&nbsp;&nbsp;X As Long<br/>&nbsp;&nbsp;&nbsp;&nbsp;Y As Long<br/>End Type<br/>Private Sub Command1_Click()<br/>&nbsp;&nbsp;&nbsp;&nbsp;Dim result As Long<br/>&nbsp;&nbsp;&nbsp;&nbsp;Dim point As POINTAPI<br/>&nbsp;&nbsp;&nbsp;&nbsp;result = GetCursorPos(point)<br/>&nbsp;&nbsp;&nbsp;&nbsp;If result &lt;&gt; 0 Then<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;MsgBox &#34;x=&#34; &amp; point.X &amp; &#34;,y=&#34; &amp; point.Y<br/>&nbsp;&nbsp;&nbsp;&nbsp;End If<br/>End Sub</p><p> + <a href="#CommentCard">&#x67E5;&#x770B;&#x5F53;&#x524D;&#x65E5;&#x5FD7;&#x8BC4;&#x8BBA;</a> (0)</p><p>&nbsp;<br/><br/><a href="wap.asp?do=Login">&#x767B;&#x5F55;</a></p><p><br/>&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;</p><p><a href="wap.asp">&#x6728;&#x5B50;&#x5C4B;</a></p><p><a href="http://www.pjhome.net/wap.asp">PJBlog3&nbsp;v3.2.9.518</a>&nbsp;Inside.</p><p>Processed&nbsp;In&nbsp;0.047&nbsp;ms</p><do type="prev" label="&#x8FD4;&#x56DE;"><prev/></do></card><card id="postCommentCard"><p><b>&#x6807;&#x9898;&#x3A;</b> <a href="#MainCard">&#x56;&#x42;&#x36;&#x2E;&#x30;&#x8C03;&#x7528;&#x77;&#x69;&#x6E;&#x33;&#x32;&#x61;&#x70;&#x69;&#x6A21;&#x62DF;&#x9F20;&#x6807;&#x5355;&#x51FB;&#x7B49;&#x64CD;&#x4F5C;</a></p><p><br/>你没有权限发表评论</p><p><br/>&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;</p><p><a href="wap.asp">&#x6728;&#x5B50;&#x5C4B;</a></p><p><a href="http://www.pjhome.net/wap.asp">PJBlog3&nbsp;v3.2.9.518</a>&nbsp;Inside.</p><p>Processed&nbsp;In&nbsp;0.047&nbsp;ms</p><do type="prev" label="&#x8FD4;&#x56DE;"><prev/></do></card><card id="CommentCard"><p>&#x6682;&#x65E0;&#x8BC4;&#x8BBA;</p><p><a href="#MainCard">&#x8FD4;&#x56DE;</a></p><p><br/>&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;</p><p><a href="wap.asp">&#x6728;&#x5B50;&#x5C4B;</a></p><p><a href="http://www.pjhome.net/wap.asp">PJBlog3&nbsp;v3.2.9.518</a>&nbsp;Inside.</p><p>Processed&nbsp;In&nbsp;0.047&nbsp;ms</p><do type="prev" label="&#x8FD4;&#x56DE;"><prev/></do></card>
</wml>
