Jump to content

Sky Slate Blueberry Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate
Photo

Aaron's YouTube Television v2.2.2.7


  • Please log in to reply
136 replies to this topic
aaronbewza
  • Members
  • 466 posts
  • Last active: Feb 05 2013 08:40 AM
  • Joined: 20 Feb 2011
UPDATED to version 1.4.0.0 (links updated in first post)

@ garry... I made a small change that should make things how they were (update #1 below).

1: reverted back to the original COM_Invoke commands (made no difference using other commands, ahk.com still required).
2: moved some code around for readability (and added more comments).
3: used more variables
(namely width and height).
4: added "Remove" button to erase channels.


@ nimda... "A_ThisLabel"? I'm not finding enough information to understand this one. *scratches head* Do you know of an example somewhere?

nimda
  • Members
  • 4368 posts
  • Last active: Aug 09 2015 02:36 AM
  • Joined: 26 Dec 2010

@ nimda... "A_ThisLabel"? I'm not finding enough information to understand this one. *scratches head* Do you know of an example somewhere?

Yes... *makes one up*

[color=indigo]Button2:
Button3:[/color]
  SelectedChannel :=[color=indigo] SubStr[/color]([color=red]A_ThisLabel[/color], 7) ; Removes 'button' from label.
  IniRead, url, %IniFile%, VideoURL, url%SelectedChannel%, %A_Space%
  IniRead, ChannelTitleDisplay, %IniFile%, Channels, %SelectedChannel%, %A_Space%
  GuiControl,, ChannelList, %ChannelTitleDisplay%
  GoSub, CodeVariableChange
Return
*adds emphasis to code*

There you go :D
I would have posted it sooner, but the last reply was from my phone.

aaronbewza
  • Members
  • 466 posts
  • Last active: Feb 05 2013 08:40 AM
  • Joined: 20 Feb 2011
That's awesome! And simple! Thanks again for your wisdom, nimda :D
Updating code now....

nimda
  • Members
  • 4368 posts
  • Last active: Aug 09 2015 02:36 AM
  • Joined: 26 Dec 2010
You could even use A_GuiControl and have just one label...

aaronbewza
  • Members
  • 466 posts
  • Last active: Feb 05 2013 08:40 AM
  • Joined: 20 Feb 2011
I can see how it works on the last control, but I don't see how it can be applied to multiple buttons from one instance. Let me do some more reading before I ask how to use that in this situation lol... back in a while :)

EDIT: that was easy!
Button2:
Button3:
Button4:
Button5:
Button6:
Button7:
Button8:
Button9:
Button10:
Button11:
Button12:
Button13:
SelectedChannel := A_GuiControl
MsgBox, %SelectedChannel%
Updated to version 1.4.2 in top post :)

aaronbewza
  • Members
  • 466 posts
  • Last active: Feb 05 2013 08:40 AM
  • Joined: 20 Feb 2011
Updated to version 1.5 (links updated in first post)

- one substantial change: there are now 9,999 programmable channels available.

NOTE! Before using this newest version, please delete the folder named
'YouTube Television" located in your Documents folder.
The new UrlList.ini must be written in that location and if your old one is still in there, it will not be overwritten with the new one.
AHK-only users: Please manually replace UrlList.ini in your Documents\YouTube Television folder with the new one.

aaronbewza
  • Members
  • 466 posts
  • Last active: Feb 05 2013 08:40 AM
  • Joined: 20 Feb 2011
Update coming! as soon as I work a few things out, perhaps tonight even. This one will display a channel list of
all the channels you've programmed, on a cool HTML page.

Frankie
  • Members
  • 2930 posts
  • Last active: Feb 05 2015 02:49 PM
  • Joined: 02 Nov 2008
Nice TV graphic. It looks more realistic than TV in the corner of this room... :)
aboutscriptappsscripts
Request Video Tutorials Here or View Current Tutorials on YouTube
Any code ⇈ above ⇈ requires AutoHotkey_L to run

TheGreatSwami Woo
  • Members
  • 237 posts
  • Last active: Jan 22 2012 03:31 PM
  • Joined: 26 May 2011
Yep look really cool , can't wait to get my hands on it, hmm actually you never do get your hands on a computer program, my bad.

aaronbewza
  • Members
  • 466 posts
  • Last active: Feb 05 2013 08:40 AM
  • Joined: 20 Feb 2011
UPDATED to version 2.0.0.0 (links updated in top post)

thanks! I stole the sony from google images and planted my own brand name on it: AARON lolz.
Ok it's ready to be trampled on and insulted for a while. I tried to cover all the potential bugs
but if you find any, please let me know.

I pre-loaded it with the ENTIRE collection of "The Annoying Orange". Hope you enjoy it.
Just erase them or overwrite them if you want other stuff in there. It's easy now.

Notable changes:
- the way it looks
- Add and Remove channel feature is a lot easier to use (User must be on the channel to be added or removed)
- Can accept the video URL from either the browser's main address bar, or from the 'Share' button (will prompt on most errors)
- 'Channel List' button shows a list of only your programmed channels
- Playlist URLs are accepted! and work! (except some stupid Vevo videos)

Future plans
- give User the ability to actually download the videos to save in an archive, to view
even if there is no internet connection.

GuiUser
  • Guests
  • Last active:
  • Joined: --
I'd suggest you to turn the buttons into "flat buttons", to remove the border with the window's background color around the buttons.

To do that, just include the following into all the button's options:

-Theme +0x8000


aaronbewza
  • Members
  • 466 posts
  • Last active: Feb 05 2013 08:40 AM
  • Joined: 20 Feb 2011
awesome suggestion! Implemented.
They look much nicer flat like this:
Posted Image

Links updated in first post :)

I also used 'q3' in the font options to anti-alias the text.

aaronbewza
  • Members
  • 466 posts
  • Last active: Feb 05 2013 08:40 AM
  • Joined: 20 Feb 2011
Updated to version 2.0.1.0 (links updated in first post)

- fixed an issue where an extra 'object' tag was being created in the HTML (may have created display issues)

I'm waiting for word on some help with the Channel List (reading and writing to it)...
once I get that help, this thing will have 9999 channels again, AND when User presses
the "Channel List" button, a fresh current channel list will be shown.
In fact, if I get the help I need, I might try 999,999 channels.
Then no-one will ever run out of available channel slots. Ever.

I'm also needing help (still) with a function to download the chosen video to a file. Any takers?

Frankie
  • Members
  • 2930 posts
  • Last active: Feb 05 2015 02:49 PM
  • Joined: 02 Nov 2008
I made a quick PHP version without all the bells and whistles. They can of course be added later.

http://apps.aboutscript.com/tubetv
aboutscriptappsscripts
Request Video Tutorials Here or View Current Tutorials on YouTube
Any code ⇈ above ⇈ requires AutoHotkey_L to run

aaronbewza
  • Members
  • 466 posts
  • Last active: Feb 05 2013 08:40 AM
  • Joined: 20 Feb 2011
beautiful, frankie! all you'd have to do is subtract about 60 pixels in the player's height and it should fit right in that window.