2013-10-14

How can I trigger a Citrix event handler if an incorrect window is returned by the Citrix Server? The introduction of Citrix support in Silk Performer also saw the introduction of a Citrix Event Handler which can be used to specifically catch a Citrix interrupt during script execution. You can add a Citrix interrupt to the BDF script by using the function "CitrixAddInterrupt" which on certain window events (creations, activations, destructions, and caption changes) will check the interrupt specifications; when an interrupt specification matches an occurred event, then an interrupt will be thrown. To catch an interrupt the function "CitrixGetActInterrupt" needs to be executed in the event handler. Attached is a sample BDF script, refer to test.zip, which contains an event handler which will throw an error and exit the process if an incorrect Window (a window other than "ICA Seamless Host Agent") is created during replay of the Citrix BDF script. (Please visit the site to view this file)

Show more