PDA

View Full Version : numbuilder?



Ron
October 13th, 2002, 12:55 PM
put [treg1] in the "File" box under the Execute action.

Ron
October 13th, 2002, 12:55 PM
c:music%03d.m3u that will be replaced by
the 3 digits you type, if you only type 1 or 2 digits it will be filled with leading zeros until it has 3 digits. If you don't want that, you can use

c:music%d.m3u this will not prepend leading zeros.

dkan24
October 13th, 2002, 12:55 PM
Thank you RonB, and SouthyPar for all your help. My goal has been accomplished!!

Of course it once you guys helped me figure it out, it was pretty simple. This program is so powerful, but also difficult to program when you have no programming skills at all.


What I finally did was this: I used the numbuild example included as a start. I switched the format to c:\music\%d.m3u

I added one command which executes the [treg1]. That command is triggered when I hit enter. I left the key count at 5, but am only using 3 digits. That allows me to hit enter to execute the command, not have it execute automatically.

I have to rename all my playlists to 3 digit numbers now. I am also using supernudelist on my pronto remote, to have a nice gui to bring up playlists. I will link the cd names to 3 digit codes and an enter key.

Thanks again for everyone's help. Now on to my next project- controlling DVD player! Should be easier than this I think :)

dkan24
October 13th, 2002, 12:55 PM
but that's what I can't seem to figure out how to do. When I choose execute under OS, where would I put register? Under file? I don't know what to put.

I have it set up, so that after I enter "1 2 3" the treg comes up C:\123.m3u

I would love to just execute that string, but I do not know how.

How can you execute a register value- in this case treg?

dkan24
October 13th, 2002, 12:55 PM
I have it set up so one command is set to check reg.

I want that to then output whatever is in the register to another command which then inserts that register number into C:musicxxx.m3u

How do I get the first check reg command to put that register number into the c:music%03d.m3u phrase? What do I put under icon/device?

I know I am close, but can't seem to get it yet.

thanks again- this is such an awesome program! A little out of my league though!

dkan24
October 13th, 2002, 12:55 PM
Can someone (Ron!) please explain how to use numbuilder.

I am pretty sure I need it, but can't figure it out.

Also, if you use numbuilder, can you still use a keyboard sentence? Basically, when I hit "1 2 3 enter" on my remote, I want girder to send the sentence "C:musicpink_floydthe_wall" to winamp. Is this possible?

<font size=-1>[ This Message was edited by: dkan24 on 2002-04-03 06:06 ]</font>

dkan24
October 13th, 2002, 12:55 PM
I've played with the help numbuild file, and I am unsure what it does. I assigned buttons on my remote to each number 0-9 and enter and cancel.

I notice that hitting "123" would create the treg "C:My Documents

dkan24
October 13th, 2002, 12:55 PM
That makes a little more sense now. I would like Girder to convert that number into a directory name. So if I enter "1 2 3", girder would output "C:musicpink_floydthe_wall"
as text into the open window in winamp. The open window would be the "enter location" dialog in winamp.

I have set this up to work, but not using numbuilder. I need to use numbuilder, because I have many albums, and need to go to a 3 digit system.

So basically, I don't understand how to make girder use the value in the register. If I knew how to do this, I could probably figure it out from there.

At the least, I could rename all my playlists to 3 digit numbers. Then girder could take the 3 digits I enter and open the file "C:musicxxx.m3u where xxx is the 3 digit number that I just entered into the register. If this is easier, I would just do this.

dkan24
October 13th, 2002, 12:55 PM
First off, I want to say thanks for the help that you have given me.

So I have reached the point where I have created a command that checks the register for the value. If that value is correct, it launches another command, which plays that playlist.

But I cannot get the command to check the register, unless I manually test it. How can I get it to check it automatically after I enter a number from my remote?

again, thanks for all the help,

Dan

dkan24
October 13th, 2002, 12:55 PM
yes!!

I figured it out- just had to learn event then click girder event any.

I have it set up so that I entered "1 2 3" and I had a command looking for "1 2 3", then another command opening up c:music123.m3u

How do I set it so that it will enter xxx where xxx is the number in the register into the file c:musicxxx.m3u ?

Don't tell me I have to set it up for every number that I have?

SouthyPar
October 13th, 2002, 12:55 PM
Did you check out the NumBuilder.GML file in the GirderHelp folder?

And yes, you can NumBuilder to enter as many digits as you like (you may also limit the amount of insertable digits), and you can easily configure keyboard use to also use the keyboard NumPad as an additional AlbumPlaylist selector.

SouthyPar
October 13th, 2002, 12:55 PM
First off, make sure both 'Save In Text Register' and 'Save In Number Register' are checked in all of your NumBuilder commands.
You said you wanted to use 3 digit numbers, so put '3' in the Key Count textbox.

Girder outputs both an integer number, and a string which you can display in OSD. This string can be manipulated in any way you wish. For example, the following format:

Selected Number is %03d

Will output a string, wherein the number of digits used to display the number is 3, appending zeros as needed. For example, if you have selected the number 22, the output string will be "Selected Number is 022".

Now, you will be able to understand the formatting included in the example .GML file.

I didn't understand how exactly you convert the number into a directory name - you said something about a program you use to maintain an indexed list of direcories.
Once you get the number you have - between 0 and 999 - do you just need to send it to a program to pull out the directory name, or do you want to convert the number into a directory name from within Girder?

SouthyPar
October 13th, 2002, 12:55 PM
Many do it exactly as you described.
To do this, merely use the "Execute" command to launch your .m3u file.

There's still the option of AlbumList plugin for Winamp, which is what I use. I mentioned it every time this topic comes up because it seems pretty ideal to me - the indexed list of albums appears in Winamp so you could use it to select albumsplaylists as well as your remote. The only disadvantage I see currently is that it outputs the list of albums into a html file without the index numbers - and you'll have to add them yourself to print out your own little album sheet. Also, the program sorts the albums dynamically and you will have to print out a new list every time you add new albums, so it won't work if you have a very large number of albums and you update your music collection regularly.

SouthyPar
October 13th, 2002, 12:55 PM
Actually, I don't think you'll even need a command for changing the text into the format after you've checked it. Simply incorporate the register in the appropriate place within the "Execute" command.