@@ -6,6 +6,7 @@ Documentation Keyword definitions for specialised functionality
6
6
... using the PlatformVideoInput.Init keyword. The initialization is
7
7
... platform-specific.
8
8
9
+ Library Collections
9
10
Library Hid.py AS PlatformHid
10
11
Library VideoInput.py AS PlatformVideoInput
11
12
Variables video_input_vars.py
@@ -148,12 +149,13 @@ Move Pointer To ${destination} In ${domain}
148
149
... Return:
149
150
... Absolute position of the pointer after the move, as a tuple (x, y)
150
151
... of integers.
151
- IF ${{ isinstance(domain, dict) } }
152
- ${sub_region } = Set Variable ${domain }
153
- ELSE IF ${{ isinstance(domain, str) } }
152
+ IF ${{ isinstance($ domain, dict) } }
153
+ ${target_region } = Set Variable ${domain }
154
+ ELSE IF ${{ isinstance($ domain, str) } }
154
155
IF ${{ os.path.exists($domain) } }
155
156
${sub_regions } = PlatformVideoInput.Match ${domain }
156
- ${sub_region } = Set Variable ${sub_regions } [0 ]
157
+ ${target_region } = Set Variable ${sub_regions } [0 ]
158
+ Remove From Dictionary ${target_region } path
157
159
ELSE
158
160
Fail Template ${domain } doesn't exist!
159
161
END
@@ -164,12 +166,12 @@ Move Pointer To ${destination} In ${domain}
164
166
IF ${{ os.path.exists($destination) } }
165
167
${regions } = PlatformVideoInput.Match
166
168
... template=${destination }
167
- ... region=${sub_region }
169
+ ... region=${target_region }
168
170
${position } = Get Center Of ${regions } [0 ]
169
171
ELSE
170
172
${position } = PlatformVideoInput.Get Text Position
171
173
... text=${destination }
172
- ... region=${sub_region }
174
+ ... region=${target_region }
173
175
END
174
176
175
177
PlatformHid.Move Pointer To Absolute ${position } [0 ] ${position } [1 ]
0 commit comments