PDA

View Full Version : Macro Help


DuetGuy
02-28-2006, 12:46 PM
I desperately need a macro the will play whatever clyp is loaded in the clyp player. I want to be able to call a clyp up, then when I press F10 on the keyboard, it starts the clyp.

HELP!!!!

Sparky
02-28-2006, 03:17 PM
Just use the "PLAY" button...

DuetGuy
03-01-2006, 05:38 AM
play button? great idea.....

EXCEPT, how does the play button on the keyboard activate the clip player? just pressing PLAY doesn't do it... doing ctrl play doesnt do it..... and i havent been able to use the "play clip" button on the clyp control panel in a macro.

but thank you.

Greg Lennon
03-01-2006, 11:46 AM
Have you tried using SendKeys in your macro?

Try this script. It should call up the clip control panel and activate the 'play clip' button (assuming you've previously loaded a clip):

set WshShell=CreateObject ("WScript.Shell")

WshShell.SendKeys "%oi"
WshShell.SendKeys "%p"

Greg

DuetGuy
03-01-2006, 12:05 PM
Hey Greg, thanks for the help, but I had tried this and alas, it doesn't work. The problem is, even though a clip is loaded, as soon as you do the ALTO I, it clears out whatever clip is there in the AVI name box waiting to be played.

Thanks for the help though.....

Chris
:confused:
:confused:
:confused:

Greg Lennon
03-01-2006, 03:18 PM
That'll teach me to just post stuff without testing it first. Leave it with me & I'll see if I can get you something that works...:argh:

GL

Sparky
03-01-2006, 07:32 PM
Sorry, Play works like a champ for me (LEX)!

Greg Lennon
03-02-2006, 02:19 PM
Hey Chris,

Yeah...I see your dilemma.

What's your workflow in this situation? Are you calling up a message with a clip (or a macro that loads a clip), and then jumping back to the canvas for other messages? Here's why I ask:

You're right that each time you open the Clip Control Panel it clears the clip. You could always just build a macro that loads the clip & then plays it (which is pretty quick, depending on which clip player you have). But, I'm sure you've already tried that.

If your workflow is the same every time (ie you load the clip, then F6 to the canvas and then need to start the clip), you could create a macro that CNTL-F6's back to the CCP. CNTL-F6 will remember the previous windows selected and activate them in reverse order, so if you change the workflow it won't work (ie if you select the browser or the scene graph occasionally). Create a macro using sendkeys that does CNTL-F6 once (or whatever works with your workflow) and activates the Play Clip button and you should be okay.

Let me know if this works for you...
GL

DuetGuy
03-03-2006, 08:03 AM
Hmm, well, the CTRL F6 works GREAT!!!!! Thanks for that....
Alas, no matter combination what I try, the PLAY CLIP just doesn't fire it off. CTRL PLAY CLIP... ALT PLAY CLIP..... CTRL ALT PLAY CLIP..... ALT CTRL PLAY CLIP.....

So, we've got the 1st part solved, now we just need it to actually PLAYthe clip...

Thanks....
Chris

Greg Lennon
03-03-2006, 10:43 AM
Oh, yeah. I noticed that too. Sorry, forgot to mention that part. Use {tab} sendkeys to manuever to that button (I think it's 16), then the spacebar.

GL

DuetGuy
03-03-2006, 11:03 AM
Actually, I figured out if I do ALT SHIFT p, it will play the clip loaded in the avi name box. I've got everything working perfect, except like you mention, if in my workflow situation I go more than 1 away from my clip control panel, then the CTRL F6 is useless for this.

I've had to build 2 macro's to try to accomplis this......

set WshShell=CreateObject ('WScript.Shell")
WshShell.SendKeys "%oi"
Lyirc.Open "I:\News\messages\99999994.lyr"
WshShell.SendKeys "^{F6}"
WshShell.SendKeys "%d"

This goes to my Clip Control Panel, goes to the specific page I have the clip stored at, then back to my clip panel and loads the clip.

set WshShell=CreateObject ('WScript.Shell")
WshShell.SendKeys "%+p"

This one actually PLAYS the clip loaded.

Again, my problem now is, how do I build a mcro that I can press a button (F10) and have it go back to the clip control panel and fire off whatever clip is loaded???? If I do the "%oi" again, it blows out whatever is in the avi nme box....


ARRGGGGHHHHHHHHH

Greg Lennon
03-03-2006, 11:34 AM
Yeah...I hear you.

I guess I don't understand why you just don't create a macro that loads the clip all in one shot (ie open CCP, browse to the clip, plays the clip).

Is this a looping background and you just need to turn it on & off? You could create a macro that either changes your CMix settings or (if you don't have a Cmix) turns your video layer on & off.

Help me understand why it is you want to do this and maybe I can come up with another solution...

GL