PDA

View Full Version : Still wondering - what do I change to get the playlist.gir t



Ron
October 13th, 2002, 12:55 PM
Try to modify the example .gxr file to accept 4 digits :smile:

Ron
October 13th, 2002, 12:55 PM
Thanks for the help MpegErnie, btw I programmed the old one :grin:

Ron
October 13th, 2002, 12:55 PM
Does Girder popup a dialog ? What action does this ?

Ron
October 13th, 2002, 12:55 PM
Ah I see, but I must disappoint you, this is not Girder that opens this message, but windows ( to be more precise the shell ). I checked the win32 API and there is no error-supression option in this call. Too bad :sad:

Ron
October 13th, 2002, 12:55 PM
Yes and it is out of my control.

Ron
October 13th, 2002, 12:55 PM
How about a fileexists action... that would fix this right ?

Ron
October 13th, 2002, 12:55 PM
Its already built in :grin: had a few minutes spare time,.. releasing it right now ( 3.0.25pre2 )

Ron
October 13th, 2002, 12:55 PM
Email me the .gxr file. I can put it into the exported group section as _the_ playlist opener :wink:

Ron
October 13th, 2002, 12:55 PM
I've uploaded it to the download page in the misc section.


Beer ... is .... goood :grin:

Ron
October 13th, 2002, 12:55 PM
MpegErnie =? Girder Expert,... well you are getting dangerously close :wink:

<font size=-1>[ This Message was edited by: RonB on 2002-02-10 19:58 ]</font>

Mastiff
October 13th, 2002, 12:55 PM
The topic sort of say it all. I've got way over 1000 albums on my server (at least 20 000 songs) so I need this.

Mastiff
October 13th, 2002, 12:55 PM
Please, do I need to beg here? :wink:

Honestly I have NO idea how I should do that. I don't know what to change, and where. So please tell me. I talk big, but when it comes to advanced programming (hey, this is advanced for me!) I'm like a baby.

Mastiff
October 13th, 2002, 12:55 PM
Thank you very much! I will test this tonight. Right now I think I have to work a bit ... my wife and kids are visiting my parents, and I'm home because I needed to catch up with a backlog at work. But I've been watching the olympics and playing with Girder and my MP3-server/HTPC more than working. Just don't tell her! >;->

btw congratulations on the 5000 meter yesterday. Impressive of an olympic rookie! :grin:

UPDATE: I'm weak, I'm weak! I had to try! :grin:

_________________
Tor - managing director of the Cinema Inferno home theater

<font size=-1>[ This Message was edited by: mastiff on 2002-02-10 12:03 ]</font>

Mastiff
October 13th, 2002, 12:55 PM
OK, now I'm beginning to get testy here, I think... There's one thing I can't get used to with your revised Playlist.gir. That's the timeout handling. Is it possible to get it to accept 5 so I won't have to punch 0005 to get to playlist number five? In other word goto a revised Execute that plays the list with the punched numbers (obviously from 1 to 999).

