AutoHotkey Community

It is currently May 27th, 2012, 12:14 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 4 posts ] 
Author Message
PostPosted: October 15th, 2009, 5:17 am 
Offline

Joined: June 12th, 2008, 4:14 am
Posts: 8
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]


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 15th, 2009, 6:14 am 
u didnt put variables in all ListBox
example, vtype2...vRating...vLevel...vTuning


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: October 15th, 2009, 6:32 am 
Offline

Joined: August 22nd, 2009, 11:23 pm
Posts: 294
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 :lol:

_________________
Image
"Man's quest for knowledge is an expanding series whose limit is infinity"


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 15th, 2009, 2:33 pm 
Offline

Joined: June 12th, 2008, 4:14 am
Posts: 8
Thank you so much, i will look into everything you have shown me ^_^


Report this post
Top
 Profile  
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: Apollo, Leef_me, Maestr0, Pulover, rjgatito, XstatyK and 19 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