[HowTo] onAppear() and observe() --- use the handler function and how it works
Version using 1.1.0
Windows 7 64 bit
use onAppear command
I use onAppear quite often to read dialog boxes and perform commands. one example is:
onAppear(
in 1.0.1 it performs this fine and continues script.
in 1.1.0 it performs this but then stops, supplies an error and the script halts.
i am calling this function from another script so the error just says error in line XXX where im calling it so I end up having to go find the parent script and run it individually to get the actual error which asys:
[error] script [ TestScratchpad2 ] stopped with error in line 1
[error] java.lang.
you can use any parameter with onAppear and it will run with the parameter but always gives an error. the error changes depending on which parameter you call.
if you call it like this:
onAppear(
then you get this error:
[error] script [ TestScratchpad2 ] stopped with error in line 1
[error] java.lang.
for now I am falling back to 1.0.1 since i use this in so many areas I can not change them all to wait() functions to work around it.
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- SikuliX Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
This question was originally filed as bug #1413399.
Can you help with this problem?
Provide an answer of your own, or ask Shawn Robertson for more information if necessary.