Add(ListBox,5133318,896,63)
{
Width=781
Height=500
DataType=1
Point(doSendToBack)
Point(doBringToFront)
link(onClick,727478:doSplit,[])
}
Add(MainForm,2953706,945,364)
{
Width=800
Height=600
Font=[Times New Roman,10,0,0,204]
Caption="Super Gun"
}
Add(Image,12196706,231,791)
{
Width=781
Height=500
ViewStyle=4
Point(MouseX)
Point(MouseY)
link(onClick,3649263:doEvent1,[])
}
Add(Label,14418098,826,175)
{
Left=5
Top=510
Width=71
Height=20
Caption="X coordinat"
}
Add(Edit,15893336,378,728)
{
Left=90
Top=510
link(Str,582460:Var,[])
}
Add(Edit,1270632,378,798)
{
Left=235
Top=510
link(Str,16566667:Var,[])
}
Add(Label,5105408,833,182)
{
Left=155
Top=510
Width=72
Height=20
Caption="Y coordinat"
}
Add(Label,11549001,840,189)
{
Left=295
Top=510
Width=36
Height=20
Caption="Color"
}
Add(Edit,10217052,455,840)
{
Left=340
Top=510
Width=115
}
Add(Label,7286764,847,196)
{
Left=465
Top=510
Width=66
Height=20
Caption="Color HEX"
}
Add(Edit,456896,497,917)
{
Left=540
Top=510
Width=115
}
Add(Button,5812732,1008,203)
{
Left=5
Top=530
Width=110
Color=110
Caption="Select Window"
link(onClick,14302920:doEvent1,[])
}
Add(GlobalVar,1417608,14,28)
{
Name="Hwnd_selected_window"
}
Add(GlobalVar,180565,112,721)
{
Name="X_start_coordinate_click_in_window"
Data=Integer(0)
}
Add(GlobalVar,8358648,119,735)
{
Name="Y_start_coordinate_click_in_window"
Data=Integer(0)
}
Add(GlobalVar,6673626,357,28)
{
Name="X_end_coordinate_click_in_window"
}
Add(GlobalVar,1431240,357,42)
{
Name="Y_end_coordinate_click_in_window"
}
Add(PointHint,13137253,7,7)
{
Info=#21:глобальные переменные|
Frame=2
Transparent=0
VAlign=0
Width=561
Height=151
}
Add(Hub,14302920,1050,203)
{
OutCount=3
link(onEvent1,6041633:In,[(1071,209)(1071,195)])
link(onEvent2,14435126:In,[])
link(onEvent3,13848461:In,[(1071,223)(1071,237)])
}
Add(WinEnum,16185268,686,63)
{
link(onFindWindow,11195397:doStrCatDlm,[])
}
Add(StrCatDelim,11195397,742,63)
{
Delimiter="="
link(onStrCatDlm,5133318:doAdd,[])
link(Str2,16185268:Handle,[(755,51)(729,51)(729,105)(692,105)])
}
Add(LineBreak,2230834,805,84)
{
Caption="cleart list box"
link(Out,5133318:doClear,[(888,90)(888,76)])
Primary=[6041633,273,105]
}
Add(StrPart,727478,945,70)
{
Char="="
link(onSplit,14382786:doEvent1,[])
}
Add(GlobalVar,9287298,1029,63)
{
Name="Hwnd_selected_window"
}
Add(Hub,14382786,994,70)
{
link(onEvent1,9287298:doValue,[(1018,76)(1018,69)])
link(onEvent2,2537813:In,[(1018,83)(1018,90)])
}
Add(LineBreak,735619,798,105)
{
Caption="remove list box"
link(Out,5133318:doSendToBack,[])
Primary=[2537813,231,-21]
}
Add(LineBreak,13859007,805,126)
{
Caption="Show list box"
link(Out,5133318:doBringToFront,[(892,132)(892,118)])
Primary=[13848461,273,105]
}
Add(LineBreak,10281501,588,63)
{
Caption="Enum window"
link(Out,16185268:doEnum,[])
Primary=[14435126,490,147]
}
Add(Button,7032761,1008,301)
{
Left=215
Top=530
Width=165
Color=165
Caption="Copy picture from window"
link(onClick,8087904:doEvent1,[])
}
Add(InfoTip,2256537,574,7)
{
Info=#18:получаем Hwnd окна|42:присваиваем значение глобальной переменной|
Frame=2
Width=645
Height=151
}
Add(InfoTip,9340150,819,161)
{
Info=#15:Статичный текст|
Frame=2
Width=176
Height=74
}
Add(Img_Copy,16530783,105,791)
{
Width=781
Height=500
DrawSource=1
Point(Width)
Point(Height)
link(onCopy,13856011:doEvent1,[])
link(Source,1312278:Var,[])
link(X,180565:Var,[])
link(Y,8358648:Var,[])
link(Width,4067307:Var,[])
link(Height,6753579:Var,[])
}
Add(GlobalVar,1312278,105,707)
{
Name="Hwnd_selected_window"
}
Add(GlobalVar,4067307,126,749)
{
Name="width_copy_size"
Data=Integer(781)
}
Add(GlobalVar,6753579,133,763)
{
Name="height_copy_size"
Data=Integer(500)
}
Add(GlobalVar,5066285,161,28)
{
Name="X_start_coordinate_click_in_window"
Data=Integer(0)
}
Add(GlobalVar,535818,161,42)
{
Name="Y_start_coordinate_click_in_window"
Data=Integer(0)
}
Add(GlobalVar,13228160,161,70)
{
Name="height_copy_size"
Data=Integer(500)
}
Add(GlobalVar,1136513,161,56)
{
Name="width_copy_size"
Data=Integer(781)
}
Add(Button,10380820,1008,252)
{
Left=115
Top=530
Width=100
Color=100
Caption="Select Zone"
link(onClick,13035334:doEvent1,[])
}
Add(Timer,12474882,147,238)
{
Interval=20
Enable=1
Point(onStop)
link(onTimer,5597960:doReadKey,[])
link(onStop,13259594:doEvent1,[])
}
Add(If_else,9419645,406,238)
{
Op2=Integer(1)
link(onTrue,7611553:doNext,[])
}
Add(Keyboard,5597960,322,238)
{
Key=1
link(onReadKey,11976760:doData,[])
}
Add(ChangeMon,11976760,364,238)
{
Data=Integer(0)
link(onData,9419645:doCompare,[])
}
Add(GlobalVar,5495373,119,392)
{
Name="X_end_coordinate_click_in_window"
link(onValue,4347926:doData,[])
}
Add(GlobalVar,4345750,385,392)
{
Name="Y_end_coordinate_click_in_window"
link(onValue,1474544:In,[])
}
Add(DoData,14658140,63,322)
{
link(onEventData,1552980:doValue,[])
link(Data,12281467:Var,[])
}
Add(DoData,4804652,336,322)
{
link(onEventData,6563907:doValue,[])
link(Data,7219608:Var,[])
}
Add(MouseEvent,2105244,707,189)
{
}
Add(Counter,7611553,546,238)
{
Min=-1
Max=1
Default=-1
link(onNext,12819961:doEvent,[])
}
Add(IndexToChanel,12819961,588,238)
{
Count=3
link(onEvent1,2597785:In,[])
link(onEvent2,10148296:In,[])
}
Add(LineBreak,14394105,63,238)
{
Caption="Timer_on"
link(Out,12474882:doTimer,[])
Primary=[7785778,1036,21]
}
Add(LineBreak,9302361,63,259)
{
Caption="Timer_off"
link(Out,12474882:doStop,[(134,265)(134,251)])
Primary=[15317359,518,329]
}
Add(GlobalVar,1552980,119,322)
{
Name="X_start_coordinate_click_in_window"
Data=Integer(0)
link(onValue,4804652:doData,[])
}
Add(LineBreak,3570586,728,273)
{
Type=1
link(Data,3290313:Var2,[(734,260)(720,260)])
Primary=[7219608,-392,21]
}
Add(LineBreak,12438229,700,273)
{
Type=1
link(Data,2856753:Var2,[(706,267)(713,267)])
Primary=[12281467,-637,21]
}
Add(GlobalVar,6563907,385,322)
{
Name="Y_start_coordinate_click_in_window"
Data=Integer(0)
}
Add(DoData,6701770,63,392)
{
link(onEventData,5495373:doValue,[])
link(Data,9065041:Var,[])
}
Add(DoData,4347926,336,392)
{
link(onEventData,4345750:doValue,[])
link(Data,14934244:Var,[])
}
Add(GetDataEx,2856753,707,252)
{
link(Data,2105244:MouseX,[])
}
Add(LineBreak,10171071,665,273)
{
Type=1
link(Data,2856753:Var1,[(671,258)(704,258)(704,257)])
Primary=[9065041,-602,91]
}
Add(GetDataEx,3290313,714,252)
{
link(Data,2105244:MouseY,[])
}
Add(LineBreak,8099110,756,273)
{
Type=1
link(Data,3290313:Var3,[(762,257)])
Primary=[14934244,-420,91]
}
Add(LineBreak,1414986,21,322)
{
link(Out,14658140:doData,[])
Primary=[2597785,616,-84]
}
Add(LineBreak,12230834,21,392)
{
link(Out,6701770:doData,[])
Primary=[10148296,616,-147]
}
Add(Math,12489033,63,469)
{
OpType=1
ResultType=0
link(onResult,2711543:doValue,[])
link(Op1,2531419:Var,[])
link(Op2,9309185:Var,[])
}
Add(GlobalVar,9309185,70,448)
{
Name="X_start_coordinate_click_in_window"
Data=Integer(0)
}
Add(GlobalVar,2531419,63,427)
{
Name="X_end_coordinate_click_in_window"
}
Add(LineBreak,1546559,21,469)
{
link(Out,12489033:doOperation,[])
Primary=[1474544,567,-77]
}
Add(GlobalVar,2711543,133,469)
{
Name="width_copy_size"
Data=Integer(781)
link(onValue,8937816:doOperation,[])
}
Add(Math,8937816,280,469)
{
OpType=1
ResultType=0
link(onResult,15129806:doValue,[])
link(Op1,4822737:Var,[])
link(Op2,3332882:Var,[])
}
Add(GlobalVar,4822737,280,427)
{
Name="Y_end_coordinate_click_in_window"
}
Add(GlobalVar,3332882,287,441)
{
Name="Y_start_coordinate_click_in_window"
Data=Integer(0)
}
Add(GlobalVar,15129806,336,469)
{
Name="height_copy_size"
Data=Integer(500)
link(onValue,2293966:In,[])
}
Add(Math,359770,56,588)
{
OpType=1
ResultType=0
link(onResult,11893567:doValue,[])
link(Op1,15296245:Var,[])
link(Op2,7460056:CurrentLeft,[(69,572)(132,572)])
}
Add(LineBreak,10711957,14,588)
{
link(Out,359770:doOperation,[])
Primary=[2293966,448,-119]
}
Add(PosWindow,7460056,126,525)
{
link(Handle,11338740:Var,[])
}
Add(GlobalVar,11338740,126,490)
{
Name="Hwnd_selected_window"
}
Add(GlobalVar,15296245,56,539)
{
Name="X_start_coordinate_click_in_window"
Data=Integer(0)
}
Add(GlobalVar,11893567,105,588)
{
Name="X_start_coordinate_click_in_window"
Data=Integer(0)
link(onValue,2075397:doOperation,[])
}
Add(Math,2075397,315,588)
{
OpType=1
ResultType=0
link(onResult,10271806:doValue,[])
link(Op1,4906374:Var,[])
link(Op2,7460056:CurrentTop,[(328,572)(139,572)])
}
Add(GlobalVar,4906374,315,539)
{
Name="Y_start_coordinate_click_in_window"
Data=Integer(0)
}
Add(GlobalVar,10271806,364,588)
{
Name="Y_start_coordinate_click_in_window"
Data=Integer(0)
link(onValue,15317359:In,[])
}
Add(Hub,8087904,1057,301)
{
link(onEvent1,6082033:In,[])
link(onEvent2,12077917:In,[(1078,314)(1078,328)])
}
Add(LineBreak,7210281,147,819)
{
Caption="clear_image"
link(Out,12196706:doClear,[(224,825)(224,804)])
Primary=[6082033,938,-518]
}
Add(LineBreak,16315008,14,791)
{
Caption="copy_image"
link(Out,16530783:doCopy,[])
Primary=[12077917,1071,-469]
}
Add(InfoTip,3383449,7,161)
{
Info=#76:получаем координаты левого клика два раза и производим некооторые вычисления|
Frame=2
Width=806
Height=480
}
Add(InfoTip,2406526,1001,161)
{
Info=#15:Всякие кнопочки|
Frame=2
Width=218
Height=263
}
Add(Hub,3649263,287,791)
{
OutCount=3
link(onEvent1,15893336:doText,[(322,797)(322,734)])
link(onEvent2,1270632:doText,[])
link(onEvent3,8243058:doGetPixel,[(368,811)(368,916)])
}
Add(LineBreak,5099637,273,868)
{
Type=1
link(Data,6415458:Var2,[])
Primary=[16566667,105,-98]
}
Add(LineBreak,12344981,189,868)
{
Type=1
link(Data,12922204:Var1,[(195,845)])
Primary=[582460,189,-168]
}
Add(Img_GetPoint,8243058,378,910)
{
link(onGetPixel,9158854:doEvent1,[])
link(Bitmap,14447484:Var,[])
link(X,1376266:Var,[])
link(Y,13284403:Var,[])
}
Add(LineBreak,7311061,154,868)
{
Type=1
link(Data,14035981:Var2,[])
Primary=[14447484,224,-28]
}
Add(GetDataEx,12922204,224,840)
{
Angle=1
link(Data,12196706:MouseX,[(244,845)])
}
Add(LineBreak,3940427,224,868)
{
Type=1
link(Data,12922204:Var2,[])
Primary=[1376266,161,14]
}
Add(GetDataEx,6415458,273,840)
{
Angle=3
link(Data,12196706:MouseY,[(251,845)])
}
Add(LineBreak,16050334,308,868)
{
Type=1
link(Data,6415458:Var3,[(314,845)])
Primary=[13284403,84,14]
}
Add(Hub,9158854,427,910)
{
link(onEvent1,10217052:doText,[(450,916)(450,846)])
link(onEvent2,1455362:doConvert,[])
}
Add(Convertor,1455362,455,917)
{
Mode=6
Digits=6
link(onResult,456896:doText,[])
}
Add(Hub,13035334,1057,252)
{
link(onEvent1,447482:In,[])
link(onEvent2,7785778:In,[])
}
Add(LineBreak,10000207,826,378)
{
Caption="Minimize_my_prog"
link(Out,2953706:doMinimize,[])
Primary=[447482,273,-126]
}
Add(LineBreak,3156521,448,252)
{
Caption="Reset_counter"
link(Out,7611553:doReset,[])
Primary=[2747793,-231,-7]
}
Add(Hub,13259594,189,245)
{
link(onEvent1,2747793:In,[])
link(onEvent2,11929204:In,[(210,258)(210,265)])
}
Add(LineBreak,9922400,826,364)
{
Caption="Restore_my_prog"
link(Out,2953706:doRestore,[(932,370)(932,377)])
Primary=[11929204,-609,-105]
}
Add(InfoTip,5098811,7,644)
{
Info=#19:операции с графикой|
Frame=2
Width=652
Height=326
}
Add(InfoTip,9197719,819,238)
{
Info=#13:Главная форма|
Frame=2
Width=176
Height=186
}
Add(Button,11317882,1008,343)
{
Left=380
Top=530
Color=530
Caption="Save"
link(onClick,5745148:In,[])
}
Add(PictureStream,2130010,917,497)
{
link(onLoad,11026062:In,[])
link(Bitmap,9732646:Var,[])
}
Add(SDialog,7824495,868,504)
{
Filter="jpeg|*.jpg"
link(onExecute,2130010:doSave,[])
}
Add(GetDataEx,14035981,154,840)
{
link(Data,12196706:ImageBitmap,[(160,842)(237,842)])
}
Add(LineBreak,10776761,112,868)
{
Type=1
link(Data,14035981:Var3,[(118,845)])
Primary=[9732646,812,-399]
}
Add(LineBreak,6105662,819,504)
{
Caption="Save"
link(Out,7824495:doExecute,[])
Primary=[5745148,231,-161]
}
Add(InfoTip,2504339,819,427)
{
Info=#32:Сохраняем картинку или открываем|
Frame=2
Width=176
Height=214
}
Add(Button,6840471,1008,385)
{
Left=435
Top=530
Color=530
Caption="Open"
link(onClick,705853:In,[])
}
Add(Hub,13856011,210,791)
{
InCount=2
OutCount=1
link(onEvent1,12196706:doLoad,[])
}
Add(ODialog,8819171,868,546)
{
Filter="Jpeg|*.jpg"
link(onExecute,2130010:doLoad,[(908,552)(908,503)])
}
Add(LineBreak,5553589,819,546)
{
Caption="Open"
link(Out,8819171:doExecute,[])
Primary=[705853,231,-161]
}
Add(LineBreak,11408226,147,798)
{
link(Out,13856011:doEvent2,[])
Primary=[11026062,812,-301]
}
Этот топик читают: Гость
Ответов: 11
Рейтинг: 0
|
|||
|
|||
карма: 1 |
| ||
файлы: 1 | code_35070.txt [11.2KB] [388] |
Ответов: 1343
Рейтинг: 31
|
|||
ммм..., вот поудобней, недавно делал ради примеру, не красиво но и смотреть туда особо не нужно, главное работает нормально
code_35073.txt РАБОТАЕТ ПО ХОТКЕЮ ALT+Z может кто поправить баг с выделением снизу вверх и слева на право |
|||
карма: 2 |
| ||
файлы: 1 | code_35073.txt [6.7KB] [376] |
2