Jump to content

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Find out more here. X
X


Photo

TV Player


  • Please log in to reply
8 replies to this topic

#1 seangriffin

seangriffin

    Polymath

  • Active Members
  • PipPipPipPip
  • 235 posts

Posted 20 December 2009 - 08:24 AM

This is a script / tool that takes some of the hassle out of setting up and playing videos on an external TV. I've named it TV Player for now (for want of a better name).

When I say "hassle" I mean:
  • Dragging the computer next to the TV
  • Plugging in an external hard drive containing the videos (if need be)
  • Plugging in the video cable from the TV to the computer (ie. VGA or S-Video)
  • Plugging in headphones (so not to wake up the rest of the family)
  • Switching the computer's resolution to match the TV (for the best picture quality)
  • Switching the computer's display across to the external TV
  • Finding the video on the computer
  • Playing the video

Then once the video has finished:
  • Closing the video player
  • Switch the display back to the computer
  • Switch the computer's resolution back to normal
  • Unplug headphones
  • Unplug video cable
  • Spindown or place in Standby the external hard drive (if need be)
  • Unplug the external hard drive
  • Carry the computer back to where it came from

I think there are some people out there who can relate to what I'm talking about here.

I really enjoy watching videos on an external TV directly from my computer, but all the hassles above sometimes turn me off, and I'd rather go straight to bed.

This script tries to automate some of these manual tasks.

If enough people find the concept useful, then I can make the script more generic to handle a bigger variety of configurations.

REQUIREMENTS:
  • AutoIt3 3.2 or higher,
  • A command line tool to switch your computer to an external display (igfxcfg.exe is recommended for mobile Intel chipsets)
  • A multimedia player
  • A command line tool to put your external drive into standby / spindown (ie. sdparm.exe)
  • An external TV or monitor with a native 1920 x 1080 pixel resolution
OPTIONAL HARDWARE:

  • An external (USB) hard drive
BENEFITS:

The tool automates a number of the manual tasks that I perform every time I watch a video on an external TV, and after I finish watching the video. These include:

  • Displaying a single list of videos from different sources (computer and external hard drive) for easy selection by the user.
  • Automatically closing your Instant Messenger after a video is selected (to avoid interruptions whilst viewing a video).
  • Automatically switching the display to a resolution of 1920 x 1080 32 bit (HD TV) after a video is selected.
  • Automatically switching the display to the external TV after a video is selected.
  • Automatically playing the video after the display has been switched to the external TV.
  • Automatically switching the display back to the computer after the TV Player has been closed.
  • Automatically placing the external disk drive into Standby Mode after the TV Player has been closed, such that it can be disconnected quickly.
DOWNLOAD:

Latest Version - v0.3 (12/02/12)
Attached File  TV Player.au3   15.8KB   356 downloads

SoundGetSetQuery.au3 attached below for convenience
Attached File  SoundGetSetQuery.au3   55.34KB   403 downloads

Edited by seangriffin, 12 February 2012 - 11:01 AM.

Cheers,

 

Sean.

 

See my other UDFs:

Chrome UDF - Automate Chrome | SAP UDF - Automate SAP | Java UDF - Automate Java Applications & Applets | Tesseract (OCR) UDF - Capture text from applications, controls and the desktop | Textract (OCR) UDF - Capture text from applications and controls | FileSystemMonitor UDF - File, Folder, Drive and Shell Monitoring | VLC (Media Player) UDF - Creating and controlling a VLC control in AutoIT | Google Maps UDF - Creating and controlling Google Maps (inc. GE) in AutoIT | SAPIListBox (Speech Recognition) UDF - Speech Recognition via the Microsoft Speech (SAPI) ListBox | eBay UDF - Automate eBay using the eBay API | ChildProc (Parallel Processing) UDF - Parallel processing functions for AutoIT | HyperCam (Screen Recording) UDF - Automate the HyperCam screen recorder | Twitter UDF - Automate Twitter using OAuth and the Twitter API | cURL UDF - a UDF for transferring data with URL syntax

 

See my other Tools:

