Jump to content
Sign in to follow this  
buttercheese

playback-speed of video-files

Recommended Posts

buttercheese

Hi together,

any ideas, if it´s possible to control video-speed (Win Media Player) using Autoit? I would like to enable slowmotion (for- and backwards).

Any ideas, why it´s not possible are welcome to.

Best wishes

buttercheese

Share this post


Link to post
Share on other sites
Doxie

You can use AutoIt to send:

Fast

Send("{CTRLDOWN}")

Send("{SHIFTDOWN}")

Send("G")

Send("{CTRLUP}")

Send("{SHIFTUP}")

Normal

Send("{CTRLDOWN}")

Send("{SHIFTDOWN}")

Send("N")

Send("{CTRLUP}")

Send("{SHIFTUP}")

Slow

Send("{CTRLDOWN}")

Send("{SHIFTDOWN}")

Send("S")

Send("{CTRLUP}")

Send("{SHIFTUP}")

Fast Forward

Send("{CTRLDOWN}")

Send("{SHIFTDOWN}")

Send("F")

Send("{CTRLUP}")

Send("{SHIFTUP}")

Rewind

Send("{CTRLDOWN}")

Send("{SHIFTDOWN}")

Send("B")

Send("{CTRLUP}")

Send("{SHIFTUP}")

*Don´t type the things written in bold


Were ever i lay my script is my home...

Share this post


Link to post
Share on other sites
buttercheese

Hello Doxie,

thanx for your interest and suggestion. Trying to use your ideas I got no success.

If WinExists("Windows Media Player") Then

WinActivate("Windows Media Player", "")

Sleep(250)

Send("{CTRLDOWN}")

Send("{SHIFTDOWN}")

Send("S")

Send("{CTRLUP}")

Send("{SHIFTUP}")

EndIf

The Media Player became active, but that´s all. :D

Any other ideas, or another codesnippet?

Best wishes

buttercheese

Share this post


Link to post
Share on other sites
buttercheese

OK, here´re the news:

If WinExists("Windows Media Player") Then

WinActivate("Windows Media Player", "")

Send("^p")

EndIf

works for start + stop playing, but taking influence to the playbackspeed still isn´t possible.

Any other ideas?

buttercheese

Share this post


Link to post
Share on other sites
trids

My Windows Media Player also doesn't respond to the control keys described above :D . But it does respond to the space-bar: it toggles between pause and play.

Using this, you can have lots of instructive fun writing a script to press the space-bar at different intervals :)

Hmmm .. thinks: this might be a good beginner tutorial. It could explore such topics as Send; WinActivate; INIRead .. :huh2:

Share this post


Link to post
Share on other sites
buttercheese

Oh yes, funny... :huh2:

Here is the :lol: slowmotion workaround :)

WinActivate("Windows Media Player", "")

$i = 0

Do

Send("^p")

Sleep(40); increase for slower motion/jumps

$i = $i + 1

Until $i = 1000000000 ; (to avoid :) )

Any better ideas or workarounds? :D

butterchheese

Share this post


Link to post
Share on other sites
buttercheese

Hi together,

new week, new chance :)

Still searching for the slowmo-code.

Any ideas? :D

Have a nice week :huh2:

buttercheese

Share this post


Link to post
Share on other sites
Doxie

What version of Windows Media player you got?


Were ever i lay my script is my home...

Share this post


Link to post
Share on other sites
Doxie

Strange, its working for me


Were ever i lay my script is my home...

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×