Forum Discussion

ckim's avatar
ckim
Occasional Contributor
11 years ago

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

  • ckim's avatar
    ckim
    Occasional Contributor
    Thanks Tanya! It seems to be working more consistently