Please download the source code attched with the article and compile to create an exe.
API’s used in the demo
Declare Function GetDesktopWindow Lib "user32" () As Long Declare Function LockWindowUpdate Lib "user32" (ByVal hwndLock As Long) As Long Declare Sub Sleep Lib "kernel32" (ByVal dwMilliseconds As Long) Declare Function GetCursorPos Lib "user32" (lpPoint As POINTAPI) As Long Declare Function SetWindowPos Lib "user32" (ByVal hwnd As Long, _ ByVal hWndInsertAfter As Long, ByVal x As Long, _ ByVal y As Long, ByVal cx As Long, ByVal cy As Long, _ ByVal wFlags As Long) As Long Public Function SetTopMostWindow(hwnd As Long, Topmost As Boolean) As Long
Controls Used:
– Form, Module, Label, Command Button Array and Timer
Output: