Page 1 of 1

Return control to Hollywood!

Posted: Thu May 17, 2018 6:27 pm
by divsalv
Sorry, but I would like to understand one thing: is it possible for a plugin to return control to hollywood for a moment, and then return to the plugin?
I was writing a plugin using 6502lib, but the execution cycle goes on forever, so I need to return control to hollywood.
It's possible?
Or maybe run hollywood commands from c?

Re: Return control to Hollywood!

Posted: Fri May 18, 2018 4:38 pm
by airsoftsoftwair
Having a plugin command take over Hollywood and never returning control is a very bad idea. This will block GUI and event handling. Instead, you should force the script to continously call your command in a loop so that Hollywood will still be able to do its housekeeping, i.e. something like:

Code: Select all

Repeat
    YourPluginCommand()
Forever