AutoHotkey Community

It is currently May 27th, 2012, 10:32 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 17 posts ]  Go to page Previous  1, 2
Author Message
 Post subject: Well
PostPosted: April 21st, 2008, 3:32 am 
Offline

Joined: March 22nd, 2008, 4:03 am
Posts: 57
Location: At my computer
The core functions of this are pretty good as far as I can tell, I'm no ahk expert (more or less a noobie in ahk) but my suggestion is to possibly enhance the gui and keep the sound core functions and possibly add on to it once new AHK features come out for the Sound functions or even use an external library and call it in ahk... a library like FMOD :)

_________________
My Blogs | PChat the free XChat fork for Windows and *nix
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: April 22nd, 2008, 2:10 am 
Aah, this reminded me of something I made before!
Except mine was buggy, and ugly. I was thinking about fixing it, but I totally forgot to!

I think it's better to replace the playlist with something a little more user friendly, like FileSelectFolder

My old script:
Code:
#NoEnv
#NoTrayIcon
#Persistent
#SingleInstance force


;;;;;;;;;;
sRegistry:
;;;;;;;;;;
RegRead, FirstRun, HKEY_CURRENT_USER, Software\TP3, FirstRun
if FirstRun!=False
{
RegWrite, REG_SZ, HKEY_CURRENT_USER, Software\TP3, Volume, 50
VOlume:=50
}
else
{
RegRead, Volume, HKEY_CURRENT_USER, Software\TP3, Volume
}
Soundset, %volume%


;;;;
Gui:
;;;;
Gui, Add, Picture, x-5 y-5 w h , BG.png

Gui, Add, Text, x46 y24 w30 h20 c0xA1C89B gPlay, Play

Gui, Add, Text, x46 y44 w40 h20 c0xA1C89B gPlayListMaker, PlayList

Gui, Add, Text, x46 y64 w30 h20 c0xA1C89B gLyrics, Lyrics

Gui, Add, Text, x46 y84 w50 h20 c0xA1C89B gDownload, Download

Gui, Add, Text, x46 y104 w30 h20 c0xA1C89B gHelp, Help

Gui, Show, x311 y191 h162 w156,TP3
Back:
Return


;;;;;
Play:
;;;;;
FileReadLine, ssong, SongList.txt,1
soundplay,%ssong%,wait
line:=1

loop{
line:=line+1
FileReadLine, csong, SongList.txt, %line%
soundplay,%csong%,wait
soundplay,|:||*/-f_\-a*/_k*\-e*/-|:||
}


;;;;;;;;;;;;;;
PlayListMaker:
;;;;;;;;;;;;;;
InputBox,dir, Playlist Maker,,,250,100,0,0,,,Enter Path of MP3s
if ErrorLevel
    goto playlistexit
else
List=
Loop %dir%\*.mp3,,1
List=%List%%A_LoopFileFullPath%`n
Loop, parse,List
FileAppend, %A_LoopField%, SongList.txt
playlistexit:
return

;;;;;;;
Lyrics:
;;;;;;;
inputbox, songn, Lyric Search,,,200,100,,,,,Song Name
run http://www.google.ca/search?q=%songn%&oi=navquery_searchbox&sa=X&as_sitesearch=songmeanings.net&hl=en
if errorlevel
Goto Back
Return

;;;;;;;;;
Download:
;;;;;;;;;
inputbox, dlwd, Song Search,,,200,100,,,,,Song Name
run http://skreemr.com/results.jsp?q=%dlwd%
if errorlevel
Goto Back
Return

;;;;;
Help:
;;;;;
Msgbox,If This is your first time running TP3,`nPlease Click 'PlayList' first`nIt may take a while to load your playlist so please be patient.
Msgbox, Windows Key + Up Increases Volume`nWindows Key + Down Decreases Volume`nMade by Abhishek Regmi
return


;;;;;;;
Volume:
;;;;;;;
#down::
if Volume<=10
{
volume=0
}
else
{
Volume-=10
}
SoundSet, %Volume%
return
#up::
if Volume>=90
{
volume=100
}
else
{
Volume+=10
}
SoundSet, %volume%
return


;;;;;;;;;
GuiClose:
;;;;;;;;;
If FirstRun!=False
{
RegWrite, REG_SZ, HKEY_CURRENT_USER, Software\TP3, FirstRun, False
}
RegWrite, REG_SZ, HKEY_CURRENT_USER, Software\TP3, Volume, %volume%
ExitApp

Add a file named BG.Png to the folder that the file's located in for a background


Report this post
Top
  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 17 posts ]  Go to page Previous  1, 2

All times are UTC [ DST ]


Who is online

Users browsing this forum: specter333 and 11 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