Digital Workshop

Welcome to the Digital Workshop Message Boards
It is currently January 9th, 2025, 9:16 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: keyboard-trigger, Idea searched
PostPosted: February 16th, 2008, 5:13 pm 
Offline

Joined: November 9th, 2004, 5:05 pm
Posts: 27
Location: Germany
I would like that a video starting from/to a certain position. This event
should released by keyboard-trigger. It should play so for a
long time to the key is released. Unfortunately there is not a
trigger "key press down".
Does someone have an idea, how I can solve this problem in Opus? In
Mediator there is such a trigger, I would like the program with Opus
to however rather realize.

_________________
Many greetings
tiaetsch

OpusPro9, Win 8.1, Intel I7, 8GB RAM


Top
 Profile Visit website  
 
 Post subject:
PostPosted: February 16th, 2008, 11:03 pm 
Offline

Joined: November 25th, 2004, 1:24 pm
Posts: 512
Location: Scotland
Opus: 9.75
OS: Win 10
System: Asus i7-7700K 16Gb
have you looked at triggers---advanced-----keypress?? or is this not suitable for what you are trying to do???

there is also a script test for key pressed

Quote:
IsKeyPressed()

Syntax:

IsKeyPressed( Key1, Key2, … )

Return:

true if a specified key is pressed down. Otherwise, false.

Parameters:

Key1, Key2, – a single character string representing a text key (e.g. a, b, c ) or one of special keys listed below. More than one Key can be included within each function. Each Key should be separated by a comma. This parameter is required.

Special Keys:

One or more of the following strings: "Up", "Down", "Left" or "Right", representing the keyboard arrow keys. As well as one or more of the following: "Control", "Shift","Alt", "Backspace","Enter", "Caps","Pause", "Tab","Escape", "PageUp","PageDown", "End","Home", "Print","Insert", "Delete","Help", "LeftWin","RightWin", "Add","Multiply", "Subract", "Decimal", "Divide", "F1", "F2", "F3", "F4", "F5", "F6", "F7", "F8", "F9", "F10", "F11", "F12", "F13", "F14", "F15", "F16", "F17", "F18", "F19", "F20", "F21", "F22", "F23", "F24" , "Numpad0", "Numpad1", "Numpad2", "Numpad3", "Numpad4", "Numpad5", "Numpad6", "Numpad7", "Numpad8", "Numpad9", "NumLock"

Remarks:

This function will return true when a specified key is being held down. This function is useful for programming keys to perform different actions in your script.



two other things to look at ....... custom actions/triggers............. and the event handler in script [RegisterEventHandler( EventName, EventFunction )]

hope this helps


Sandy

_________________
Whoever designed this, never actually used it!


Top
 Profile  
 
 Post subject:
PostPosted: February 17th, 2008, 12:22 am 
Offline

Joined: November 25th, 2004, 1:24 pm
Posts: 512
Location: Scotland
Opus: 9.75
OS: Win 10
System: Asus i7-7700K 16Gb
I tried a quick test.
I added an action to a page

using Trigger-----advanced-----key pressed(SPACE)

this trigger was used to show an image


then Trigger----advanced------key released (SPACE)

[note to activate a key, put the cursor inside the 'specific key' box and then press the key you want to use as the trigger]



this trigger was used to hide the image.

so when you press the space bar, the image appears and remains as long as the space bar is pressed, when you release the space bar, the image is hidden.
You should be able to use this, or a similar method to play/stop a video


Sandy


You do not have the required permissions to view the files attached to this post.

_________________
Whoever designed this, never actually used it!


Top
 Profile  
 
 Post subject:
PostPosted: February 17th, 2008, 10:30 am 
Offline

Joined: November 9th, 2004, 5:05 pm
Posts: 27
Location: Germany
Thank you very much for the fast answer. I will try the solution ways equally today.

_________________
Many greetings
tiaetsch

OpusPro9, Win 8.1, Intel I7, 8GB RAM


Top
 Profile Visit website  
 
 Post subject:
PostPosted: February 17th, 2008, 12:11 pm 
Offline

Joined: November 3rd, 2004, 8:12 pm
Posts: 129
Location: New Brunswick, Canada
Opus: 8.6
OS: Win 8 (ASUS) - Win 7: (ASUS)
System: Asus - Windows 7 - 8 - Intel Core 3 - 4RAM - 16RAM
tiaetsch

Maybe the attached IMP file will help. I've applied the action that if you press the space-bar key the video plays, if you release it will stop or pause depending what you set. I think this would be the same as the user holding the key down?


You do not have the required permissions to view the files attached to this post.

_________________
Leo Taylor
Win XP Home / Opus Pro 7.01 & 6.4 / P4-2.8 / 1.5 GB RAM / ATI All-in-Wonder 9600 /160GB-HD


Top
 Profile Visit website  
 
 Post subject:
PostPosted: February 17th, 2008, 12:46 pm 
Offline

Joined: November 9th, 2004, 5:05 pm
Posts: 27
Location: Germany
Hello leo and sandyn, you have right, that went actually very simply. I can explain however why it did not function with me.

If I for example that "a" key press, should play the video from an certain position. Therefore I determined the starts and endposition in the video-action under Time. If I this do works it no longer correctly.

Each key should play a certain part of the video. Is that possible? With the mouse-trigger "left mouse down" work that, I however the keyboard-trigger as a triggers.

Can you help?

_________________
Many greetings
tiaetsch

OpusPro9, Win 8.1, Intel I7, 8GB RAM


Top
 Profile Visit website  
 
 Post subject:
PostPosted: April 14th, 2008, 5:24 am 
Offline
Godlike
Godlike

Joined: November 12th, 2005, 1:56 am
Posts: 1474
Location: SFBay Area
Opus: OpusPro v9.0x, & Evol.
OS: Vista32
System: Core 2 duo 2Ghz, RAM 3GB, Nvidia Go 7700 - laptop
There may be some access to state of keys being pressed... check out RegisterEventHandler for what that offers. You may need to construct it with some loop or other means to keep 'polling' some variable. "IsPlaying()" may also be a way to verify in combination with key presses.

_________________
_good things come to those who wait(0)_


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: Google [Bot] and 65 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group