AutoHotkey Community

It is currently May 27th, 2012, 6:44 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 61 posts ]  Go to page 1, 2, 3, 4, 5  Next
Author Message
PostPosted: February 4th, 2006, 12:33 am 
Offline

Joined: January 31st, 2005, 9:50 am
Posts: 3910
Location: Bremen, Germany
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
Image

_________________
Ciao
toralf
Image


Last edited by toralf on October 21st, 2006, 6:35 pm, edited 7 times in total.

Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 4th, 2006, 12:34 pm 
Offline

Joined: April 19th, 2005, 10:26 am
Posts: 2249
Location: switzerland
nice, used everyday
(1954 , first I was thinking it's your birth-year, but it is the number of your post's :) )


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 4th, 2006, 1:23 pm 
Offline

Joined: March 2nd, 2004, 3:36 pm
Posts: 10720
I tried it. Really cool interface! It's so intuitive that almost instantly you have your area's TV stations, shows, and movies.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 4th, 2006, 1:58 pm 
Offline

Joined: January 31st, 2005, 9:50 am
Posts: 3910
Location: Bremen, Germany
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
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 4th, 2006, 5:49 pm 
Offline

Joined: April 19th, 2005, 10:26 am
Posts: 2249
Location: switzerland
like to use, very quick
a question about a search function, maybe to complicated
example in:
http://www.20min.ch/unterhaltung/tv-guide/
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 4th, 2006, 10:14 pm 
Als super Detailversessen bekannt :shock: 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 ! 8)


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: February 4th, 2006, 10:41 pm 
Offline

Joined: January 31st, 2005, 9:50 am
Posts: 3910
Location: Bremen, Germany
@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
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 4th, 2006, 11:24 pm 
Offline
User avatar

Joined: August 11th, 2004, 1:47 am
Posts: 5347
Location: UK
Very nice.

May I suggest some features:

- The date is confusing :P 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 :P I only thought I'd mention it because it's a great app and the enhancements would make it all the more better. Thanks.

_________________
GitHubScriptsIronAHK Contact by email not private message.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 4th, 2006, 11:50 pm 
Offline

Joined: November 15th, 2005, 11:15 am
Posts: 537
Location: Germany
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.

:oops: a resizing dialog would be cool :oops:

Ciao
Micha


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 5th, 2006, 9:33 am 
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.


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: February 5th, 2006, 9:38 am 
Offline

Joined: April 19th, 2005, 10:26 am
Posts: 2249
Location: switzerland
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


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 5th, 2006, 3:41 pm 
Offline

Joined: January 31st, 2005, 9:50 am
Posts: 3910
Location: Bremen, Germany
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
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 6th, 2006, 10:45 pm 
Offline
User avatar

Joined: August 11th, 2004, 1:47 am
Posts: 5347
Location: UK
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'

_________________
GitHubScriptsIronAHK Contact by email not private message.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 7th, 2006, 9:06 pm 
Offline

Joined: January 31st, 2005, 9:50 am
Posts: 3910
Location: Bremen, Germany
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
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 8th, 2006, 1:28 am 
Offline

Joined: June 28th, 2005, 2:06 pm
Posts: 8
Location: FRANCE
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 February 8th, 2006, 9:55 am, edited 1 time in total.

Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 61 posts ]  Go to page 1, 2, 3, 4, 5  Next

All times are UTC [ DST ]


Who is online

Users browsing this forum: Apollo, jepjep24, Yahoo [Bot] and 16 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group