protoid Posted April 28, 2008 Posted April 28, 2008 (edited) Is there some way to avoid using father/son programs while making an executable you don't want closed? (a program [father] with another program [son] that runs with the father to make sure the father prgm is running, and runs the father when it isn't running) example son: #notrayicon while 1 while processexists("father.exe") sleep(100) wend run("father.exe") sleep(5000); to prevent multiple openings wend Edited April 28, 2008 by protoid
PsaltyDS Posted April 28, 2008 Posted April 28, 2008 Is there some way to avoid using father/son programs while making an executable you don't want closed?Could you explain that a little more? You want an AutoIt script to spawn a process that will continue after the script ends? Or...? Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law
protoid Posted April 28, 2008 Author Posted April 28, 2008 Could you explain that a little more? You want an AutoIt script to spawn a process that will continue after the script ends? Or...? that better?
Xand3r Posted April 28, 2008 Posted April 28, 2008 i gues he wants a program that can't be killed by processkill or by the task manager Only two things are infinite, the universe and human stupidity, and i'm not sure about the former -Alber EinsteinPractice makes perfect! but nobody's perfect so why practice at all?http://forum.ambrozie.ro
protoid Posted April 28, 2008 Author Posted April 28, 2008 (edited) i gues he wants a program that can't be killed by processkill or by the task manager it can be closed- but it will just reopen -too hard to make an uncloseable program(btw: you can be mean and name the son svchost.exe) Edited April 28, 2008 by protoid
herewasplato Posted April 28, 2008 Posted April 28, 2008 Another topic that should not be discussed in an open forum... Just my 2 cents (which ain't wort much in USD these days) [size="1"][font="Arial"].[u].[/u][/font][/size]
ivan Posted April 28, 2008 Posted April 28, 2008 create 2 scripts: Script 1 just looks for the existance of process 2 in an infinite loop. If it does not exist, it runs it. Script 2 does your naughty stuff by the sounds of it. Think out of the boxGrabber: Yet another WinInfo tool_CSVLib (still alpha)Dynamic html in au3
evilertoaster Posted April 28, 2008 Posted April 28, 2008 Your previous topic was on disabling user intervention and now one on disabling users to close your program. I'm highly skeptical at this point of any good intent coming from a script doing either or (particularly) both of these. To answer your question (I think). There is no AutoIt command (you're thinkig something like - Opt("ForceScriptToStayRunningAllTheTime",1) , I'm guessing) you can use so that the OS will prevent the proccess from closing when asked.
protoid Posted April 28, 2008 Author Posted April 28, 2008 Your previous topic was on disabling user intervention and now one on disabling users to close your program. I'm highly skeptical at this point of any good intent coming from a script doing either or (particularly) both of these.the first program disabled user input and displayed "eyes to the front please" on all of the computers in a computer lab for the duration of a presentation- this program kills all cmd windows opened, and deletes all of the user's batch files on startup(i'm helping the sysadmin @ my school)
Bert Posted April 29, 2008 Posted April 29, 2008 You could simply have a script that locks the mouse, then hides all the windows. If they do a Ctrl-alt-del, then have the process manager automatically close, then relock the mouse and keyboard. pretty strait forward. The Vollatran project  My blog: http://www.vollysinterestingshit.com/
qazwsx Posted April 29, 2008 Posted April 29, 2008 couldnt the school admin just not give the students permissions to end the task?
protoid Posted April 29, 2008 Author Posted April 29, 2008 the task manager is disabled, and my program disables student-run batch files + command lines the son is just a backup in case they find another way to kill programs, which they probably will...
protoid Posted April 29, 2008 Author Posted April 29, 2008 You could simply have a script that locks the mouse, then hides all the windows. If they do a Ctrl-alt-del, then have the process manager automatically close, then relock the mouse and keyboard. pretty strait forward.the task manager is blocked- they use taskkill
qazwsx Posted April 29, 2008 Posted April 29, 2008 (edited) doesnt taskkill have to be run as admin? Edited April 29, 2008 by qazwsx
protoid Posted April 29, 2008 Author Posted April 29, 2008 taskkill /im whatever.exe in command prompt, kills whatever you want it to, even if you aren't an admin... that's why batch files and the command prompt are blocked
evilertoaster Posted April 29, 2008 Posted April 29, 2008 If the proccess is ran as an administrator they should not have access to close it (as a normal user).You should be able to do somthing with SetSecurityInformation() (http://msdn2.microsoft.com/en-us/library/aa379588(VS.85).aspx) but this is more or less not an autoit related question as you phrase it.There are some pointers here- http://it.gps678.com/29/6b0ba6267e981df8.html which has some followup links to MSDN pages that have demos ect.
C2C Posted April 29, 2008 Posted April 29, 2008 I still dont like the sound of this ----------------------------------90% of teens today would die if Myspace,Bebo + FaceBook had a system failure and was completely destroyed. If you are one of the 10% that would be laughing, copy and paste this to your signature.----------------------------------Code to win, 'till you die, 'till the compiler dies from your linesCode to win, take it all, just keep coding till you fallDay by day, codin' all the way, I'm not cavin' inLet another App begin, code to win
flip209 Posted April 29, 2008 Posted April 29, 2008 I agree maybe it is realated to this theard:http://www.autoitscript.com/forum/index.ph...mp;#entry501624 " I haven't failed. I've just found 10,000 ways that won't work." Thomas Edison "You cannot help men permanently by doing for them what they could and should do for themselves." Abraham Lincoln
C2C Posted April 29, 2008 Posted April 29, 2008 (edited) Ok so that program is for a game right ok so uhm yeah thats for a game mkay and this one cant be shutdown he managed to disable the taskmanager ok whatelse oh yeah take this BANana and eat it :D EDIT: i was referring to protoid ofcourse thanks for the link flip209 Edited April 29, 2008 by C2C ----------------------------------90% of teens today would die if Myspace,Bebo + FaceBook had a system failure and was completely destroyed. If you are one of the 10% that would be laughing, copy and paste this to your signature.----------------------------------Code to win, 'till you die, 'till the compiler dies from your linesCode to win, take it all, just keep coding till you fallDay by day, codin' all the way, I'm not cavin' inLet another App begin, code to win
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