Rapid Menu Writer - Add menus to DVDs in seconds | TV Player - Automates the process of playing videos on an external TV / Monitor | Rapid Video Converter - A tool for resizing and reformatting videos | Rapid DVD Creator - Convert videos to DVD fast and for free | ZapPF - A tool for killing processes and recycling files | Sean's eBay Bargain Hunter - Find last minute bargains in eBay using AutoIT | Sean's GUI Inspector - A scripting tool for querying GUIs | TransLink Journey Planner with maps - Incorporating Google Maps into an Australian Journey Planner | Automate Qt and QWidgets | Brisbane City Council Event Viewer - See what's going on in Brisbane, Australia








#2 WeiHeXie

WeiHeXie

    Seeker

  • Active Members
  • 17 posts

Posted 19 June 2010 - 06:00 AM

SoundGetSetQuery.au3
Not find!~

#3 ngocs2tron

ngocs2tron

    Seeker

  • Active Members
  • 16 posts

Posted 06 November 2010 - 02:43 PM

for WeiHeXi
download

#4 Cyri

Cyri

    Wayfarer

  • Active Members
  • Pip
  • 76 posts

Posted 12 May 2011 - 05:07 PM

for WeiHeXi
download

Just ran across this while doing a search and I agree this is very useful. I actually built something similar on my Win7 laptop which ran down in the systray so I could quickly flip back and forth. I would recommend possibly using some of the below commands to help set the machines state. Also, set the power scheme accordingly (for laptops) since it may be set to go to sleep/hibernate or turn off the monitor after only short periods of inactivity.

Start
DisplaySwitch.exe /external
presentationsettings.exe /start
powercfg.exe -SETACTIVE <new power scheme GUID>

Stop
DisplaySwitch.exe /internal
presentationsettings.exe /stop
powercfg.exe -SETACTIVE <old power scheme GUID>

The presentationsettings.exe can disable the screensaver and adjust the volume of audio if you preconfigure it. I got the power scheme GUID's via Win32_PowerPlan in WMI. Hope that helps anyone who may have a need for this.

Edited by Cyri, 12 May 2011 - 05:08 PM.


#5 CountryBoy

CountryBoy

    Seeker

  • Normal Members
  • 4 posts

Posted 09 June 2011 - 04:43 PM

Thanks,

Been their Done That, used S-Video Cable to TV with Media Player Classic for Years.

I now use the Western Digital Hard Drive Media Player.

It supports all video formats media-audio-Pictures, has 2 external USB Jacks for 2 x 2 Terabyte Hard Drives.

The remote control is small, but provides full controls.

A small computer in a small box uses the Linx System, with Internet Update.

Provides Internet Access, watch You-Tube, face book, play music, support Network shares,
Computer WDTV Access, etc.

Edited by CountryBoy, 09 June 2011 - 04:53 PM.


#6 seangriffin

seangriffin

    Polymath

  • Active Members
  • PipPipPipPip
  • 235 posts

Posted 15 August 2011 - 02:00 AM

V0.2 has been released. :mellow:

The downloads on page 1 been updated to V0.2.

New functions include:

  • Added an INI file for settings.
  • Added the option for other IM clients.
  • Added the option for a USB standby / spindown command.
  • Added the options for external display and resolution switching commands.
  • Added the option for a definable multimedia player.
  • Added the option for definable paths.
  • Added an autosave of options on exit.
  • Changed the USB standby script to now use the USB standby command.

Cheers,

 

Sean.

 

See my other UDFs:

Chrome UDF - Automate Chrome | SAP UDF - Automate SAP | Java UDF - Automate Java Applications & Applets | Tesseract (OCR) UDF - Capture text from applications, controls and the desktop | Textract (OCR) UDF - Capture text from applications and controls | FileSystemMonitor UDF - File, Folder, Drive and Shell Monitoring | VLC (Media Player) UDF - Creating and controlling a VLC control in AutoIT | Google Maps UDF - Creating and controlling Google Maps (inc. GE) in AutoIT | SAPIListBox (Speech Recognition) UDF - Speech Recognition via the Microsoft Speech (SAPI) ListBox | eBay UDF - Automate eBay using the eBay API | ChildProc (Parallel Processing) UDF - Parallel processing functions for AutoIT | HyperCam (Screen Recording) UDF - Automate the HyperCam screen recorder | Twitter UDF - Automate Twitter using OAuth and the Twitter API | cURL UDF - a UDF for transferring data with URL syntax

 

