[INTERFACE]
DIALOG, "Создать скриншот страницы", 619, 102;
STATIC, "Путь к скриншоту", 8, 4, 92, 20;
EDIT, 104, 4, 400, 20, string Path;
BUTTON_PATH, "Выбрать путь", 508, 4, 100, 20, Path;
STATIC, "Название файла", 8, 28, 92, 20;
EDIT, 104, 28, 252, 20, string File;
STATIC, ".png", 360, 28, 24, 20;
BUTTON_OK, "Принять", 404, 52, 100, 20;
BUTTON_CANCEL, "Закрыть", 508, 52, 100, 20;
[END]

[APPEARANCE]
COLOR = 155, 125, 55;
SIZE_X = 10;
SIZE_Y =4;
[END]

[INFO]
[ENDL]>>File
[END]

[ASSOC_VAR]
File="Screen";
Path="C:\";
[END]
[FUNCTION_BODY]
function(string path, string file)
{
string All=path+file;
regexreplace(-1, #All, All, "\\", "/");
sendgetpython("web.save_screenshot(^'"+All+".png^')");
}
[END]

[CALL]
(Path, File)
[END]