- A search option, so when i search for a song, or artist it jumps to it without scrolling for hours (format will be 'Artist - Song')
- A scrollwheel, since i want to include for more than 100 options
- The Part with the song - command communication. So when i for example select song A it should write in the command Song1 instead of A
- When i press the X on the gui or esc it should not close the app, instead return to the beginning, so when i press CTRL+, again, the gui pops up again (I already tried return, GoTo and break without any luck)
Code: Select all
The splashtext part is only in for testing and will later be removed.
Please don't judge my code, since this is one of my first scripts and is mostly from other sources :roll:
loop
{
Songs:=
(
"
||
A|
B|
C
"
)
CMD_Song := x
^,::
sleep, 200
{
#SingleInstance, Force
Gui, New
Gui, Color, White
Gui, Margin, +20, +20
Gui, Add, DropdownList, xm ym w200 r100 sort vDDL gSubmit,% Songs
Gui, Add, Button, xm w200 h30 gDo_Something,Confirm!
Gui, Show, ,PlaySound
return
GuiClose:
ExitApp
Submit:
Gui, Submit, NoHide
return
Do_Something:
Gui, Submit,
CMD_Song = %DDL%
SplashTextOn ,110,, Song: %CMD_Song%
sleep, 1000
SplashTextOff
break
esc::ExitApp
}
return
}