Jump to content

Recommended Posts

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
Posted

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
Posted

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

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

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
Posted

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]

Posted

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.

Posted

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)

Posted

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

Posted

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
Posted

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

Posted

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.

Posted

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

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

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...