need to be able to tell if the login program is running. and then is it in an if then else statement
need to be able to tell if the login program is running. and then is it in an if then else statement
I am not sure how you can tell which part of the code a pp is executing, ut you can find if a pp is running if you know the window caption. Use the FindWindow api call to determine if that particular application is currently running or not.
uh whats the full call?
my api viewer is nowhere to be found
VB Code:
'api call Private Declare Function FindWindow Lib "user32" _ Alias "FindWindowA" (ByVal lpClassName As String, _ ByVal lpWindowCaption As String) As Long 'code Dim lngHwnd As Long lngHwnd = FindWindow(vbNullString, "<your window caption>") If lngHwnd > 0 Then MsgBox "Window found"
thx
:D :D :D
U can hide a window with this.. Hope this also helps. :)