cameraControlSet issue
Posted: Wed Nov 27, 2019 2:42 pm
I'm refreshing my memory of LC tricks, which often means reminding myself of things by using examples from the LC Dictionary. The code samples provided there are very helpful... except when they don't work as expected – or at all. This is from the cameraControlCreate entry:
The cameraControlSet "myFirstCamera", "device", "front" line triggers an 'error in statement' entry in the revErrorDisplay window:
Any suggestions?
Keith
Code: Select all
cameraControlCreate "myFirstCamera"
cameraControlSet "myFirstCamera", "visible", true
cameraControlSet "myFirstCamera", "rect", "50,50,500,500"
cameraControlSet "myFirstCamera", "device", "front"
cameraControlDo "myFirstCamera", "takePicture"
put the result into url ("file:" & specialFolderPath("documents") & "/snapshot.jpg")
Code: Select all
Type Handler: error in statement
Object Button
Line cameraControlSet "myFirstCamera", "device", "front"
Hint mouseup
Keith