See my other Tools:

Rapid Menu Writer - Add menus to DVDs in seconds | TV Player - Automates the process of playing videos on an external TV / Monitor | Rapid Video Converter - A tool for resizing and reformatting videos | Rapid DVD Creator - Convert videos to DVD fast and for free | ZapPF - A tool for killing processes and recycling files | Sean's eBay Bargain Hunter - Find last minute bargains in eBay using AutoIT | Sean's GUI Inspector - A scripting tool for querying GUIs | TransLink Journey Planner with maps - Incorporating Google Maps into an Australian Journey Planner | Automate Qt and QWidgets | Brisbane City Council Event Viewer - See what's going on in Brisbane, Australia


#7 seangriffin

seangriffin

    Polymath

  • Active Members
  • PipPipPipPip
  • 235 posts

Posted 15 August 2011 - 02:11 AM

Just ran across this while doing a search and I agree this is very useful. I actually built something similar on my Win7 laptop which ran down in the systray so I could quickly flip back and forth. I would recommend possibly using some of the below commands to help set the machines state. Also, set the power scheme accordingly (for laptops) since it may be set to go to sleep/hibernate or turn off the monitor after only short periods of inactivity.


Wow, I'm glad to see there is some interest. Thanks Cyri.

I agree that the script needs to be more generic, though I've built the script on a Windows XP platform, and commands like "DisplaySwitch.exe" and "presentationsettings.exe" don't exist.

I've pumped in some hours and worked out some good alternatives for Windows XP, and I've included these in V0.2 of the script now.

Instead of DisplaySwitch.exe and presentationsettings.exe I've resorted to the command line tool for my particular video adapter, which is igfxcfg.exe (the Intel Graphics Media Accelerator for Mobile). I've enhanced the options popup in the script to accept any other command line tool that other users might have.

I also found (after hours of searching) a command line tool to spindown an external drive, called sdparm. I've included this in v0.2 of the script also, such that when you've finished watching a long video, and want to go to bed quickly, the script spinsdown your external drive for you, such that you can pack it away quickly.

I've also made the Instant Messenger and Media Player configurable in the Options, so the tool is now much more flexible and should work on more computer configurations for people with Windows XP.

Edited by seangriffin, 15 August 2011 - 02:12 AM.

Cheers,

 

Sean.

 

See my other UDFs:

Chrome UDF - Automate Chrome | SAP UDF - Automate SAP | Java UDF - Automate Java Applications & Applets | Tesseract (OCR) UDF - Capture text from applications, controls and the desktop | Textract (OCR) UDF - Capture text from applications and controls | FileSystemMonitor UDF - File, Folder, Drive and Shell Monitoring | VLC (Media Player) UDF - Creating and controlling a VLC control in AutoIT | Google Maps UDF - Creating and controlling Google Maps (inc. GE) in AutoIT | SAPIListBox (Speech Recognition) UDF - Speech Recognition via the Microsoft Speech (SAPI) ListBox | eBay UDF - Automate eBay using the eBay API | ChildProc (Parallel Processing) UDF - Parallel processing functions for AutoIT | HyperCam (Screen Recording) UDF - Automate the HyperCam screen recorder | Twitter UDF - Automate Twitter using OAuth and the Twitter API | cURL UDF - a UDF for transferring data with URL syntax

 

See my other Tools:

Rapid Menu Writer - Add menus to DVDs in seconds | TV Player - Automates the process of playing videos on an external TV / Monitor | Rapid Video Converter - A tool for resizing and reformatting videos | Rapid DVD Creator - Convert videos to DVD fast and for free | ZapPF - A tool for killing processes and recycling files | Sean's eBay Bargain Hunter - Find last minute bargains in eBay using AutoIT | Sean's GUI Inspector - A scripting tool for querying GUIs | TransLink Journey Planner with maps - Incorporating Google Maps into an Australian Journey Planner | Automate Qt and QWidgets | Brisbane City Council Event Viewer - See what's going on in Brisbane, Australia


#8 seangriffin

seangriffin

    Polymath

  • Active Members
  • PipPipPipPip
  • 235 posts

