Hello,
I want to use a incremental encoder (handwheel MR190 from Micronor) linked in RS232 to a HD1024 to command video (go forward / go backward). To be precise, I want the video always on pause, and the user able to go forward/backward at the speed he moves the wheel.
1. My first problem is the to tell my player in which direction the wheel rotates. I am able to read the data from the wheel : this one increase or decrease according to the direction. But is there a way to program an "if event" with a comparison of variables ? For instance :
if currentState < lastState : go backward, elseif currentState > lastState : go forward, else : pause.
But I didn't find nothing on this topic, and I think I don't have another way to dissociate the direction.
2. My second problem is the command associated to this "if event" I will use (go forward/backward). I was looking for such a command, but after some researches I found out it doesn't exist (but posts I read were about 10 years old ...). Anyway, I was not able to find it in BrightAuthor today. I only found the possibility to go to a specific time frame, but this no answer to my needs.
So is there another way to do this ? Is it possible to create a variable or something and tell for instance :
if currentState < lastState : time=time+1 (and so on)
Otherwise, I have thought to "convert" my video into images and create a Image list, then associate the command "previous/next" to the direction of rotation. But I think it is not ideal, I will have a huge image list and I don't know if it will be smooth enough.
Maybe there is a simpler way but I struggle to figure out how to do with these tools, this is the first time I use BrightAuthor ...
Sorry for the long post, I hope I was clear. Thanks in advance !