AutoHotkey Community

It is currently May 26th, 2012, 9:35 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 19 posts ]  Go to page Previous  1, 2
Author Message
 Post subject:
PostPosted: August 3rd, 2009, 7:57 pm 
Offline

Joined: July 29th, 2009, 10:47 pm
Posts: 48
Links have been updated :).

_________________
Click here to get free games and computer supplies! It's easy and fun! CLICK ME!

EasyAHK


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: August 3rd, 2009, 9:55 pm 
Offline

Joined: April 4th, 2008, 8:15 pm
Posts: 538
Location: Canada
Tested on firefox, allows more than 15 words, and makes script narrow

Code:
Gui Show, x400 y188 h130 w291, Lyric Searcher
Gui Add, Edit, vLyrics x0 y40 h20 w300
Gui Add, Button, Default x105 y80 h40 w80 , Search!
Gui Add, Text, x110 y10 w250 h30 , Lyric Searcher
F2::
Esc:: ExitApp
return

ButtonSearch!:
Gui Submit, NoHide
run http://www.lyricsdrive.com/search/?qr=%Lyrics%
return

GuiClose:
ExitApp


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: August 12th, 2009, 2:20 am 
Offline

Joined: April 18th, 2008, 7:57 am
Posts: 1390
Location: The Interwebs
I'd like to point out that instead of using StringSplit to remove spaces and then splicing it back together, you can just do
Code:
StringReplace, OutVariable, InVariable, %A_Space%, +, All

Which will automatically replace all spaces with pluses. This also removes the 15-word limit.

Lyricsdrive.com looks like a good site though, I've been searching for a good lyrics site to use for something that does the exact opposite of yours, downloading lyrics for a given song title/artist.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: August 12th, 2009, 3:03 am 
Offline

Joined: July 29th, 2009, 10:47 pm
Posts: 48
Krogdor wrote:
I'd like to point out that instead of using StringSplit to remove spaces and then splicing it back together, you can just do
Code:
StringReplace, OutVariable, InVariable, %A_Space%, +, All

Which will automatically replace all spaces with pluses. This also removes the 15-word limit.

Lyricsdrive.com looks like a good site though, I've been searching for a good lyrics site to use for something that does the exact opposite of yours, downloading lyrics for a given song title/artist.


Nice one! Well, this script was made before I even knoew what StringReplace was, so it's far from perfect. I was just getting used to StringSplit. Thanks for the tip though :).

_________________
Click here to get free games and computer supplies! It's easy and fun! CLICK ME!

EasyAHK


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

All times are UTC [ DST ]


Who is online

Users browsing this forum: Google [Bot], MSN [Bot] 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