Is it possible to pass a variable to the Region command?
Hi,
I am trying to dynamically create regions on the screen at different locations and want to pass the Region() command a variable containing the co-ordinates of the new region.
base_loc = str("("
reg2 = Region(base_loc)
However when I do that it returns an error:
[error] script [ build_index ] stopped with error in line 105
[error] TypeError ( org.python.
[error] --- Traceback --- error source first
line: module ( function ) statement
105: main ( <module> ) reg2 = Region(base_loc)
[error] --- Traceback --- end --------------
If I enter the exact same coordinates manually it works. I've tried passing a string variable and an integer variable neither worked. My question is can this be done and if it can How?
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- SikuliX Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Mark McGuinn
- Solved:
- Last query:
- Last reply: