@@ -6,6 +6,7 @@ Documentation Keyword definitions for specialised functionality
66... using the PlatformVideoInput.Init keyword. The initialization is
77... platform-specific.
88
9+ Library Collections
910Library Hid.py AS PlatformHid
1011Library VideoInput.py AS PlatformVideoInput
1112Variables video_input_vars.py
@@ -148,12 +149,13 @@ Move Pointer To ${destination} In ${domain}
148149 ... Return:
149150 ... Absolute position of the pointer after the move, as a tuple (x, y)
150151 ... 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) } }
154155 IF ${{ os.path.exists($domain) } }
155156 ${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
157159 ELSE
158160 Fail Template ${domain } doesn't exist!
159161 END
@@ -164,12 +166,12 @@ Move Pointer To ${destination} In ${domain}
164166 IF ${{ os.path.exists($destination) } }
165167 ${regions } = PlatformVideoInput.Match
166168 ... template=${destination }
167- ... region=${sub_region }
169+ ... region=${target_region }
168170 ${position } = Get Center Of ${regions } [0 ]
169171 ELSE
170172 ${position } = PlatformVideoInput.Get Text Position
171173 ... text=${destination }
172- ... region=${sub_region }
174+ ... region=${target_region }
173175 END
174176
175177 PlatformHid.Move Pointer To Absolute ${position } [0 ] ${position } [1 ]
0 commit comments