The MP3car.com Store  

Welcome to the MP3Car.com forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. Registering will also remove advertisements. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.

Go Back   MP3Car.com > Mp3Car Technical > Software & Software Development > Front Ends > Centrafuse

Reply
 
Thread Tools Search this Thread Display Modes
Old 10-30-2005, 02:26 PM   #1
Registered User
 
aoLhaTer's Avatar
 
Join Date: Mar 2003
Location: Rohnert Park, CA
Vehicle: 04 Infiniti G35 Coupe
Posts: 1,122
My Photos: (0)
Ive created a random album selector!

For as long as Ive had a car computer Ive wanted some sort of a random album selector so I didnt have to clumbsily attempt to select a new album and artist while driving if my music ran out


It never ocurred to me before but I finally figured out I could use an automation program called AutoIt. AutoIt makes it happen but with a few complications (see end of post)



This script when run with Centrafuse open in 800x600 will select and load a random album from your media library

Script: http://www.dwoloz.com/centrafuse-autoalbum.exe

Source:
Code:
; ; AutoIt Version: 3.0 ; Language: English ; Platform: Win9x/NT ; Author: aoLhaTer ; ; Script Function: ; Automatically select and load an album in Centrafuse - 800x600 ; ; Click on the media button MouseClick( "left", 53, 133, 1, 0 ) ; Click on the media list button MouseClick( "left", 750, 238, 1, 0 ) ; Click on the Library button to make sure we're at the root MouseClick( "left", 104, 108, 1, 0 ) ; Hit enter to proceed to artists Send( "{ENTER}" ) ; Create a random integer, 122(+1) is the max artists $X = Random ( 0, 122, 1 ) ; Go down the list X times For $I = 0 To $X Send( "{DOWN}" ) Next ; Hit enter to proceed to random artist Send( "{ENTER}" ) ; Create a new random integer, 2(+1) is the max albums $X = Random ( 0, 2, 1 ) ; Go through the albums X times For $I = 0 To $X Send( "{DOWN}" ) Next ; Click load to play album MouseClick( "left", 410, 490, 1, 0 ) ; Finished!

If you want to recompile this is the program, AutoIt http://www.autoitscript.com/autoit3/


Ive tested this on my desktop computer and it seems to run great. Have yet to test it in the car



Now, there are some complications I ran into. The script is completely unaware of how many artists there are in your database and its also unaware of how many albums each artist has. Therefore when the script does its random number generator you have to set the maximum numbers yourself. In the compiled EXE you see above Ive used a maximum of 123 artists and a maximum of 3 albums. The artist randomization will work fine....except when you add new artists. The album randomization will work but it will skip any albums if an artist has more than 3 and it will also give more weight to the 2nd album if the artist only has 2.
If anyone can figure out a solution to this please share. Only solution in my estimation is to get the library data from Centrafuse's dat file and know exact numbers from there.
__________________
2004 G35 Coupe project

Last edited by aoLhaTer; 10-30-2005 at 02:51 PM.
aoLhaTer is offline   Reply With Quote
Sponsored Links
Old 10-30-2005, 02:47 PM   #2
Raw Wave
 
justintime's Avatar
 
Join Date: Apr 2005
Vehicle: 2002 Honda CR-V
Posts: 2,702
My Photos: (0)
Clever, but how the hell are you managing to RUN this script from within CentraFuse interface?!

I've asked David to allow for buttons to be associated with programs WITHOUT EMBEDDING, but this is not currently possible. Can you please explain how you envision running this script from within CF?
__________________
2002 Honda CR-V
Carputer progress: 90% [▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ -]
Spent so far: $1105.90


Download the NEXUS Skin for Centrafuse
...or even Listen to my music
justintime is offline   Reply With Quote
Old 10-30-2005, 02:50 PM   #3
Registered User
 
aoLhaTer's Avatar
 
Join Date: Mar 2003
Location: Rohnert Park, CA
Vehicle: 04 Infiniti G35 Coupe
Posts: 1,122
My Photos: (0)
That is yet another problem
David has said that in future versions (which Im assuming to be 1.5) we will be able to launch applications without specifying a window

Im going to be using AltTabber right now to launch the application and then hopefully when 1.6 comes I can launch it as a button in CF
__________________
2004 G35 Coupe project

Last edited by aoLhaTer; 10-30-2005 at 02:58 PM.
aoLhaTer is offline   Reply With Quote
Sponsored Links
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Album art downloader hijinks21 Software & Software Development 105 07-20-2006 09:56 AM
Browsing by Album, Artist, Genres F350 Road Runner 19 12-09-2005 08:45 AM
FRODO doesn't remeber Album Art heiniheini FrodoPlayer 7 05-25-2005 02:28 AM
Random...Little too Random Prindle19 Centrafuse 1 01-17-2005 05:30 PM
BBAA_?_going down in the album selector skips the last album when pressing W 0l33l FP Bug Reports 0 11-06-2004 11:17 PM


All times are GMT -5. The time now is 12:53 PM.


Sponsored Links
The MP3car.com Store

Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.2.0
Copyright © 1999 - 2008 Mp3Car.com Inc.
Ad Management by RedTyger
Message Board Statistics