Cool Roxas, glad my little ninja could help.
Dazzag,
Yeah, I had planned to get more done on it, but been a bit swamped, damn boss is on holiday for 2 weeks.
What I was thinking is I could add parameters after the process name in the text file, like say I wanted to ban a process after a certain time, maybe:
explorer.exe (time:1600)
or
explorer.exe (delay:60)
Then have the ninja add in a counter, a process could then decrement it's counter before being banned, I'd just work out the delay when specifying the time. This might be handy for me, banning internet explorer after office hours for example, to stop the operators at work looking at porn
.
One other factor could be an active process trigger, like...
avg.exe (active:bf2142.exe)
Then it could check to see if bf2142 is running, and set it to ban AVG or whatever, say a firewall app that might interfere with online games. This could work in reverse too, like non active so if one program relies on another, it could be shut down.
Anyhoo, I will find the time to look into this stuff, and also add in that mini task manager part as well. I would prefer to move away from manually editing the ini files, hopefully that'll be straightforward once the ninja has a proper window.
I used a lot of the code in a update system for an access database, like a few times a day this database takes data from Foxpro files and is used to generate reports. This actually involves an access 97 database that gathers the raw data, and an access 2000 database that processes it. I made it little program to run the databases in turn and activate triggers to kick users out of the database before replacing it with the updated version. It's a pretty cool system, actually have it wait on the user closing the database down before it starts updating, the user get's 5 minutes before it just kicks out the msaccess.exe process and starts it's update. It used to be a case of kicking out users for 15 minutes to update, with this ninja relative, the user is only kicked out while the database is replaced, 30 seconds or so
. Wow I can prattle on huh!.
We're going down... in a spiral to the ground...