AutoHotkey Community

It is currently May 27th, 2012, 12:18 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: Netbook RMusic player
PostPosted: October 24th, 2008, 7:49 pm 
Netbook Random Music Player
i got my new mini9 yesterday, overall i am satisfy with its performance
but running itune or media player is just overkill the ram just for listening to songs

Here is the comparison data after running 5mins
Image
(*along with openning itune, there are few more process come with it, like AppleMobileDevice, AppleUpdate..)
Code:
#Persistent

menu, tray, NoStandard
Menu, Tray, Icon, Shell32.dll, 138
menu, tray, add, Play/Stop
menu, tray, add, Next
menu, tray, add, Exit


RegRead, myMusicVar, HKEY_CURRENT_USER, Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders, My Music
count=1

Loop, %myMusicVar%\*.*,,1
{
if (A_LoopFileExt="MP3" or A_LoopFileExt="WMA" or A_LoopFileExt="WAV")
{
list_%count% = %A_LoopFileShortPath%
name_%count% = %A_LoopFileName%
count++
}
}

loop
{
Random, rand, 1, %count%
playthis := list_%rand%
namethis := name_%rand%
menu, tray, tip, %namethis%
SoundPlay, %playthis%,1
sleep 300
}

return

play/Stop:
SoundPlay, next
pause
return

Next:
SoundPlay, next
return

Exit:
SoundPlay, next
exitapp
return


its not something intelligent that will make ur music experience whole lot better. but a fast and simple program that randomly play songs in ur music folder without affecting ur netbook performance much


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: October 24th, 2008, 7:59 pm 
Offline

Joined: June 26th, 2006, 6:14 pm
Posts: 1379
Location: USA
cool

_________________
Image
ʞɔпɟ əɥʇ ʇɐɥʍ


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 24th, 2008, 8:00 pm 
Offline

Joined: April 19th, 2005, 10:26 am
Posts: 2250
Location: switzerland
thank you evan for the random music player, I like it, want also a netbook ...
can hear from you with more scripts ... :)


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 25th, 2008, 3:13 am 
at some point, comparing to other scripts, i was even so embarrassed to share this simple script in the script & function section...
encouragements from the community and the excitement of building something for my netbook got me the courage
thanks


Report this post
Top
  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: Bing [Bot] and 6 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