All=$(yad --form --columns 2 --text "Please fill the form" \
--field 'Duration' '' --field "Y position" '' \
--field Height '' --field "X position" '' \
--field With '' --field Name '')
IFS=\| read Duration Y Height X With Name <<< "$All"
byzanz-record --duration="$Duration" --x="$X" --y="$Y" --width="$With" --height="$Height" "$Name.gif"