cdexw Posted February 1, 2009 Share Posted February 1, 2009 HI to all I want to know that if there are two files running @ very same time @ when 1st file stop by anything 2nd file alive that file again & vice versa by following codes then how can i exit from this script I already use hotkeyset option but it can stop only one file & as soon as it stop the 1st file the 2nd one alive it within few moments if not processexist("Example 1.exe") Then Run("Example 1.exe") Endif if not processexist("Example 2.exe") Then Run("Example 2.exe") Endif plz tell me how can I stop this script from functioning Link to comment Share on other sites More sharing options...
BrettF Posted February 1, 2009 Share Posted February 1, 2009 Welcome to the forums. I think you want a Father/Daughter process style? Well thats obviously very questionable... Please reiterate your intentions... Malicious software is not by any means supported by AutoIt, and you injure the community by doing it. Cheers, Brett Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version! Link to comment Share on other sites More sharing options...
cdexw Posted February 1, 2009 Author Share Posted February 1, 2009 Welcome to the forums.I think you want a Father/Daughter process style? Well thats obviously very questionable... Please reiterate your intentions... Malicious software is not by any means supported by AutoIt, and you injure the community by doing it. Cheers,BrettI am doing this for security purposes I am making an antivirus for which I want to know this thing any help in this regard will be welcome Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted February 1, 2009 Moderators Share Posted February 1, 2009 (edited) I am doing this for security purposes I am making an antivirus for which I want to know this thing any help in this regard will be welcomeI have to throw the bullshit flag on that one! ... what do you need two processes running as AV on your own PC for an application only you know the name of or the checksum of.Had better come up with a better explanation than that. Edited February 1, 2009 by SmOke_N Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
AzKay Posted February 1, 2009 Share Posted February 1, 2009 I dont understand, from his post it sounds like he wants to stop two processes from running eachother, but then, the code in his first post should already do that. # MY LOVE FOR YOU... IS LIKE A TRUCK- # Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted February 1, 2009 Moderators Share Posted February 1, 2009 I dont understand, from his post it sounds like he wants to stop two processes from running eachother, but then, the code in his first post should already do that.Well, I went off the code and the broken english as well.If you're truly trying to stop a process from running, you don't use "Run" to stop a process, you use ProcessClose().Otherwise, I'll stick by my former BS Flag. Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
AzKay Posted February 1, 2009 Share Posted February 1, 2009 Oop, My mistake. I mixed the title with the code. I didnt really look as his code as much. I mustve subconciously replaced the "Runs" with ProcessClose(), and missed the "not"'s. I need to read more. # MY LOVE FOR YOU... IS LIKE A TRUCK- # Link to comment Share on other sites More sharing options...
cdexw Posted February 2, 2009 Author Share Posted February 2, 2009 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 dont 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 thats why some mistakes are there in codeWhile 1 If ProcessExists("Example 1")Then ProcessClose("Example 1.exe") EndIf If ProcessExists"Example 2.exe")Then ProcessClose("Example 2.exe") EndIf WendIf need more explanation plz let me know Link to comment Share on other sites More sharing options...
BrettF Posted February 2, 2009 Share Posted February 2, 2009 Um so how is it antivirus? Well I'm still all for the bullshit flag... Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version! Link to comment Share on other sites More sharing options...
BrettF Posted February 2, 2009 Share Posted February 2, 2009 I'm sorry but what the hell do you have to do with this? First question, if you are the same person, why do you have another account? His intentions are questionable, and IMO he is still pulling BS, as I don't believe it to be a good reason. If you don't want him to access websites that he shouldn't, you should look at getting some proper methods- firewalls and the like. If he is not being a good boy, discipline him... Cheers, Brett Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version! Link to comment Share on other sites More sharing options...
Bert Posted February 2, 2009 Share Posted February 2, 2009 If you want to block him from certain sites, use the HOST file or net nanny. To keep him from changing processes, create a user account that is restricted using MMC. To run MMC, type MMC from the run line. The Vollatran project My blog: http://www.vollysinterestingshit.com/ Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now