Electronic Program Guide (EPG) for TV v1.3
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
toralf
I use the latest AHK version (1.1.15+)
Please ask questions in forum on ahkscript.org. Why?
For online reference please use these Docs.
(1954 , first I was thinking it's your birth-year, but it is the number of your post's )
toralf
I use the latest AHK version (1.1.15+)
Please ask questions in forum on ahkscript.org. Why?
For online reference please use these Docs.
a question about a search function, maybe to complicated
example in:
<!-- m -->http://www.20min.ch/...ltung/tv-guide/<!-- m -->
@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.
toralf
I use the latest AHK version (1.1.15+)
Please ask questions in forum on ahkscript.org. Why?
For online reference please use these Docs.
May I suggest some features:
- The date is confusing you could convert the ISO date into the local computer format. Here's an example:
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 I only thought I'd mention it because it's a great app and the enhancements would make it all the more better. Thanks.
autohotkey.com/net Site Manager
Contact me by email (polyethene at autohotkey.net) or message tidbit
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
Yes, pleaseMay I suggest some features:
I will try- The date is confusing :P you could convert the ISO date into the local computer format.
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- 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.
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" !?!- 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 will look into the code. -Multi makes sense- 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.
Will be added, but without Anchors (too much code)- Being able to resize the window would be fantastic.
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.- 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.
Please suggest text. I'm not a native speaker. I know that it is not perfect. Please advice.- '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.
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.You must hate me for bringing up all these issues
thanks toralf, don't need, your program works very fine@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.
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
toralf
I use the latest AHK version (1.1.15+)
Please ask questions in forum on ahkscript.org. Why?
For online reference please use these Docs.
(at another topic)":3n7sqmaf">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.Could you help me to get the text on the GUI of the EPG into "native" english?
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'
autohotkey.com/net Site Manager
Contact me by email (polyethene at autohotkey.net) or message tidbit
v1.2
- Change of text labels (thx Titan)
- add: statusbar, icon and tray menu
- add: tip in statusbar
- improved: details for Italy and UK
toralf
I use the latest AHK version (1.1.15+)
Please ask questions in forum on ahkscript.org. Why?
For online reference please use these Docs.
I'm living in france, and IT WORKS PERFECTLY! Well Toralf, you have made a great stuff!! In one word: THANKS!