Install the Eventscript Extension via Webinterface in Settings. Then restart JDownloader.
Then easiest way to write script is by using a JDownloader with GUI, write your script there and finally copy over the value from settings-advanced settings-EventScripter.scripts to your other JDownloader
In case you need help with eventscripter, I suggest to ask mgpai for help
__________________
JD-Dev & Server-Admin
|