Posted 15 August 2011 - 02:15 AM

Thanks,

Been their Done That, used S-Video Cable to TV with Media Player Classic for Years.

I now use the Western Digital Hard Drive Media Player.


Yep a better alternative. And I guess these days the media player hardware can handle more codecs and formats than in days gone by, and also be affordable to the general public.

I'll stick with my laptop solution for a bit longer. At least by using this tool it's one less piece of hardware in my home (which means alot to me right now).

Cheers,

 

Sean.

 

See my other UDFs:

Chrome UDF - Automate Chrome | SAP UDF - Automate SAP | Java UDF - Automate Java Applications & Applets | Tesseract (OCR) UDF - Capture text from applications, controls and the desktop | Textract (OCR) UDF - Capture text from applications and controls | FileSystemMonitor UDF - File, Folder, Drive and Shell Monitoring | VLC (Media Player) UDF - Creating and controlling a VLC control in AutoIT | Google Maps UDF - Creating and controlling Google Maps (inc. GE) in AutoIT | SAPIListBox (Speech Recognition) UDF - Speech Recognition via the Microsoft Speech (SAPI) ListBox | eBay UDF - Automate eBay using the eBay API | ChildProc (Parallel Processing) UDF - Parallel processing functions for AutoIT | HyperCam (Screen Recording) UDF - Automate the HyperCam screen recorder | Twitter UDF - Automate Twitter using OAuth and the Twitter API | cURL UDF - a UDF for transferring data with URL syntax

 

See my other Tools:

Rapid Menu Writer - Add menus to DVDs in seconds | TV Player - Automates the process of playing videos on an external TV / Monitor | Rapid Video Converter - A tool for resizing and reformatting videos | Rapid DVD Creator - Convert videos to DVD fast and for free | ZapPF - A tool for killing processes and recycling files | Sean's eBay Bargain Hunter - Find last minute bargains in eBay using AutoIT | Sean's GUI Inspector - A scripting tool for querying GUIs | TransLink Journey Planner with maps - Incorporating Google Maps into an Australian Journey Planner | Automate Qt and QWidgets | Brisbane City Council Event Viewer - See what's going on in Brisbane, Australia


#9 seangriffin

seangriffin

    Polymath

  • Active Members
  • PipPipPipPip
  • 235 posts

Posted 12 February 2012 - 11:00 AM

V0.3 has been released. :)

The downloads on page 1 been updated to V0.3.

New functions include:
  • Added MP4 support (*.MP4 files)

Cheers,

 

Sean.

 

See my other UDFs:

Chrome UDF - Automate Chrome | SAP UDF - Automate SAP | Java UDF - Automate Java Applications & Applets | Tesseract (OCR) UDF - Capture text from applications, controls and the desktop | Textract (OCR) UDF - Capture text from applications and controls | FileSystemMonitor UDF - File, Folder, Drive and Shell Monitoring | VLC (Media Player) UDF - Creating and controlling a VLC control in AutoIT | Google Maps UDF - Creating and controlling Google Maps (inc. GE) in AutoIT | SAPIListBox (Speech Recognition) UDF - Speech Recognition via the Microsoft Speech (SAPI) ListBox | eBay UDF - Automate eBay using the eBay API | ChildProc (Parallel Processing) UDF - Parallel processing functions for AutoIT | HyperCam (Screen Recording) UDF - Automate the HyperCam screen recorder | Twitter UDF - Automate Twitter using OAuth and the Twitter API | cURL UDF - a UDF for transferring data with URL syntax

 

See my other Tools:

Rapid Menu Writer - Add menus to DVDs in seconds | TV Player - Automates the process of playing videos on an external TV / Monitor | Rapid Video Converter - A tool for resizing and reformatting videos | Rapid DVD Creator - Convert videos to DVD fast and for free | ZapPF - A tool for killing processes and recycling files | Sean's eBay Bargain Hunter - Find last minute bargains in eBay using AutoIT | Sean's GUI Inspector - A scripting tool for querying GUIs | TransLink Journey Planner with maps - Incorporating Google Maps into an Australian Journey Planner | Automate Qt and QWidgets | Brisbane City Council Event Viewer - See what's going on in Brisbane, Australia





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users