Page 1 of 1

detect "interactive" session

PostPosted: Tue Nov 08, 2022 12:39 pm
by pricerc
(this is looking at a previously discussed problem from a different angle)

I have a plugin where, when run interactively, I'd like the user to be informed at startup time if there is something wrong with the plugin's configuration.

However, if I'm running in the scheduler or REST API, I don't want to do anything (except maybe set a flag that my plugin can use later), because it is not a fatal problem.

Is there a 'clever' way to tell if I'm running in interactive or 'batch' mode ?

Re: detect "interactive" session  Topic is solved

PostPosted: Tue Nov 08, 2022 1:39 pm
by Mike.Sheen
The MIDParentForm property of the Manager object will be null (nothing in vb) when not run from the Jiwa.exe - you can check that (that's what we do).

Re: detect "interactive" session

PostPosted: Tue Nov 08, 2022 2:23 pm
by pricerc
Mike.Sheen wrote:The MIDParentForm property of the Manager object will be null (nothing in vb) when not run from the Jiwa.exe - you can check that (that's what we do).


Thanks Mike.