← Back to team overview

sikuli-driver team mailing list archive

[Question #161673]: Unable to understand region Behaviour

 

New question #161673 on Sikuli:
https://answers.launchpad.net/sikuli/+question/161673

Few Doubts Related to Region::
--------------------------------------------------------
1)
Creating new region..
Suppose i want to create a Region with Some fixed values...
How can i do it??
I tried this way...
Region R;
R.x=100;R.y=200;R.h=500;R.w=600

But its not working..gives Error that R is not initilized & if i Initilize it to null then while assigning coordinates...
It gives Error..cant assin value to null.

2)
r is a region with some value
now i create a copy of Region r
Region select=r;
& make some Alteration in select region.
select.h=5;select.x=select.x-2;select.y=100;

But when i check r ...the changes made in Region select are reflected in Region r.
Which was not expected(for me)..
So how to Solve this??



-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.