Jump to content

Recommended Posts

Posted

Hi guys !

I made a script which monitor some chosen folders (create/delete/modify), and log this in a file. FolderMonitor, It works well.
I made a similar script, which monitor some specific registry entry, and log activities. It works well. RegistryMonitor.
    > I simply use the script from the help file on https://www.autoitscript.com/autoit3/docs/libfunctions/_WinAPI_RegNotifyChangeKeyValue.htm

In fact i am creating an antivirus like, will alert me on possibly dangerous activities on my computers. ( yeah i broke my leg last week, i got time .. :)
 
 Question :
 > How to make a script which run simultaneous action without being blocked in a while loop ? Because i only make script in which detection is in a while loop.
And these actions doesn't need any gui.
 
  If i compile my FolderMonitor, and my RegistryMonitor, i can start my exe files from another Main script with no problem, but it make as exe file as function for my script. It does'nt seems to be a beautiful way.
 
 Is there another way of coding that ? let's imagine a script with different modules (monitoring the addition of extension in web browsers...)

 Thanks for advice !
 Nicolas.
 

Posted

In fact, they are small function, but it still be successive scripts running and not simultaneous (like it is if i do a main script which would call 2 exe file.)

May be the solution is only to compile and that's all .. that is the question..

:)

Thanks for your suggestion :)

Nicolas

  • Developers
Posted

There are no simultaneous actions in a single threaded world, only single actions which can be interrupted and broken out of to perform another action after which it returns and continues.

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

Nothing stopping you from running those other exe's and allow them to communicate with the main script. I did that in the past through ini files, the main script reads periodically the ini, in a specific section for changes, the "child" script writes into there, the main reads and deletes and so on. In this case is only a one way communication, but still, may be enough to you, and that way you can have the main script running normally and the others doing the scans or whatever.

  Reveal hidden contents

IUIAutomation - Topic with framework and examples

Au3Record.exe

Posted

hello,

Actually, the main script,  run the exe childs, with a json parameter to pass all the argument needed.

In fact i don't actually need comunication from child to his parent. I just log event in file.

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