SFQApplication.CalledFromProxy

True if Stonefield Query is being run from the SQProxy object, False if not. This allows your scripts to use different behavior, such as not displaying dialogs, in that case.

public bool CalledFromProxy { get; }

See also:

Class SFQApplication