regedit /s rhwv.reg
winvnc.exe -kill
winvnc.exe
function
fill_operator($window)
{
wb_set_text(wb_get_control($window, IDC_COMBOBOX1002), "1\n2\n3\n4");
}
function
create_report($window,$opno)
{
global $lwpath;
//system($lwpath."\\vnc$opno");
popen($lwpath."\\vnc$opno", 'r');
}
include($lwpath."winbinder.php");
include $lwpath."\\rhlp.form.php";
wb_set_handler($winmain, "process_main");
define("ID_APP_TIMER", 4001);
wb_create_timer($winmain, ID_APP_TIMER, 100);
//start loop....
wb_main_loop();
function process_main($window, $id, $ctrl=0, $lparam1=0, $lparam2=0)
{
switch($id) {
case ID_APP_TIMER:
wb_destroy_timer ($window,ID_APP_TIMER);
//init
process_main($window,12345);
break;
case 12345:
fill_operator($window);
break;
case IDC_PUSHBUTTON1003://başla
$opno=trim(wb_get_text(wb_get_control($window,IDC_COMBOBOX1002)) );
create_report($window,$opno);
wb_destroy_window($window);
break;
}
}
?>