AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Electronic Program Guide (EPG) for TV v1.3
Goto page 1, 2, 3, 4  Next
 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions
View previous topic :: View next topic  
Author Message
toralf



Joined: 31 Jan 2005
Posts: 3842
Location: Bremen, Germany

PostPosted: Sat Feb 04, 2006 12:33 am    Post subject: Electronic Program Guide (EPG) for TV v1.3 Reply with quote

In January I started to work on a Electronic Program Guide (EPG) for TV (GUI, Data).

The idea came from an article in the c't magazine. It was about Konfabulator which is now Yahoo Widget Engine. In that article they stated that even an EPG exists, so I got the idea to do one in AHK.

The EPG for Yahoo Widget Engine is from Alexis LAIGNEL and its called WhatsOnTV. The AHK EPG uses the same yahoo sites to get the data.

Now I think the script is ready to be put into the script section.

I'm sorry, but there are no comments in the code. For history of changes see comments in code. Download code

And a screenshot of version 1.2

_________________
Ciao
toralf


Last edited by toralf on Sat Oct 21, 2006 6:35 pm; edited 7 times in total
Back to top
View user's profile Send private message Send e-mail Visit poster's website
garry



Joined: 19 Apr 2005
Posts: 973
Location: switzerland

PostPosted: Sat Feb 04, 2006 12:34 pm    Post subject: Reply with quote

nice, used everyday
(1954 , first I was thinking it's your birth-year, but it is the number of your post's Smile )
Back to top
View user's profile Send private message
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10465

PostPosted: Sat Feb 04, 2006 1:23 pm    Post subject: Reply with quote

I tried it. Really cool interface! It's so intuitive that almost instantly you have your area's TV stations, shows, and movies.
Back to top
View user's profile Send private message Send e-mail
toralf



Joined: 31 Jan 2005
Posts: 3842
Location: Bremen, Germany

PostPosted: Sat Feb 04, 2006 1:58 pm    Post subject: Reply with quote

Thanks for the feedback. I have fixed some minor things. Thus I changed the code to v1.0. And uploaded it to AutoHotkey.net.
_________________
Ciao
toralf
Back to top
View user's profile Send private message Send e-mail Visit poster's website
garry



Joined: 19 Apr 2005
Posts: 973
Location: switzerland

PostPosted: Sat Feb 04, 2006 5:49 pm    Post subject: Reply with quote

like to use, very quick
a question about a search function, maybe to complicated
example in:
http://www.20min.ch/unterhaltung/tv-guide/
Back to top
View user's profile Send private message
BoBo
Guest





PostPosted: Sat Feb 04, 2006 10:14 pm    Post subject: Reply with quote

Als super Detailversessen bekannt Shocked möchte ich vorschlagen die untere Begrenzungslinie des "Programs shown"-ListViews als Verlängerung des "Export TV"-Buttons anzupassen und dies ebenfalls für das "Program Details"-ListView vorzunehmen. Quasi GUI Kosmetik. Btw. beeindruckende Arbeit. Chapeau ! Cool
Back to top
toralf



Joined: 31 Jan 2005
Posts: 3842
Location: Bremen, Germany

PostPosted: Sat Feb 04, 2006 10:41 pm    Post subject: Reply with quote

@garry: That would require to download all the TV stations and their programs and all their details. This will be a lot of download. The code I wrote isn't designed for this. I doubt that I will add such a feature.

