Applies To:

QTP, UFT, HP, SAP, Scripting



When executing a QTP or UFT script, the following message appears: "a script is trying to attach to the gui"



SAP GUI -> layout -> Options... -> Scripting


SAP GUI -> Customize Local Layout -> Options... -> Accessibility & Scripting -> Scripting

Either way, you need to disable to following:

Notify when a script attaches to SAP GUI
Notify when a script opens a connection