Jump to content

How to exit from this loop

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
2 replies to this topic

#1
Hassan Syed

Hassan Syed

    Newbie

  • Members
  • Pip
  • 3 posts
I have a question for which I search a lot but coudent't find any answer for that question. Actually I am making a small program which is like antivirus but not exactly the same actually I am doing this to restrict my younger brother to access those website which are not good 4 him. Also I stop some function in that program of my windows which I don’t want that he access to disturb my setting. But he kills the processes of my program & gets access on all the functions. I run a script to run two processes at the same time so that if he kills one process then 2nd process get active & save the 1st one & vice versa but after doing that I by my self was unable to close that program. I already read about “Hotkeyset” but it only close one process & when it do that the other process which is alive again alive the closed process. I write the above mention code in hurry that’s why some mistakes are there in code. Just give me idea if U have anything related to this in ur mind. even a little help will be much appreciated

While 1


If ProcessExists("Example 1")Then

    ProcessClose("Example 1.exe")

EndIf


If ProcessExists"Example 2.exe")Then

    ProcessClose("Example 2.exe")

EndIf


Sleep(200)


Wend


Remember in this above mention process 1st process is protecting 2nd process & vice versa so when I kill one of them but it again alive its other process automatically. Give me solution in which it automatically kill both of them @ the same time

#2
imp0steur

imp0steur

    Newbie

  • Members
  • Pip
  • 8 posts
this will not help .. use any content filtering/parental control software

#3
Aereshaa

Aereshaa

    Programming God

  • Members
  • PipPipPipPipPipPipPip
  • 790 posts
that trick for malware, i.e. two processes keeping each other alive, can be dealt with by freezing one, then killing the other, and then killing the first.
Watches: Nanoha, Haruhi, AzuDai. Listens to: E-Type, Dj Melodie, Nightcore.
"When people are wrong they need to be corrected. And then when they can't accept it, an argument ensues." - MeTh0Dz