MS-DOS

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Is there a method for a form to realize if the computer is running another
application? Specifically a DOS application. I would like to have a msgbox
pop open to alert the user of Access that there is currently a DOS
application open.

Thank you.
 
Is there a method for a form to realize if the computer is running another
application? Specifically a DOS application. I would like to have a msgbox
pop open to alert the user of Access that there is currently a DOS
application open.

Thank you.

if you know the exact WindowsCaption you can use:

Declare Function apiFindWindow Lib "user32" Alias "FindWindowA" _
(ByVal lpClassName As String, ByVal lpWindowName As String) As Long

function WindowIsActive() as boolean

if apiFindWindow(vbNullString, "MYExactWindowsTitel") >0 then
WindowIsActive=True
endif
end function
 
Back
Top