>> 4)i woluld like to write a script that when i active the mplyer,
>> it will play the movie or it stop.
>> And it will run at any time, how to do it?
>> ...
> I don't understand this question. For most players, pressing space
> toggles the pause/play, so why would you need a hot key?
Bruce, I think he does not want a hotkey.
I think he wants a window event hook, so when the mplayer window is
made active, it automatically stops or starts (toggle) the movie.
Chunwai, you can do it like this:
Make a command list named HookWindowEvents
with only one item, only one command:
hookwindow(arg(1),arg(2),arg(3),arg(4))
Make a new file \powerpro\scripts\hookwindow.powerpro
;;--------------------------------------------------
If (not (index(arg(4),"PartCaption")) )
jump notmplayer
If (arg(1) ne (1 or 5))
quit
keys {space}
@notmplayer
;; use this section if you want to hook some other windows events
quit
;;----------------------------------------------
Edit "PartCaption" to a permanent part of the mplayer's caption.
For example, if the caption is: FunkyTune.mpg - CoolPlayer
and the "CoolPlayer" part never changes
then the script should have:
If (not (index(arg(4),"CoolPlayer")) )
-----
See Help Index "hook events" about the numbers for line 1
of the script. Maybe you want:
If (arg(1) ne (1 or 2 or 5))
quit
or maybe: If (arg(1) ne 5))
------------------------ Yahoo! Groups Sponsor --------------------~-->
Check out the new improvements in Yahoo! Groups email.
http://us.click.yahoo.com/6pRQfA/fOaOAA/yQLSAA/JV_rlB/TM
--------------------------------------------------------------------~->
Attention: PowerPro's Web site has moved: http://www.ppro.org
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/power-pro/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/