17750.html
来自「VB技巧问答10000例,是一个教程」· HTML 代码 · 共 23 行
HTML
23 行
<html> <head> <title>Re: 如何强迫停止一个正在执行的程式??</title> </head> <body bgcolor="#FFFFFF" vlink="#808080"> <center> <h1>Re: 如何强迫停止一个正在执行的程式??</h1> </center><hr size=7 width=75%><hr size=7 width=75%><p>Posted by dino on August 24, 1999 at 00:01:06:<p>In Reply to: <a href="17748.html">如何强迫停止一个正在执行的程式??</a> posted by 小甜甜.... on August 23, 1999 at 22:48:35:<p>Private Declare Function OSWinHelp% Lib "user32" Alias "WinHelpA" (ByVal hwnd&, ByVal HelpFile$, ByVal wCommand%, dwData As Any)<br>Private Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName As String) As Long<br>Private Declare Function PostMessage Lib "user32" Alias "PostMessageA" (ByVal hwnd As Long, ByVal wMsg As Long, ByVal wParam As Long, lParam As Any) As Long<p>以下去强迫关毕小算盘<p>Dim winHwnd As Long<br> Dim RetVal As Long<br> winHwnd = FindWindow(vbNullString, "小算盘")<br> Debug.Print winHwnd<br> If winHwnd <> 0 Then<br> RetVal = PostMessage(winHwnd, &H10, 0&, 0&)<br> 'If RetVal = 0 Then<br> ' MsgBox "Error posting message."<br> 'End If<br> Else<br> 'MsgBox "The Calculator is not open."<br> End If<p><br><br><hr size=7 width=75%><p><a name="followups">Follow Ups:</a><br><ul><!--insert: 17750--></ul><!--end: 17750--><br><hr size=7 width=75%><p></body></html>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?