AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

trying to make a desktop search for guitar tabs

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
eternalcold



Joined: 12 Jun 2008
Posts: 8

PostPosted: Thu Oct 15, 2009 4:17 am    Post subject: trying to make a desktop search for guitar tabs Reply with quote

Hey everyone, i am trying to make a desktop search for guitar tabs. However, i have gotten the gui and menu down, yet i am not sure where to head next.. I dont know how to get the items selected to turn into a variable. here is what i have so far
Code:
Gui, Add, Picture, x-8 y-8 w840 h440 , %A_WorkingDir%\background.jpg
Gui, Add, Picture, x2 y2 w530 h80 , %A_WorkingDir%\ug_logo.gif
Gui, Add, Edit, x12 y102 w130 h20 vBand, Band Name
Gui, Add, Edit, x12 y142 w130 h20 vSong, Song Name
Gui, Add, Button, x542 y12 w100 h50 , Search
Gui, Add, ListBox, x152 y92 w90 h90 multi vtype1, Type | -Tab | -Bass Tab | -Chords | -PowerTab | -Guitar Pro| -Video

Lesson| -Drum Tab
Gui, Add, ListBox, x252 y92 w90 h90 multi, Type 2 | -Whole Song | -Intro | -Solo | -Album
Gui, Add, ListBox, x352 y92 w90 h90 multi, Rating | -5 Stars| -4 Stars| -3 Stars| -2 Stars| -1 Star
Gui, Add, ListBox, x452 y92 w90 h90 multi, Level | -Novice | -Intermediate | -Advanced
Gui, Add, ListBox, x552 y92 w90 h90 multi, Tuning | -Standard | -Half-Step D| -B Tuning| -C Tuning| -D Tuning| -Drop A| -

Drop A#| -Drop B| -Drop C| -Drop C#| -Drop D| -Open C| -Open D| -Open E| -Open G|
Gui, Show, x234 y187 h191 w656, Ultimate-Guitar Tab Search
Return

ButtonSearch:
Gui, Submit
msgbox, , Selected, you selected %type1%

return


GuiClose:
ExitApp


Think you could give me a sample code to work with or point me in the right direction? (Sorry if this is a newb concept, i just couldnt get it from the help file.)

[Title edited. Please write descriptive titles for your topics. ~jaco0646]
Back to top
View user's profile Send private message
Guest






PostPosted: Thu Oct 15, 2009 5:14 am    Post subject: Reply with quote

u didnt put variables in all ListBox
example, vtype2...vRating...vLevel...vTuning
Back to top
txquestor



Joined: 22 Aug 2009
Posts: 294

PostPosted: Thu Oct 15, 2009 5:32 am    Post subject: Reply with quote

I'm guessing from your code you are ttrying to set up a desktop search based on the 5 parameters in your GUI.

Your vName variables will contain whatever items you selected in the dropdown lists.

1. concatenate the 5 vName variables into your search pattern using the
dot (.) method - look up variables and expressions & concatenate in the help file.

AllVars := vName1 . vName2 . vName3 . vName4 . vName5

2. Use RegExMatch command to search for whatever file you're looking for. OR

3, Use this type of search AttributeString := FileExist(FilePattern)
see IfExist for details

I also suggest searching the forum using the keywords "desktop" & "search"
do not use the quotes.

There are many desktop search scripts on the forum to get ideas from.
Example: one popular one is SEEK.

Once you have a better idea of what to do, then repost your script and ask for more help

Also to help you. Read & Study the following links
there is a wealth of information, how to's & examples.
http://www.autohotkey.com/forum/viewtopic.php?t=4986
http://www.autohotkey.com/forum/viewtopic.php?t=47791
http://www.autohotkey.com/docs/Tutorial.htm
http://www.autohotkey.com/docs/
http://www.autohotkey.com/docs/commands.htm

Have Fun Laughing
_________________

"Man's quest for knowledge is an expanding series whose limit is infinity"
Back to top
View user's profile Send private message
eternalcold



Joined: 12 Jun 2008
Posts: 8

PostPosted: Thu Oct 15, 2009 1:33 pm    Post subject: Reply with quote

Thank you so much, i will look into everything you have shown me ^_^
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group