0
디렉토리에서 임의의 파일을 사용합니다. 부팅하는 동안 설치 중에 임의의 사운드 파일을 재생하도록 설정할 수 있기를 바랍니다. 이 단지 열심히 목록에서 임의의 파일을 선택 할 수있는 방법 "기본"을 코딩NSIS는
Function SetUserOptionsPage
${Locate} "$InstDrvRE\Media\SoundFiles" "/L=F /M=*.mp3" "listsoundfiles"
StrCpy $IVO "$IVO|Random|None"
WriteINIStr "$PLUGINSDIR\settings.ini" "Field 6" "ListItems" "$IVO"
WriteINIStr "$PLUGINSDIR\XYfYk7xQ.dat" "Field 6" "State" "Default"
InstallOptions::initDialog "$PLUGINSDIR\settings.ini"
Pop $0
InstallOptions::show
Pop $0
Abort
Function End
Function listsoundfiles
${StrStrip} ".mp3" $R7 $R0
${If} $R7 == "Default.mp3"
StrCpy $LSF "$R0"
${Else}
StrCpy $LSF "$LSF|$R0"
${EndIf}
Push $0
FunctionEnd
Example Drop Down:
Default
Jazz
Rock
Metal
Random
None
그래서 대신을 변경할 수 있도록이 드롭 다운에있는 모든 사운드 파일을 저장하므로
는이 코드를 파일 상태로 저장 하시겠습니까?
dir에있는 파일의 양이 매우 많아서 각 사용 가능한 모든 파일에서 선택해야 할 수 있습니다.