And one weird thing (which does not really bother me that much since I won't have the TV on when I use Media Jukebox this way) is that when I execute playlists below 999 (after changing the init to 1000) it says "Executing playlist 0", even though it executes the right playlist.

Thank you very much in advance! (Well, you did help me the last time, so I'm hoping...)

Mastiff
October 13th, 2002, 12:55 PM
I like the "OK" method, but it adds an extra keypress. Anyway, the worst thing that can happen with just executing what it gets is that she accidentally starts one of my black metal albums instead of her own music ... on the other hand that would probably lead to a nice little "#¤"¤#"¤%"¤"¤&%#%" for me ...
And another thing: if there's no playlist with the punched name, it'll pop up a message warning that playlistXX.m3u is not found, or something like that. But that's possible to close. I'll put in a delay and then close that window if it excists. So I think I'd like the method that just executes what it gets within four seconds (which is the timeout I'm using now). And thanks!

Mastiff
October 13th, 2002, 12:55 PM
The plugin you need to activate, is AlarmTimer 1.1 (it's in the original installation package, I believe). As for the modified playlist gir, do you mean his or mine? I've modified it as well, using his coding (is this called modification or stealing?) with both numbered paylists for Media Jukebox and the Albumlist-plugin for Winamp. I WISH something like that excisted for Media Jukebox! Then I wouldn't have to use two different setups on the machines. :sad:

But still it works, except for the quirks I mentioned earlier in this thread. And I believe mr MpegErnie will fix that. He's been incredibly active today! Must be the dutch gold medal yesterday. :smile:

Mastiff
October 13th, 2002, 12:55 PM
YES; YES; YES! Now it's there! And it's no wonder you couldn't find the problem with the OSD in version two...because it's not there! Don't know why, but it shows the correct digits. And yes, you're keeping me from my work, but all work and no play makes Tor a grumpy thundergod, so no worries! :smile:
BTW if I punch in the wrong number, I can't use Girder to close that error message since it comes from Girder itself and blocks it... But I'll find a solution. In the meantime, when I build my library of playlist, I'll stick to your Playlist and Amok's windows message control of Albumlist for now. :smile:

Thanks a lot for all your help!

Mastiff
October 13th, 2002, 12:55 PM
Holy shxt! You guys really work fast! Now if only Micro$oft could be this easy to deal with... :smile:

Mastiff
October 13th, 2002, 12:55 PM
On the first versions of his Playlist I just changed the execution part, from opening a reg.m3u to sending a reg windows message to Albumlist. Worked for me. I haven't tried it on the last version yet, but I will one of these days. Can't se any reason for it not to work.

GoldServe
October 13th, 2002, 12:55 PM
Could you post the newly upadted playlist.gir and what is the plugin you need to reset timeout? It goes softplug not found when run the command.

Amok
October 13th, 2002, 12:55 PM
wow, u guys never stop
some events here in argentina did'nt let me keep up w/ girder :wink:
Anyway:
i can't figure out the new file.
i need to send wm's to albumlist and would love 4 digits and a enter command
how do i set this up?

<font size=-1>[ This Message was edited by: Amok on 2002-02-12 04:27 ]</font>

MpegErnie
October 13th, 2002, 12:55 PM
Begging helps!! hehe, no sorry... I don't use this playlist.gir myself but your screaming here got curious and I thought "hell, this couldn't be that difficult? Why doesn't somebody help the poor guy?" :wink:

I took a look for you and created a new, own version of Playlist.gir
Get it here:
http://mpegernie.tripod.com/girder.html

I didn't quite understand the old one... who created that one? for example, what did the multicommand INS do?!?

about my version... be shure to execute the "init" multicommand on girders startup (or do that manually before testing) thats all. And there's still the timeout

Four digits?
In init there's a command named
"[reg2] = 100"
This command puts 100 in register 2 (take a look at the actions...)
if you make this 1000 (don't only change the name of the command!! :smile:)you will have to enter four digits before it's executed...
change it to 10 and you will have to enter 2 digits
change it to 1000000 and you will have to enter 7 digits... :grin:

So the number of 0's plus 1. 1000 should be fine in your case.

Enjoy and succes!!!

_________________
I justs love Girder and my remote... and now I wan't lots of OSD menus!!! :smile:

<font size=-1>[ This Message was edited by: MpegErnie on 2002-02-10 01:38 ]</font>

MpegErnie
October 13th, 2002, 12:55 PM
aha... Well i'm sorry I just programmed a new one but I couldn't figure out how it entirely worked. (still, what does INS do?)

MpegErnie
October 13th, 2002, 12:55 PM
hmmm, weird. But as I told you I don't actually use it and wouldn't notice this.. :smile: I'll take a look for you.

and about entering only "5"...
Theres are two solutions I believe:
- remove the "timeout" warning and just let it execute anything wich has been entered. Also when you have entered a wrong number!!
- close every input by OK or something. eg "5" + "OK" launches playlist5.m3u and "583736392" + "Ok" launches playlist583736392.m3u :grin:
I think the last one should be possible...
also there would be the need for a cancel button, or you would have to wait for a timeout.

So I can do this, and I'll take a look at this to... And give some feedback on what would be the most convenient.

MpegErnie
October 13th, 2002, 12:55 PM
Ok, I've got it.

To let playlist.gir execute anything entered on timeout (or on pressing "OK" or something") follow these steps:

-remove "OSD (timeout)" from TIMEOUT
-add a new command(first time)
-name this something like [reg2] * 10
-goto the girder actions, select "Mult Reg. with Val" from the pull down list, select register 2 and type "10" in the Icon/Device box. Don't forget to apply!
-add a new command(second time)
-name it "[reg3]/[reg2]"
-select "Div Reg. Through Reg." from the girder actions list, select register 3 and type "2" in the box.
-now copy display from multicommand "execute" and paste it in TIMEOUT
-do the same for "display" and "Reset timeout"

-now make shure the commands in TIMEOUT are in this order:
Reset timeout
[reg2]*10
[reg3]/[reg2]
display
execute playlist
goto init (reset values)

That's it!!!
Now anything that will be entered will be executed on timeout. you can press 5, 55, 550 and wait for the timeout or press 5555 and it will be executed imediatly.

It you don't want to wait for the timeout (which you can change in CALCSet timeout) you can learn the "OK" button or something to the TIMEOUT multicommand. pressing 5 or 34 or 284 and OK will now trigger also...

Oh and the weird thing you mentioned... I can't reproduce it here..?!?

have fun, Grtz MpegErnie

BTW, Am I keeping you of your work ? :grin:

MpegErnie
October 13th, 2002, 12:55 PM
ready, the edited file is available here as version 2
http://mpegernie.tripod.com/girder.html

ooooops, broken... /fixed again

you will need the OSD popup plugin
and for the timer the Alarmtimer plug

_________________
I justs love Girder and my remote... and now I wan't lots of OSD menus!!! :smile:

<font size=-1>[ This Message was edited by: MpegErnie on 2002-02-10 15:47 ]</font>

<font size=-1>[ This Message was edited by: MpegErnie on 2002-02-10 15:56 ]</font>

<font size=-1>[ This Message was edited by: MpegErnie on 2002-02-10 15:59 ]</font>

MpegErnie
October 13th, 2002, 12:55 PM
hehe... well I think that will be it for a while, and about the quirk. could you discribe it a little more? I can't reproduce it here...

the v2 file has a time-out that will trigger the entered digits.
enter 55, wait 4 or 5 seconds an it will launch plalist 55, the same for 2, 416 etc.

_________________
I justs love Girder and my remote... and now I wan't lots of OSD menus!!! :smile:

<font size=-1>[ This Message was edited by: MpegErnie on 2002-02-10 15:52 ]</font>

MpegErnie
October 13th, 2002, 12:55 PM
I think it will be difficult to close that error window. You probably have to create ALL playlists :smile:

Maybe Ron can write a try-catch construction for this into girder? :grin:
would be helpfull. And then let the catch goto some command.

Maybe you could launch some external batch or macro (another girder instance!!) and let that one close the error... but that's a real ugly solution.

A catch would be very helpfull...

_________________
I justs love Girder and my remote... and now I wan't lots of OSD menus!!! :smile:

<font size=-1>[ This Message was edited by: MpegErnie on 2002-02-10 17:31 ]</font>

MpegErnie
October 13th, 2002, 12:55 PM
when its tries to execute a non-existent playlist. It gives this windows error, couldn't find.. etc etc

MpegErnie
October 13th, 2002, 12:55 PM
ofcourse...
but it's associated with girder.exe
i've checked it, it really block girder from processing.. >:(

MpegErnie
October 13th, 2002, 12:55 PM
yes, something like that. you mean as a command action? place a "check" action before the execution. and ifnot existent goto -command-
Would be a great soution for this. It could also be a plug-in I think?

_________________
I justs love Girder and my remote... and now I wan't lots of OSD menus!!! :smile:

<font size=-1>[ This Message was edited by: MpegErnie on 2002-02-10 18:28 ]</font>

MpegErnie
October 13th, 2002, 12:55 PM
hehe, thats fast!!! :grin: :grin:
cool, now let's check it

MpegErnie
October 13th, 2002, 12:55 PM
YESS!!
works just perfect!! I added two multicommands, file error and file open and made some "check" commands.
Thumbs up Ron!
I'll put a new digit_playlist.gir online this evening (in about couple of hours that its overhere)

Meanwhile make shure you download girder3025pre2.zip

MpegErnie
October 13th, 2002, 12:55 PM
it's on my site and mailed to Ron.

MpegErnie
October 13th, 2002, 12:55 PM
heh, thnx. I'll drink a Grolsch on that!
:grin:
hey, I'm using girder for two weeks an d i'm already 30 posts (erm ...+ 1) richer. When do I become expert? :smile:

MpegErnie
October 13th, 2002, 12:55 PM
On 2002-02-12 09:59, mastiff wrote:
On the first versions of his Playlist I just changed the execution part, from opening a reg.m3u to sending a reg windows message to Albumlist. Worked for me. I haven't tried it on the last version yet, but I will one of these days. Can't se any reason for it not to work.



the last version does about that. if the file doesn't exists it pops up "no such fle".