Welcome, Register for free! or Login below:
EduGeek.net RSS Feeds Register FAQ Members Social Groups User Map Calendar Search Today's Posts Mark Forums Read

How do you do....it?

How do you do....it? sponsored by
How do you do...it? Sponsored by PHD Virtual

Do you know how to do it? Do you want to let other people know? Post them here. We'll move them once we get a Wiki setup.

Go Back   EduGeek.net Forums > Technical > How do you do....it?
Reply
 
LinkBack Thread Tools Search Thread
Sponsored Links
Old 24-05-2008, 02:48 PM   #1
 
NickHoughton's Avatar
 
Join Date: May 2008
Location: Accrington
Posts: 80
uk uk lancashire
Thanks: 16
Thanked 4 Times in 3 Posts
Rep Power: 5 NickHoughton is on a distinguished road
Default Forcing WMP to exit once playback over

Hi All

Wondering if you can help. Doing a piece of BSc coursework. Have to produce an Expert SYstem in Powerpoint (Don't know why)

I have an AVI file I want to call in WMP in full screen and then close once playback is over. The videos are captured at 800*600 from VMWare so embedding them in the PPT file is not really feasible as the target machines are quite old.

I have managed a work around in a batch, file to get suppress the yes/no prompt for opening a batch file I have had to lower the security settings which I may not be able to do on the target system.

I think I need a less sloppy way to do this. I was wondering if a macro would help but I thought a similar thing may occur with the security warning. ALso, I have never worked with VBscript.

Here is my batch file:

@echo off
REM open WMP folder
c:

cd\progra~1

cd "windows media player"

REM call wmplayer and load specific file
start wmplayer "i:\filename.avi" /fullscreen

REM make the system wait until the video has finished
REM -n X where X is number of seconds of film
ping -n 15 localhost

REM kill wmp
taskkill /f /im wmplayer.exe
~~~~~~~~
end
~~~~~~~~


any suggestions?
Any
  Reply With Quote
Old 24-05-2008, 02:54 PM   #2
 
kmount's Avatar
 
Join Date: Feb 2007
Location: Northamptonshire
Posts: 3,607
uk
Thanks: 219
Thanked 528 Times in 482 Posts
Rep Power: 121 kmount ooh
kmount ooh kmount ooh kmount ooh
Default

"C:\Program Files\Windows Media Player\mplayer2.exe /play /fullscreen /close" I:\Filename.avi

Using /play and /close together means it plays and then closes.
/fullscreen as you know runs it in full screen.

The above should work but I'm not on a windows box to test it out on. - It may need the arguments taking outside of the quotes but I'm not certain.

Hope this helps.
  Reply With Quote
Thanks to kmount from:
NickHoughton (24-05-2008)
Old 24-05-2008, 03:01 PM   #3
 
NickHoughton's Avatar
 
Join Date: May 2008
Location: Accrington
Posts: 80
uk uk lancashire
Thanks: 16
Thanked 4 Times in 3 Posts
Rep Power: 5 NickHoughton is on a distinguished road
Default

works a treat

Many thanks
I had googled the wmplayer CLI arguments but didn't see that

not sure how to get around the security settings, though...
  Reply With Quote
Old 24-05-2008, 03:03 PM   #4
 
kmount's Avatar
 
Join Date: Feb 2007
Location: Northamptonshire
Posts: 3,607
uk
Thanks: 219
Thanked 528 Times in 482 Posts
Rep Power: 121 kmount ooh
kmount ooh kmount ooh kmount ooh
Default

What security settings?
  Reply With Quote
Old 24-05-2008, 03:13 PM   #5
 
NickHoughton's Avatar
 
Join Date: May 2008
Location: Accrington
Posts: 80
uk uk lancashire
Thanks: 16
Thanked 4 Times in 3 Posts
Rep Power: 5 NickHoughton is on a distinguished road
Default

In powerpoint 2003, tools > options > security > macro security

there are 4 settings. If you don't choose the "low" option powerpoint prompts with a potentially unsafe file type message and provides a yes no box
  Reply With Quote
Old 24-05-2008, 03:18 PM   #6
 
kmount's Avatar
 
Join Date: Feb 2007
Location: Northamptonshire
Posts: 3,607
uk
Thanks: 219
Thanked 528 Times in 482 Posts
Rep Power: 121 kmount ooh
kmount ooh kmount ooh kmount ooh
Default

Do 'all' filetypes have this warning I wonder ...

I mean, is it throwing its toys out of the pram by opening the mediaplayer executable, or the batchfile itself?

If its the batchfile, we could try using AutoIT to come up with an EXE that effectively embeds the batch file in it.
  Reply With Quote
Old 24-05-2008, 03:24 PM   #7
 
NickHoughton's Avatar
 
Join Date: May 2008
Location: Accrington
Posts: 80
uk uk lancashire
Thanks: 16
Thanked 4 Times in 3 Posts
Rep Power: 5 NickHoughton is on a distinguished road
Default

appears to be any .exe, .bat. .com files
  Reply With Quote
Reply

EduGeek.net Forums > Technical > How do you do....it?

Similar Threads
Thread Thread Starter Forum Replies Last Post
DVD playback - what programs are you using? Halfmad Windows 26 13-08-2009 11:24 AM
[Joke] Work Exit Interview Elky Jokes/Interweb Things 16 24-05-2008 02:52 PM
Forcing the issue Bestbett Windows 7 14-01-2008 05:19 PM
.avi Playback problems richard Windows 14 12-11-2007 03:04 PM
DBATTACH exit code ajbritton MIS Systems 0 24-11-2006 12:31 PM



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search Thread
Search Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 06:02 PM.
Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc.
Copyright EduGeek.net




website uptime

© 2005 - 2010 EduGeek.net
SERVER: 4
no new posts