But seriously looks can be deciving. This script is as easy as crap to use.
///////////////////////////////////////////////////////////////////
//Preview in browser script by Mr.Limbojello///////////////////////
///////////////////////////////////////////////////////////////////
//Argument0 = x to start the picture taking at/////////////////////
//Argument1 = the y to start taking picture at/////////////////////
//Argument2 = the width of the picture your taking a snapshot of///
//Argument3 = the height of the picture your taking a snapshot of//
///////////////////////////////////////////////////////////////////
direc=directory_create('C:\Documents and Settings\temp')
file=file_text_open_write('C:\Documents and Settings\temp\preview.html')
file_text_write_string(file,'<html>')
file_text_write_string(file,'<title>')
file_text_write_string(file,'Preview')
file_text_write_string(file,'</title>')
file_text_write_string(file,'<body>')
file_text_write_string(file,'<img src="pic.bmp" alt="pic">')
file_text_write_string(file,'</body>')
pic=screen_save_part('C:\Documents and Settings\temp\pic.bmp',argument0,argument1,argument2,argument3)
file_text_write_string(file,'</html>')
file_text_writeln(file)
file_text_close(file)
execute_shell('C:\Documents and Settings\temp\preview.html',0)Now there is an example that comes with it so here is the download link.
Link to example
Well have fun
-Johnny
Edited by Mr. Limbojello, 24 October 2006 - 08:25 PM.











