string files[], lines[], buf, wrk, ProjectDir, OutputFile; int n, ret; if(schematic) schematic(S) wrk=S.name; if(board) board(B) wrk=B.name; ProjectDir=filedir(wrk); dlgMessageBox( "Project directory = " + ProjectDir ); OutputFile = ProjectDir + "screensize.txt"; dlgMessageBox( "OutputFile = " + OutputFile ); n = fileglob(files, "/usr/sbin/"); if( n > 0 ) { dlgMessageBox( "linux" ); ret = system( "xdpyinfo | awk '/dimensions/{print $2}' > " + OutputFile ); if( ret == 0 ) { int nLines = fileread(lines, OutputFile); for( int i=0; i 0 ) { dlgMessageBox( "windows" ); ret = system( "cmd.exe /c wmic desktopmonitor get screenheight > \"" + OutputFile + "\"" ); if( ret == 0 ) { int nLines = fileread(lines, OutputFile); for( int i=0; i