Исходник — ICQ клиент

http://bloggersss.e-vds.ru/wp-content/uploads/2012/02/icq-300x227.jpg

Скачать
----------------------------------------------------------------------------------------------------------------------------------
Исходник — Запись движений мышкой

http://bloggersss.e-vds.ru/wp-content/uploads/2012/02/download2.jpg

Скачать

Код:
global $arrx, $arry;
Код:
$arrx = $arry = array();
 
HotKey::add(false, VK_F2, 'curRec');
HotKey::add(false, VK_F3, 'curPlay');
 
function curRec(){
        if(c("spButton1")->enabled == true){
                global $timer, $arrx, $arry;
                $str = c("spButton1")->caption;
                if( preg_match("/Запись/", $str) ){
                        if(c("checkbox1")->checked){app::hide();}
                        array_splice($arrx, 0, count($arrx));
                        array_splice($arry, 0, count($arry));
                        if( preg_match("/[0-9]/", c("edit1")->text)){
                         $i = abs(c("edit1")->text);
                        }else{
                         $i = 1;
                        }
                        c("spButton2")->enabled = false;
                        c("edit1")->enabled = false;
                        c("edit2")->enabled = false;
                        c("checkbox1")->enabled = false;
                        c("spButton1")->caption = preg_replace("/Запись/", "Стоп", $str);
                        $timer = setTimer($i,
                        'global $arrx, $arry;
                         $arrx[] = cursor_pos_x();
                         $arry[] = cursor_pos_y();');
                }elseif( preg_match("/Стоп/", $str) ){
                        if(c("checkbox1")->checked){app::restore();}
                        $timer->stop();
                        c("spButton1")->caption = preg_replace("/Стоп/", "Запись", $str);
                        c("spButton2")->enabled = true;
                        c("edit1")->enabled = true;
                        c("edit2")->enabled = true;
                        c("checkbox1")->enabled = true;
                }
        }
}
 
function curPlay(){
        if(c("spButton2")->enabled == true){
                global $timer, $arrx, $arry;
                $str = c("spButton2")->caption;
                if( preg_match("/Воспроизвести/", $str) ){
                        if(c("checkbox1")->checked){app::hide();}
                        if( preg_match("/[0-9]/", c("edit2")->text)){
                                $i = abs(c("edit2")->text);
                        }else{
                                $i = 1;
                        }
                        c("spButton1")->enabled = false;
                        c("edit1")->enabled = false;
                        c("edit2")->enabled = false;
                        c("checkbox1")->enabled = false;
                        c("spButton2")->caption = preg_replace("/Воспроизвести/", "Стоп", $str);
                        $timer = setTimer($i,
                        'global $arrx, $arry;
                         $posx = each($arrx);
                         $posy = each($arry);
                         setCursorPos($posx[value],$posy[value]);
                         if(!isset($posx[1])){
                          if(c("checkbox1")->checked){app::restore();}
                          global $timer;
                          $timer->stop();
                          $str = c("spButton2")->caption;
                          c("spButton2")->caption = preg_replace("/Стоп/", "Воспроизвести", $str);
                          reset($arrx);
                          reset($arry);
                          c("spButton1")->enabled = true;
                          c("edit1")->enabled = true;
                          c("edit2")->enabled = true;
                          c("checkbox1")->enabled = true;
                         }');
                }elseif( preg_match("/Стоп/", $str) ){
                        if(c("checkbox1")->checked){app::restore();}
                        $timer->stop();
                        c("spButton2")->caption = preg_replace("/Стоп/", "Воспроизвести", $str);
                        reset($arrx);
                        reset($arry);
                        c("spButton1")->enabled = true;
                        c("edit1")->enabled = true;
                        c("edit2")->enabled = true;
                        c("checkbox1")->enabled = true;
                }
        }
}

----------------------------------------------------------------------------------------------------------------------------------
Исходник — Paint

http://7image.ru/uploads/posts/2010-09/1283842074_paintscreen.gif

Скачать