Jump to content

Advice on coding - SImultaneous actions.


Recommended Posts

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.
 

Link to comment
Share on other sites

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

Link to comment
Share on other sites

  • Developers

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

Link to comment
Share on other sites

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.

Spoiler

Renamer - Rename files and folders, remove portions of text from the filename etc.

GPO Tool - Export/Import Group policy settings.

MirrorDir - Synchronize/Backup/Mirror Folders

BeatsPlayer - Music player.

Params Tool - Right click an exe to see it's parameters or execute them.

String Trigger - Triggers pasting text or applications or internet links on specific strings.

Inconspicuous - Hide files in plain sight, not fully encrypted.

Regedit Control - Registry browsing history, quickly jump into any saved key.

Time4Shutdown - Write the time for shutdown in minutes.

Power Profiles Tool - Set a profile as active, delete, duplicate, export and import.

Finished Task Shutdown - Shuts down pc when specified window/Wndl/process closes.

NetworkSpeedShutdown - Shuts down pc if download speed goes under "X" Kb/s.

IUIAutomation - Topic with framework and examples

Au3Record.exe

Link to comment
Share on other sites

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
 Share

×
×
  • Create New...