|
-
Nov 25th, 2001, 08:32 PM
#1
Thread Starter
Member
-
Nov 26th, 2001, 11:05 PM
#2
Addicted Member
spyplayer,
are you trying to put password protection on the program??
try using API -- > Findwindow("class", vbNullString) but you'll
need a Handle Spy
X = Findwindow("class", vbNullString)
if X = 0 Then Call Sendmessage(X, WM_Close, 0, 0)
yeah, and you would have to put it in a timer
-
Nov 27th, 2001, 12:08 AM
#3
Addicted Member
errr,
meant to put
if X > 0 Then Call Sendmessage(X, WM_Close, 0, 0)
-
Nov 27th, 2001, 07:33 AM
#4
You can use FindWindow to check the title bar as well. Call X = FindWindow(vbNullString, "<titlebar caption>").
Also, check that X <> 0, because since a Long is signed (both positive and negative values), the Window handle MIGHT wrap around, and become negative.
Z.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|