|
-
Nov 28th, 2004, 07:43 PM
#1
Thread Starter
Fanatic Member
Terminating Process
VB Code:
If banned = True Then
MsgBox "You have been Banned!", vbInformation + vbOKOnly, "Error"
TerminateEXE "ProgramName.exe"
End If
Ok what I'm trying to do is if someone is banned, I want the messagebox to appear and terminate the process (.exe). It works fine for me, but not for others... and I can't figure out why. What happens to others when they get banned is the messagebox appears and says you have been banned but the program still loads after that. I don't want it to. I want it to be closed/terminated if you're banned.
I can't figure out the problem because it works fine for me but doesn't for others.
What am I missing or doing wrong?
-
Nov 28th, 2004, 08:24 PM
#2
TerminateEXE App.Path & "\ProgramName.exe"
-
Nov 28th, 2004, 08:42 PM
#3
Thread Starter
Fanatic Member
That makes the program still load for me even when it says I'm banned.
-
Nov 28th, 2004, 09:04 PM
#4
what did you set to become banned? move the file, or whatever. if you put a key in the reg, then it will have to be changed so that the path is included.
-
Nov 28th, 2004, 09:27 PM
#5
Thread Starter
Fanatic Member
I don't understand what you mean.
Sorry
-
Nov 28th, 2004, 09:58 PM
#6
what condition gets checked that sets BANNED to be true?
-
Nov 28th, 2004, 10:08 PM
#7
Thread Starter
Fanatic Member
It reads a URL folder and if your harddrive serial .TXT is in there, it displays the messagebox and is SUPPOSED to close the process. it does for me but not for others
-
Nov 28th, 2004, 10:21 PM
#8
maybe find the window and delete it?
-
Nov 28th, 2004, 11:38 PM
#9
Thread Starter
Fanatic Member
-
Nov 29th, 2004, 12:40 AM
#10
why can't you just END the program instead of killing it? That way, it wouldn't load.
-
Nov 29th, 2004, 12:49 AM
#11
Thread Starter
Fanatic Member
because its not my program. its an external program
-
Nov 29th, 2004, 12:56 AM
#12
FindWindow
will find a window by its caption
here's an API to kill the process.
here
Last edited by dglienna; Nov 29th, 2004 at 01:00 AM.
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
|