@BoBo: You would like to have all three controls to be aligned at the bottom line, right? Currently I use the rXX option for the ListBox, ListView and Edit control. Unfortunately It is not possible any more to use float numbers with the r option (It was possible in the past, but Chris disabled that feature. Can't remeber why :| ). So the only way would be to use the h option. I dislike the look as well, but I like the r option for coding. If it is too much pain for you to look at the GUI, you are always free to change the r option to h and adjust the height.
_________________
Ciao
toralf
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Titan



Joined: 11 Aug 2004
Posts: 5009
Location: imaginationland

PostPosted: Sat Feb 04, 2006 11:24 pm    Post subject: Reply with quote

Very nice.

May I suggest some features:

- The date is confusing Razz you could convert the ISO date into the local computer format. Here's an example:
Code:
ISODate = 2006-02-04 ; Example date

StringReplace, date, ISODate, -, , 1
FormatTime, date, %date% D1 R
StringTrimRight, date, date, % StrLen(date) - InStr(date, " ") + 1

MsgBox, % date ; Output result


- Could you improve the TV program list so that the enter key can be pressed to show the details. Also a single click rather than a double click is much better.

- Nucleated text looks congested. I see you're using relative control positioning, why not turn up the values a little for more padding around the controls.

- This may be a bug: you can select multiple items in the TV programs list but only one of the programs details can be displayed at a time. You might want to put -Multi in that ListViews options.

- Being able to resize the window would be fantastic. You've used relative positioning so before the Gui is shown, get their absolute values with GuiControlGet, Pos and use the Anchor function in the GuiSize label to reposition them while the GUI is resized.

- This may be hard and you may not want to do it but it would be uber useful for frequent users. When the program closes, save all the selections like the locale and stations in an INI file so when the user opens the program later, all the options are the same.

- 'What TV-program do you want to be listed' is pretty ambiguous when it's really asking 'for which area do you wish to view TV listings' but I'm sure you could change the label to something more meaningful.

You must hate me for bringing up all these issues Razz I only thought I'd mention it because it's a great app and the enhancements would make it all the more better. Thanks.
_________________

RegExReplace("irc.freenode.net/autohotkey", "^(?=(.(?=[\0-r\[]*((?<=\.).))))(?:[c-\x73]{2,8}(\S))+((2)|\b[^\2-]){2}\D++$", "$u3$1$3$4$2")
Back to top
View user's profile Send private message Visit poster's website
Micha



Joined: 15 Nov 2005
Posts: 433
Location: Germany

PostPosted: Sat Feb 04, 2006 11:50 pm    Post subject: Reply with quote

WOW. Very cool.
I'll test it and if it is sufficient for my needs, I can change from TV-Browser which is slow and needs a lot of RAM for the JAVA-VM.

Embarassed a resizing dialog would be cool Embarassed

Ciao
Micha
Back to top
View user's profile Send private message
Guest






PostPosted: Sun Feb 05, 2006 9:33 am    Post subject: Reply with quote

Titan wrote:
May I suggest some features:
Yes, please

Titan wrote:
- The date is confusing :P you could convert the ISO date into the local computer format.
I will try

Titan wrote:
- Could you improve the TV program list so that the enter key can be pressed to show the details. Also a single click rather than a double click is much better.
Since each click will start a download, I initially thought it would b better to have a doubleclick, but I will try to change it to a single click or an Enter (in case the user uses the arrow keys to navigate

Titan wrote:
- Nucleated text looks congested. I see you're using relative control positioning, why not turn up the values a little for more padding around the controls.
I like compact GUIs. I will not change the padding, But I will have a look if I could add a var for you, that allows you to change the padding. I still have to understand "Nucleated text looks congested" !?!

Titan wrote:
- This may be a bug: you can select multiple items in the TV programs list but only one of the programs details can be displayed at a time. You might want to put -Multi in that ListViews options.
I will look into the code. -Multi makes sense

Titan and Micha wrote:
- Being able to resize the window would be fantastic.
Will be added, but without Anchors (too much code)

Titan wrote:
- This may be hard and you may not want to do it but it would be uber useful for frequent users. When the program closes, save all the selections like the locale and stations in an INI file so when the user opens the program later, all the options are the same.
I will add a feature that will remember the location and select it at start up. The rest I will not be rememered since it is dynamic data and might have changed, but I will have a look into it if it is possible.

Titan wrote:
- 'What TV-program do you want to be listed' is pretty ambiguous when it's really asking 'for which area do you wish to view TV listings' but I'm sure you could change the label to something more meaningful.
Please suggest text. I'm not a native speaker. I know that it is not perfect. Please advice.

Titan wrote:
You must hate me for bringing up all these issues
Not at all. That's why I posted it here. I even expect you to critize the app. That's one of the only ways to get to an "perfect" app.
Back to top
garry



Joined: 19 Apr 2005
Posts: 973
Location: switzerland

PostPosted: Sun Feb 05, 2006 9:38 am    Post subject: Reply with quote

Quote:
@garry: That would require to download all the TV stations and their programs and all their details. This will be a lot of download. The code I wrote isn't designed for this. I doubt that I will add such a feature.

thanks toralf, don't need, your program works very fine
Back to top
View user's profile Send private message
toralf



Joined: 31 Jan 2005
Posts: 3842
Location: Bremen, Germany

PostPosted: Sun Feb 05, 2006 3:41 pm    Post subject: Reply with quote

Update to 1.1

Quote:
v1.1 (thanks Titan and Micha)
- Gui can be resized
- A single click on program shows details
- Only a single program can be selected
- Gui remembers position
- Gui remembers location
- dates are shown in locale format

_________________
Ciao
toralf
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Titan



Joined: 11 Aug 2004
Posts: 5009
Location: imaginationland

PostPosted: Mon Feb 06, 2006 10:45 pm    Post subject: Reply with quote

toralf (at another topic) wrote:
Could you help me to get the text on the GUI of the EPG into "native" english?

Your English is good. However since you asked, I put my recommendations below. A TV listing/guide would typically use the shorthand rather than more descriptive instructions, but I'll leave it for you to decide.

Replace: 'What TV-program do you want to be listed:'
With: 'Select the region you would like to view TV listings for:'
Shorthand: 'Region:'

Replace: 'Check the stations you want to see the program:'
Note: in the UK we call them channels (not stations) but I don't know what they call it in America
With: 'Check the channels for for a list of available programs'
Shorthand: 'Channels:'

Replace: 'These TV programs are shown:'
With: 'The following TV programs are listed (double-click for more details):'
Shorthand: 'Programs (double-click for details):'

Replace: 'Program details (DoubleClick in TV program list):'
With: 'Program information:'
Shorthand: 'Program info:'

Replace: 'Export TV program'
With: 'Export program' or 'Save to file'
Shorthand: 'Export' or 'Save'
_________________

RegExReplace("irc.freenode.net/autohotkey", "^(?=(.(?=[\0-r\[]*((?<=\.).))))(?:[c-\x73]{2,8}(\S))+((2)|\b[^\2-]){2}\D++$", "$u3$1$3$4$2")
Back to top
View user's profile Send private message Visit poster's website
toralf



Joined: 31 Jan 2005
Posts: 3842
Location: Bremen, Germany

PostPosted: Tue Feb 07, 2006 9:06 pm    Post subject: Reply with quote

New version 1.2 in first post
Quote:
v1.2
- Change of text labels (thx Titan)
- add: statusbar, icon and tray menu
- add: tip in statusbar
- improved: details for Italy and UK

_________________
Ciao
toralf
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Basile



Joined: 28 Jun 2005
Posts: 8
Location: FRANCE

PostPosted: Wed Feb 08, 2006 1:28 am    Post subject: Reply with quote

wowow !!! I've just to say that i'm very very impressed by your work!!!

I'm living in france, and IT WORKS PERFECTLY! Well Toralf, you have made a great stuff!! In one word: THANKS!


Last edited by Basile on Wed Feb 08, 2006 9:55 am; edited 1 time in total
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions All times are GMT
Goto page 1, 2, 3, 4  Next
Page 1 of 4

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group