Results 1 to 12 of 12

Thread: Terminating Process

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    May 2004
    Posts
    566

    Arrow Terminating Process

    VB Code:
    1. If banned = True Then
    2. MsgBox "You have been Banned!", vbInformation + vbOKOnly, "Error"
    3. TerminateEXE "ProgramName.exe"
    4. 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?

  2. #2
    Elite Hacker Jacob Roman's Avatar
    Join Date
    Aug 2004
    Location
    Miami Beach, FL
    Posts
    5,349
    TerminateEXE App.Path & "\ProgramName.exe"

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    May 2004
    Posts
    566
    That makes the program still load for me even when it says I'm banned.

  4. #4
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901
    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.

  5. #5

    Thread Starter
    Fanatic Member
    Join Date
    May 2004
    Posts
    566
    I don't understand what you mean.

    Sorry

  6. #6
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901
    what condition gets checked that sets BANNED to be true?

  7. #7

    Thread Starter
    Fanatic Member
    Join Date
    May 2004
    Posts
    566
    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

  8. #8
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901
    maybe find the window and delete it?

  9. #9

    Thread Starter
    Fanatic Member
    Join Date
    May 2004
    Posts
    566
    but how?

  10. #10
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901
    why can't you just END the program instead of killing it? That way, it wouldn't load.

  11. #11

    Thread Starter
    Fanatic Member
    Join Date
    May 2004
    Posts
    566
    because its not my program. its an external program

  12. #12
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901
    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
  •  



Click Here to Expand Forum to Full Width