Sign in to follow this  
Followers 0
protoid

Is there any way to avoid using father/son programs?

20 posts in this topic

#1 ·  Posted (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 by protoid

Share this post


Link to post
Share on other sites



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...?

:D


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

Share this post


Link to post
Share on other sites

Could you explain that a little more? You want an AutoIt script to spawn a process that will continue after the script ends? Or...?

:D

that better?

Share this post


Link to post
Share on other sites

i gues he wants a program that can't be killed by processkill or by the task manager :D


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

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

i gues he wants a program that can't be killed by processkill or by the task manager :D

it can be closed- but it will just reopen :D

-too hard to make an uncloseable program

(btw: you can be mean and name the son svchost.exe)

Edited by protoid

Share this post


Link to post
Share on other sites

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]

Share this post


Link to post
Share on other sites

any suggestions on what to use?

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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)

Share this post


Link to post
Share on other sites

couldnt the school admin just not give the students permissions to end the task?

Share this post


Link to post
Share on other sites

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...

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

#15 ·  Posted (edited)

doesnt taskkill have to be run as admin?

Edited by qazwsx

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

#20 ·  Posted (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 :D

EDIT: i was referring to protoid ofcourse

thanks for the link flip209

Edited 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

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0