by VIKAS PILKHUWA 0122-2322475 (1 Submission)
Category: Windows API Call/Explanation
Compatability: VB 6.0
Difficulty: Unknown Difficulty
Originally Published: Thu 19th May 2005
Date Added: Mon 8th February 2021
Rating: (1 Votes)
To Hide Or Show Notepad In Specific Time Interval
API Declarations
Private Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName As String) As Long
Static i As Integer
p = FindWindow("Notepad", vbNullString)
If i = 0 Then
Call ShowWindow(p, 1)
i = i + 1
ElseIf i = 0 Then
Call ShowWindow(p, 0)
i = 0
End If
End Sub