Forum Discussion
Dmitry_Nikolaev
15 years agoStaff
Hi Dmitriy,
The mouse pointer is defined by the window under the pointer. However, if the corresponding application does not respond, TestComplete cannot retrieve the cursor state. In this case, you can use the script used by Brandon to make TestComplete pause the script execution until the tested application responds again:
To make the script work, please follow the instructions below:
In project properties, go to 'CLR Bridge' and add System.dll (either version 1.0 or 2.0) by using either the 'Browse Files' button or the 'Browse GAC' button (see the Calling Functions From .NET Assemblies help topic for more information). This will allow you to use .NET methods and properties.
I hope this helps.
The mouse pointer is defined by the window under the pointer. However, if the corresponding application does not respond, TestComplete cannot retrieve the cursor state. In this case, you can use the script used by Brandon to make TestComplete pause the script execution until the tested application responds again:
var p1 = Sys.Process("MyProcess");
var dotNetProcess = dotNET.System_Diagnostics.Process.GetProcessById_2(p1.ProcessID);
while(!dotNetProcess.Responding)
{
Delay(500);
}
... // Perform further actions
To make the script work, please follow the instructions below:
In project properties, go to 'CLR Bridge' and add System.dll (either version 1.0 or 2.0) by using either the 'Browse Files' button or the 'Browse GAC' button (see the Calling Functions From .NET Assemblies help topic for more information). This will allow you to use .NET methods and properties.
I hope this helps.
Related Content
- 2 years ago
Recent Discussions
- 13 hours ago