
[Error]
//system,log,on
System,Error,Get,%data%
string,%FilePath%,Split,%data%,#$x,1
StrFormat,%File%,FILENAME,%FilePath%
IniRead,%SrtData%,%ProjectDir%\Error.srt,Script,%File% 
if,not,%SrtData%,=,,then
	string,%ErrLne%,Split,%data%,#$x,3
	string,%error%,Split,%srtdata%,#$c,1
	String,%pos%,Find,%ErrLne%,%error%
	if,%pos%,>,0,then
		string,%Elem%,Split,%srtdata%,#$c,2
		string,%Val%,Split,%srtdata%,#$c,3

		String,%pos%,Find,%Elem%,pscrollbox
		if,%pos%,>,0,then,interface,setIndex,%FilePath%,%Elem%,%Val%
				
		String,%pos%,Find,%Elem%,pCheckBox
		if,%pos%,>,0,then,interface,set,%FilePath%,%Elem%,%Val%
			
		String,%pos%,Find,%Elem%,pRadioButton
		if,%pos%,>,0,then,interface,set,%FilePath%,%Elem%,%Val%
			
		if,%Pos%,>,0,then,Message,DeactFunc,Msg
	End
else
	string,%Level%,Split,%data%,#$x,2
	if,%Level%,=,6,then
		iniwrite,%FilePath%,Main,Selected,false
		Update,Project
		Message,DeactSrt,MSG
	End
End



[Script]
Audio.srt=mpg123.exe,pScrollbox1,1
