본문 바로가기

Linux-related/PlayOnLinux

PlayOnLinux 스크립트 작성하기 - Chapter 7 : PlayOnLinux version3의 추가적인 예제

본 포스트는 원문 : http://www.playonlinux.com/en/dev-documentation-7.html
번역한 것으로 의미를 해치지 않는 선에서 적극적으로 의역한 것이다.

 

 

몇 가지 명령어

자유로운 프리젠테이션 :
POL_SetupWindow_free_presentation "Titre" "Message"

파일 다운로드
POL_SetupWindow_download "message" "Title" "URL"

"browse"버튼이 있는 텍스트 영역
POL_SetupWindow_browse "message" "Title" "Default Value"



프로세스가 끝날 때까지 기다리기

새로운 명령어입니다. PlayOnLinux가 프로세스 실행시간동안 기다리게하는 방법이 있습니다.

기본적으로, 여러분은 PlayOnLinux에게 이렇게 이야기 합니다. :
"내가 따로 이야기 해줄때까지 진행막대(waiting bar)하고 같이 "wait"창을 보여줘."


문법은 이렇습니다. :

POL_SetupWindow_wait_next_signal "message" "title"
command1...
command2...
POL_SetupWindow_detect_exit
POL_SetupWindow_...

예 :

POL_SetupWindow_wait_next_signal "Installation of Steam" "Steam"
wine "steam.exe"
POL_SetupWindow_detect_exit
POL_SetupWindow_message "Steam installed"