Jump to content

Recommended Posts

Posted

Hello. I created a little script, I wanted to create a Msgbox that popups forever, using the While system.

In the meantime, it has to control if the task manager exists and close it.

While 1
   Msgbox(0,"test","test")
   if processexists("taskmgr.exe") then
      processclose("taskmgr.exe")
   endif
WEnd

The Msgbox popups, but if I try to open the Task Manager the script doesn't close it.

Sorry for bad english and thanks.

Posted (edited)

I'd like to know why it doesn't work. Today I just wanted to try it, thinking it would be easy for me, but I understood that it isn't. (for me :x)

I posted it here to understand my errors.

If you think I want to do it for lamer purposes, then you can see I'm not good with AutoIt and it's not dangerous at all.

But if you don't want to help me, then never mind.

Sorry to disturb you.

The script is paused while the MsgBox is open. Close the MsgBox and the Task Manager will be closed immediately.

Is there a specific command to close the MsgBox?

Edited by Cookiez
  • Developers
Posted (edited)

I'd like to know why it doesn't work. Today I just wanted to try it, thinking it would be easy for me, but I understood that it isn't. (for me :x)

..And I still like to know why you need this!!!!!!!!!

So what is the legitimate reason to want to constantly kill any TaskMgr window?

would appreciate others to stay out until the OP answers my question.

Edited by Jos

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Posted

well some people (including me) have a certain problem that a lot of processes open double (like taskmgr.exe and _taskmgr.exe) and the working one is _taskmgr.exe but taskmgr.exe is just a huge waste of resources, it keeps consuming ur CPU and RAM. it wont close unless its closed from process. so you understand why this is very useful. this problem is caused by a certain MMORPG (KalOnline). (unless your are vista/win7) and as far as i know i'm pretty sure more games/programs have the same issue.

There is always a good reason for the scripts you should not condemn it because you think it is a virus or whatever.

  • Developers
Posted (edited)

There is always a good reason for the scripts you should not condemn it because you think it is a virus or whatever.

Where did I condemn anybody? I only EXPLICITLY asked to stay out until I had an answer which you clearly didn't care about. Edited by Jos

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

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
×
×
  • Create New...