Unable to understand region Behaviour
I am Using Sikuli in JAVA
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;
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, Say r(300,1200)h=100 & w=1500
now i create a copy of Region r
Region select=r;
& make some Alteration in select region.
select.
But when i check the value of Region r ...
the changes made in Region select are reflected in Region r.
ie value of both Region r & select are same.
Which was not expected(for me)..
So how to Solve this??
3) Need to understand behavior of Region.Below() function
Just explain.. What is @Screen(0) E:Y, T:3.0 ?? (Look below Sample code & Output)
CODE:
System.
Region select=r.below();
System.
O/P:
------
Value OF region r Match[999,462 53x49] score=0.96, target=center
Value OF region Select Region[999,511 53x257]@Screen(0) E:Y, T:3.0
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- SikuliX Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- RaiMan
- Solved:
- Last query:
- Last reply: