Jump to content

Show a MsgBox when closing process


Recommended Posts

  • Moderators

compact21 can you please explain more about what you're trying to accomplish? As mikell explains, by killing the process you are never going to process the OnAutoItExitRegister command. Are you simply looking to be notified if your script stops unexpectedly?

"Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball

How to get your question answered on this forum!

Link to comment
Share on other sites

Hei guys, well i have been working on my backup app and i need to prevent the killing/closing in any way possible of my app(except unpluging the power source of course). so beeing aware that i can't hide my process or stop task manager to kill it, i was trying to bring up a warning message.

i hope i made myself clear...so is there a way to get this done?

Link to comment
Share on other sites

Reinforce education of users attempting to kill the backup process by tasing them hard?

This wonderful site allows debugging and testing regular expressions (many flavors available). An absolute must have in your bookmarks.
Another excellent RegExp tutorial. Don't forget downloading your copy of up-to-date pcretest.exe and pcregrep.exe here
RegExp tutorial: enough to get started
PCRE v8.33 regexp documentation latest available release and currently implemented in AutoIt beta.

SQLitespeed is another feature-rich premier SQLite manager (includes import/export). Well worth a try.
SQLite Expert (freeware Personal Edition or payware Pro version) is a very useful SQLite database manager.
An excellent eBook covering almost every aspect of SQLite3: a must-read for anyone doing serious work.
SQL tutorial (covers "generic" SQL, but most of it applies to SQLite as well)
A work-in-progress SQLite3 tutorial. Don't miss other LxyzTHW pages!
SQLite official website with full documentation (may be newer than the SQLite library that comes standard with AutoIt)

Link to comment
Share on other sites

  • Developers

jchd a warning message is not such a bad thing isn't it?

 

I think when people willingly/consciously kill processes, they can't complain things aren't working any more. ;)

Simple fix could also be to have a scheduler task to start the program each x minutes and have the check in the program to actually run only one time.

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

Link to comment
Share on other sites

I think when people willingly/consciously kill processes, they can't complain things aren't working any more. ;)

Simple fix could also be to have a scheduler task to start the program each x minutes and have the check in the program to actually run only one time.

Jos

That's a good solution Jos, can you help me with the scheduler task, point me on the right direction please?( i'm not the only one using my computer so just in case...that's why i need this)

Link to comment
Share on other sites

  • Developers

That's a good solution Jos, can you help me with the scheduler task, point me on the right direction please?( i'm not the only one using my computer so just in case...that's why i need this)

Let me be Honest with you: I am not really buying your backup story yet and somehow have the feeling you have other intentions for the simply fact that doing this for backup purposes would be something trivial to do for all users.

So, when this is your computer and others have access to this too, then don't give them Admin rights and simple run the script under credentials they can't touch.

Jos

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

Link to comment
Share on other sites

Yeah the truth is that i am trying to create the most destructive autoit version of stuxnet viruse and i'm asking for help on this forum because i have no ideea how to get a pice of code working proprely. You got me man. I'll figure it out by myself. Thanks anyway.

Link to comment
Share on other sites

  • Developers

Yeah the truth is that i am trying to create the most destructive autoit version of stuxnet viruse and i'm asking for help on this forum because i have no ideea how to get a pice of code working proprely. You got me man. I'll figure it out by myself. Thanks anyway.

Glad you are as honest as I am ...  good luck with your endeavours.

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

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

  • Recently Browsing   0 members

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