PDA

View Full Version : On/Off States to kill process



eparizzi
March 15th, 2006, 10:22 PM
Hey guys!

Well, what I want to do is to set up an On/Off button with this settings:

When it is ON: kill msnmsgr.exe
When it is off: do not kill anything xD

I know how to kill it, but when I press a button.

"TASKKILL.exe /IM msnmsgr.exe"

This is for when some friends come to my home, and there is always one fuc***** adict to msn. And I hate him =) So I want that he cannot open msn or open it but then "it magically closes". What I mean is I dont want him to know that I AM closing his msn, I want him to think that there's some problem on my PC or something like that...
It would be perfect if it can also display an standard memory error (those that says something like 0x00000823 error bla bla bla) or something.

Thanks =)

Promixis
March 16th, 2006, 06:47 AM
lua win function plugin

eparizzi
March 16th, 2006, 06:51 AM
lua windows functions plugin...

ok, you say making a script that checks if WindowExists and if exists, close it?
but that wouldn't fall in an infinite cycle if MSN is not open? I mean, do I will be able to use other events/buttons as usually???

Thanks

Promixis
March 16th, 2006, 06:53 AM
use taskcreate event to detect msn launch and then kill the window either using the windowclose or you may have to use the process functions to find the process and then terminate it. esp if msn is in the tray

eparizzi
March 16th, 2006, 07:21 AM
great!

thanks!

eparizzi
March 16th, 2006, 09:00 PM
And what about triggering an error message??? That's imposible right?

Thanks =)

Promixis
March 16th, 2006, 09:09 PM
And what about triggering an error message??? That's imposible right?

Thanks =)

use one of the OSDs?

eparizzi
March 16th, 2006, 09:16 PM
But the OSD didnt display floating letters in the screen?
What I want is a window error message, like when a program do not respond or memory error 0x08721134 blah blah blah.

If it is impossible or too hard, nevermind. It is just an extra.

Thanks anyway =)