Görev yöneticisini Timer ile Kapatma VB.NET
Kodu direk Code bölümüne yapıştırın.
Public Class Form1 Declare Function FindWindow Lib "user32" Alias "FindWindowA" ( _ ByVal lpClassName As String, _ ByVal lpWindowName As String) As Int32 Declare Function sendMessage Lib "USER32" Alias "SendMessageA" ( _ ByVal hWnd As Int32, ByVal Msg As Int32, _ ByVal wParam As Int32, ByVal lParam As Int32) As Int32 Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick Dim hwnd As Int32 hwnd = FindWindow("#32770", vbNullString) SendMessage(hwnd, &H10, 0, 0) End Sub End Class
0 yorum: