ckim
11 years agoOccasional Contributor
Script Produces Varying Results
Hey All,
I have the following few lines of code in one of my test scripts:
var instance = Sys.Process("java").SwingObject("BaseMonitorFrame", "Clarity #1", 0).SwingObject("Instance", "", 0);
instance.Drag(783, 327, -224, 244);
Delay(500);
instance.Click(930, 559);
Basically, these lines in my script draw two lines to form an angle on an image. However every time I run my script the first line that gets drawn is almost always slightly different in length from a previous run. Does anyone know why this might be happening?
Best,
Chris
I have the following few lines of code in one of my test scripts:
var instance = Sys.Process("java").SwingObject("BaseMonitorFrame", "Clarity #1", 0).SwingObject("Instance", "", 0);
instance.Drag(783, 327, -224, 244);
Delay(500);
instance.Click(930, 559);
Basically, these lines in my script draw two lines to form an angle on an image. However every time I run my script the first line that gets drawn is almost always slightly different in length from a previous run. Does anyone know why this might be happening?
Best,
Chris
- Hi Chris,
It looks like you are trying to draw something over your tested application. In this case, it makes sense to use Low-Level Procedure - it records detailed low-level mouse and keyboard actions. Refer to the "Testing Applications in Low-Level Mode - Overview" article for details.