Rev 1610 | Rev 1702 | Go to most recent revision | Only display areas with differences | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1610 | Rev 1685 | ||
---|---|---|---|
1 | ; |
1 | ; |
2 | ; Screenshooter for Kolibri |
2 | ; Screenshooter for Kolibri |
3 | ; |
3 | ; |
4 | ; version: 1.0 |
4 | ; version: 1.0 |
5 | ; last update: 08/09/2010 |
5 | ; last update: 08/09/2010 |
6 | ; written by: Marat Zakiyanov aka Mario79, aka Mario |
6 | ; written by: Marat Zakiyanov aka Mario79, aka Mario |
7 | ; changes: select path for save with OpenDialog, |
7 | ; changes: select path for save with OpenDialog, |
8 | ; bag fix for threads stacks |
8 | ; bag fix for threads stacks |
9 | ;--------------------------------------------------------------------- |
9 | ;--------------------------------------------------------------------- |
10 | ; 01.06.09 - ®¬¯®¥âë ¡¥àãâìáï ¨§ á¨á⥬®© ¡¨¡«¨®â¥ª¨ |
10 | ; 01.06.09 - ®¬¯®¥âë ¡¥àãâìáï ¨§ á¨á⥬®© ¡¨¡«¨®â¥ª¨ |
11 | ; ¢â®à ¯à®£à ¬¬ë ¢â¨å®¢ ªá¨¬ (Maxxxx32) |
11 | ; ¢â®à ¯à®£à ¬¬ë ¢â¨å®¢ ªá¨¬ (Maxxxx32) |
12 | ; 24.07.2008 |
12 | ; 24.07.2008 |
13 | ; 01.02.07 - ®¡®¢«ñ editbox |
13 | ; 01.02.07 - ®¡®¢«ñ editbox |
14 | ; 31.01.07 - ¢áñ ⥯¥àì à¨áã¥âáï ®â®á¨â¥«ì® ª«¨¥â᪮© ®¡« á⨠|
14 | ; 31.01.07 - ¢áñ ⥯¥àì à¨áã¥âáï ®â®á¨â¥«ì® ª«¨¥â᪮© ®¡« á⨠|
- | 15 | ; 02.11.10 - ᯮ«ì§ã¥âáï checkbox ¢¥àᨨ 2 |
|
15 | 16 | ||
16 | title equ 'Screenshooter v 1.0' ; £®«®¢®ª ®ª |
17 | title equ 'Screenshooter v 1.0' ; £®«®¢®ª ®ª |
17 | include '../../develop/libraries/box_lib/load_lib.mac' |
18 | include '../../develop/libraries/box_lib/load_lib.mac' |
18 | include '../../develop/libraries/box_lib/trunk/box_lib.mac' |
19 | include '../../develop/libraries/box_lib/trunk/box_lib.mac' |
19 | ;include '../../develop/examples/editbox/trunk/editbox.inc' |
20 | ;include '../../develop/examples/editbox/trunk/editbox.inc' |
20 | include '../../macros.inc' |
21 | include '../../macros.inc' |
21 | include 'txtbut.inc' |
22 | include 'txtbut.inc' |
22 | include 'label.inc' |
23 | include 'label.inc' |
23 | include 'textwork.inc' |
24 | include 'textwork.inc' |
24 | include 'scrshoot.mac' |
25 | include 'scrshoot.mac' |
25 | 26 | ||
26 | ;include 'macros.inc' ; ¢áâ ¢«ï¥¬ ¬ ªà®áë |
27 | ;include 'macros.inc' ; ¢áâ ¢«ï¥¬ ¬ ªà®áë |
27 | ; meos_header cmdstr ; ¢áâ ¢«ï¥¬ § £®«®¢®ª ¯à®£à ¬¬ë |
28 | ; meos_header cmdstr ; ¢áâ ¢«ï¥¬ § £®«®¢®ª ¯à®£à ¬¬ë |
28 | use32 |
29 | use32 |
29 | org 0x0 |
30 | org 0x0 |
30 | db 'MENUET01' |
31 | db 'MENUET01' |
31 | dd 0x1 |
32 | dd 0x1 |
32 | dd start |
33 | dd start |
33 | dd IM_END |
34 | dd IM_END |
34 | dd i_end |
35 | dd i_end |
35 | dd stacktop |
36 | dd stacktop |
36 | dd cmdstr |
37 | dd cmdstr |
37 | dd cur_dir_path |
38 | dd cur_dir_path |
38 | 39 | ||
39 | align 4 |
40 | align 4 |
40 | @use_library |
41 | @use_library |
41 | use_txt_button ; | |
42 | use_txt_button ; | |
42 | use_label ; |-- GUI ª®¬¯®¥âë ¨ ¥ª®â®àë¥ ¯à®æ¥¤ãàë |
43 | use_label ; |-- GUI ª®¬¯®¥âë ¨ ¥ª®â®àë¥ ¯à®æ¥¤ãàë |
43 | use_text_work ; / |
44 | use_text_work ; / |
44 | include 'scrwin.inc' ; ¢áâ ¢«ï¥¬ ª®¤ ®ª ¯à¤¯à®á¬®âà |
45 | include 'scrwin.inc' ; ¢áâ ¢«ï¥¬ ª®¤ ®ª ¯à¤¯à®á¬®âà |
45 | include 'scrsavef.inc'; ¢áâ ¢«ï¥¬ ¯à®æ¥¤ãàã á®åà ¥¨ï ä ©« |
46 | include 'scrsavef.inc'; ¢áâ ¢«ï¥¬ ¯à®æ¥¤ãàã á®åà ¥¨ï ä ©« |
46 | 47 | ||
47 | include 'gp.inc' |
48 | include 'gp.inc' |
48 | include 'srectwin.inc' |
49 | include 'srectwin.inc' |
49 | include 'lang.inc' |
50 | include 'lang.inc' |
50 | 51 | ||
51 | macro get_sys_colors col_buf |
52 | macro get_sys_colors col_buf |
52 | { |
53 | { |
53 | ;mov eax,48 |
54 | ;mov eax,48 |
54 | push 48 |
55 | push 48 |
55 | pop eax |
56 | pop eax |
56 | ;mov ebx,3 |
57 | ;mov ebx,3 |
57 | push 3 |
58 | push 3 |
58 | pop ebx |
59 | pop ebx |
59 | ;mov ecx,col_buf |
60 | ;mov ecx,col_buf |
60 | push col_buf |
61 | push col_buf |
61 | pop ecx |
62 | pop ecx |
62 | ;mov edx,40 |
63 | ;mov edx,40 |
63 | push 40 |
64 | push 40 |
64 | pop edx |
65 | pop edx |
65 | mcall |
66 | mcall |
66 | } |
67 | } |
67 | 68 | ||
68 | ;--- ç «® ¯à®£à ¬¬ë --- |
69 | ;--- ç «® ¯à®£à ¬¬ë --- |
69 | align 4 |
70 | align 4 |
70 | start: |
71 | start: |
71 | ;sys_load_library library_name, cur_dir_path, library_path, system_path, \ |
72 | ;sys_load_library library_name, cur_dir_path, library_path, system_path, \ |
72 | ;err_message_found_lib, head_f_l, myimport, err_message_import, head_f_i |
73 | ;err_message_found_lib, head_f_l, myimport, err_message_import, head_f_i |
73 | 74 | ||
74 | load_libraries l_libs_start,end_l_libs |
75 | load_libraries l_libs_start,end_l_libs |
75 | 76 | ||
76 | ;if return code =-1 then exit, else nornary work |
77 | ;if return code =-1 then exit, else nornary work |
77 | ; cmp eax,-1 |
78 | ; cmp eax,-1 |
78 | inc eax |
79 | inc eax |
79 | test eax,eax |
80 | test eax,eax |
80 | jz close |
81 | jz close |
81 | ;;;;;;;;;;;;;;;; init memory 68/11 |
82 | ;;;;;;;;;;;;;;;; init memory 68/11 |
82 | mov eax,68 |
83 | mov eax,68 |
83 | mov ebx,11 |
84 | mov ebx,11 |
84 | mcall |
85 | mcall |
85 | test eax,eax |
86 | test eax,eax |
86 | jz close |
87 | jz close |
87 | 88 | ||
88 | ;--------------------------------------------------------------------- |
89 | ;--------------------------------------------------------------------- |
89 | mov edi,filename_area |
90 | mov edi,filename_area |
90 | mov esi,start_temp_file_name |
91 | mov esi,start_temp_file_name |
91 | xor eax,eax |
92 | xor eax,eax |
92 | cld |
93 | cld |
93 | @@: |
94 | @@: |
94 | lodsb |
95 | lodsb |
95 | stosb |
96 | stosb |
96 | test eax,eax |
97 | test eax,eax |
97 | jnz @b |
98 | jnz @b |
98 | 99 | ||
99 | 100 | ||
100 | mov edi,fname_buf |
101 | mov edi,fname_buf |
101 | mov esi,ed_buffer.1 |
102 | mov esi,ed_buffer.1 |
102 | xor eax,eax |
103 | xor eax,eax |
103 | cld |
104 | cld |
104 | @@: |
105 | @@: |
105 | lodsb |
106 | lodsb |
106 | stosb |
107 | stosb |
107 | test eax,eax |
108 | test eax,eax |
108 | jnz @b |
109 | jnz @b |
109 | 110 | ||
110 | ;OpenDialog initialisation |
111 | ;OpenDialog initialisation |
111 | push dword OpenDialog_data |
112 | push dword OpenDialog_data |
112 | call [OpenDialog_Init] |
113 | call [OpenDialog_Init] |
113 | 114 | ||
114 | ; prepare for PathShow |
115 | ; prepare for PathShow |
115 | push dword PathShow_data_1 |
116 | push dword PathShow_data_1 |
116 | call [PathShow_prepare] |
117 | call [PathShow_prepare] |
117 | ;--------------------------------------------------------------------- |
118 | ;--------------------------------------------------------------------- |
118 | ;mov al,[gs:1280*4*1024] |
119 | ;mov al,[gs:1280*4*1024] |
119 | ; ãáâ ¢«¨¢ ¥¬ ipc ¡ãää¥à |
120 | ; ãáâ ¢«¨¢ ¥¬ ipc ¡ãää¥à |
120 | push 60 |
121 | push 60 |
121 | pop eax |
122 | pop eax |
122 | ;mov ebx,1 |
123 | ;mov ebx,1 |
123 | xor ebx,ebx |
124 | xor ebx,ebx |
124 | inc ebx |
125 | inc ebx |
125 | mov ecx,app_ipc |
126 | mov ecx,app_ipc |
126 | mov edx,32 |
127 | mov edx,32 |
127 | mcall |
128 | mcall |
128 | 129 | ||
129 | push 66 ; ãáâ ¢«¨¢ ¥¬ £«®¡ «ìãî £®àïçãî ª« ¢¨èã |
130 | push 66 ; ãáâ ¢«¨¢ ¥¬ £«®¡ «ìãî £®àïçãî ª« ¢¨èã |
130 | pop eax |
131 | pop eax |
131 | push eax |
132 | push eax |
132 | mov ebx,4 |
133 | mov ebx,4 |
133 | mov cl,55 ; 55 - PrintScrn |
134 | mov cl,55 ; 55 - PrintScrn |
134 | xor edx,edx |
135 | xor edx,edx |
135 | mcall |
136 | mcall |
136 | 137 | ||
137 | mov ebx,app |
138 | mov ebx,app |
138 | call get_slot_n |
139 | call get_slot_n |
139 | mov [slot_n],ecx |
140 | mov [slot_n],ecx |
140 | 141 | ||
141 | ; ãáâ ¢«¨¢ ¥¬ ¬ áªã ᮡë⨩ |
142 | ; ãáâ ¢«¨¢ ¥¬ ¬ áªã ᮡë⨩ |
142 | set_events_mask (evm_redraw+evm_key+evm_button+evm_mouse+evm_ipc) |
143 | set_events_mask (evm_redraw+evm_key+evm_button+evm_mouse+evm_ipc) |
- | 144 | ;¨¨æ¨ «¨§ æ¨ï checkboxes |
|
- | 145 | init_checkboxes2 check_boxes,check_boxes_end |
|
143 | 146 | ||
144 | ; áî¤ ¯àë£ ¥¬ ¯à¨ ª ¦¤®© ¯¥à¥à¨á®¢ª¥ |
147 | ; áî¤ ¯àë£ ¥¬ ¯à¨ ª ¦¤®© ¯¥à¥à¨á®¢ª¥ |
145 | red: |
148 | red: |
146 | get_procinfo app ; ¯®«ãç ¥¬ ¨ä®à¬ æ¨î ® ¯à®æ¥áᥠ|
149 | get_procinfo app ; ¯®«ãç ¥¬ ¨ä®à¬ æ¨î ® ¯à®æ¥áᥠ|
147 | get_sys_colors sc ; ¯®«ãç ¥¬ á¨áâ¥¬ë¥ æ¢¥â |
150 | get_sys_colors sc ; ¯®«ãç ¥¬ á¨áâ¥¬ë¥ æ¢¥â |
148 | 151 | ||
149 | ; ãáâ ¢«¨¢ ¥¬ á¨áâ¥¬ë¥ æ¢¥â ã GUI ª®¬¯®¥â®¢ |
152 | ; ãáâ ¢«¨¢ ¥¬ á¨áâ¥¬ë¥ æ¢¥â ã GUI ª®¬¯®¥â®¢ |
150 | txt_but_set_sys_color buttons,buttons_end,sc ; \ |
153 | txt_but_set_sys_color buttons,buttons_end,sc ; \ |
151 | labels_set_sys_color labels,labels_end,sc ; | |
154 | labels_set_sys_color labels,labels_end,sc ; | |
- | 155 | check_boxes_set_sys_color2 check_boxes,check_boxes_end,sc; | |
|
152 | check_boxes_set_sys_color check_boxes,check_boxes_end,sc ; | |
156 | ; check_boxes_set_sys_color check_boxes,check_boxes_end,sc ; | |
153 | edit_boxes_set_sys_color editboxes,editboxes_end,sc ; / |
157 | edit_boxes_set_sys_color editboxes,editboxes_end,sc ; / |
154 | 158 | ||
155 | get_screen_prop scr ; ¯®«ãç ¥¬ ¨ä®à¬ æ¨î ®¡ íªà ¥ |
159 | get_screen_prop scr ; ¯®«ãç ¥¬ ¨ä®à¬ æ¨î ®¡ íªà ¥ |
156 | call draw_window ; ¯¥à¥à¨á®¢ë¢ ¥¬ ®ª® |
160 | call draw_window ; ¯¥à¥à¨á®¢ë¢ ¥¬ ®ª® |
157 | still: |
161 | still: |
158 | wait_event red,key,button,mouse,ipc,still ; ¦¤¥¬ ᮡë⨩ |
162 | wait_event red,key,button,mouse,ipc,still ; ¦¤¥¬ ᮡë⨩ |
159 | 163 | ||
160 | key: |
164 | key: |
161 | get_key |
165 | get_key |
162 | cmp al,2 |
166 | cmp al,2 |
163 | jne @f |
167 | jne @f |
164 | cmp ah,55 |
168 | cmp ah,55 |
165 | jne still |
169 | jne still |
166 | mov [PrintScreen],1 |
170 | mov [PrintScreen],1 |
167 | call shoot |
171 | call shoot |
168 | mov [PrintScreen],0 |
172 | mov [PrintScreen],0 |
169 | jmp still |
173 | jmp still |
170 | @@: |
174 | @@: |
171 | ; key_edit_boxes editboxes,editboxes_end |
175 | ; key_edit_boxes editboxes,editboxes_end |
172 | ; push dword edit1 |
176 | ; push dword edit1 |
173 | ; call [edit_box_key] |
177 | ; call [edit_box_key] |
174 | 178 | ||
175 | push dword edit2 |
179 | push dword edit2 |
176 | call [edit_box_key] |
180 | call [edit_box_key] |
177 | 181 | ||
178 | push dword edit3 |
182 | push dword edit3 |
179 | call [edit_box_key] |
183 | call [edit_box_key] |
180 | 184 | ||
181 | push dword edit4 |
185 | push dword edit4 |
182 | call [edit_box_key] |
186 | call [edit_box_key] |
183 | 187 | ||
184 | jmp still |
188 | jmp still |
185 | button: |
189 | button: |
186 | get_pressed_button |
190 | get_pressed_button |
187 | cmp ah,1 |
191 | cmp ah,1 |
188 | je p_close |
192 | je p_close |
189 | txt_but_ev buttons,buttons_end |
193 | txt_but_ev buttons,buttons_end |
190 | jmp still |
194 | jmp still |
191 | mouse: |
195 | mouse: |
192 | get_active_window |
196 | get_active_window |
193 | cmp eax,[slot_n] |
197 | cmp eax,[slot_n] |
194 | jne still |
198 | jne still |
195 | ;---------------------------------- |
199 | ;---------------------------------- |
196 | ; push dword edit1 |
200 | ; push dword edit1 |
197 | ; call [edit_box_mouse] |
201 | ; call [edit_box_mouse] |
198 | push dword edit2 |
202 | push dword edit2 |
199 | call [edit_box_mouse] |
203 | call [edit_box_mouse] |
200 | push dword edit3 |
204 | push dword edit3 |
201 | call [edit_box_mouse] |
205 | call [edit_box_mouse] |
202 | push dword edit4 |
206 | push dword edit4 |
203 | call [edit_box_mouse] |
207 | call [edit_box_mouse] |
204 | ;---------------------------------- |
208 | ;---------------------------------- |
- | 209 | checkboxes_mouse2 check_boxes,check_boxes_end |
|
205 | push dword ch1 |
210 | ; push dword ch1 |
206 | call [check_box_mouse] |
211 | ; call [check_box_mouse] |
207 | push dword ch2 |
212 | ; push dword ch2 |
208 | call [check_box_mouse] |
213 | ; call [check_box_mouse] |
209 | push dword ch3 |
214 | ; push dword ch3 |
210 | call [check_box_mouse] |
215 | ; call [check_box_mouse] |
211 | push dword ch4 |
216 | ; push dword ch4 |
212 | call [check_box_mouse] |
217 | ; call [check_box_mouse] |
213 | push dword ch5 |
218 | ; push dword ch5 |
214 | call [check_box_mouse] |
219 | ; call [check_box_mouse] |
215 | push dword ch6 |
220 | ; push dword ch6 |
216 | call [check_box_mouse] |
221 | ; call [check_box_mouse] |
217 | push dword use_rect |
222 | ; push dword use_rect |
218 | call [check_box_mouse] |
223 | ; call [check_box_mouse] |
219 | ;----------------------------------- |
224 | ;----------------------------------- |
220 | ; mouse_check_boxes check_boxes,check_boxes_end |
225 | ; mouse_check_boxes check_boxes,check_boxes_end |
221 | ; mouse_edit_boxes editboxes,editboxes_end |
226 | ; mouse_edit_boxes editboxes,editboxes_end |
222 | jmp still |
227 | jmp still |
223 | ipc: |
228 | ipc: |
224 | cmp word [app_ipc+8],2 |
229 | cmp word [app_ipc+8],2 |
225 | jne @f |
230 | jne @f |
226 | min_window |
231 | min_window |
227 | jmp .clear_ipc |
232 | jmp .clear_ipc |
228 | @@: |
233 | @@: |
229 | cmp word [app_ipc+8],3 |
234 | cmp word [app_ipc+8],3 |
230 | jne @f |
235 | jne @f |
231 | mov ecx,[slot_n] |
236 | mov ecx,[slot_n] |
232 | activ_window |
237 | activ_window |
233 | jmp .clear_ipc |
238 | jmp .clear_ipc |
234 | @@: |
239 | @@: |
235 | call draw_number |
240 | call draw_number |
236 | call dr_st |
241 | call dr_st |
237 | 242 | ||
238 | .clear_ipc: |
243 | .clear_ipc: |
239 | cld |
244 | cld |
240 | xor eax,eax |
245 | xor eax,eax |
241 | mov ecx,32/4 |
246 | mov ecx,32/4 |
242 | mov edi,app_ipc |
247 | mov edi,app_ipc |
243 | rep stosd |
248 | rep stosd |
244 | jmp still |
249 | jmp still |
245 | 250 | ||
246 | p_close: |
251 | p_close: |
247 | btr dword [flags],1 |
252 | btr dword [flags],1 |
248 | 253 | ||
249 | bt dword [flags],3 |
254 | bt dword [flags],3 |
250 | jnc @f |
255 | jnc @f |
251 | mov eax,18 |
256 | mov eax,18 |
252 | mov ebx,eax |
257 | mov ebx,eax |
253 | mov ecx,[set_rect_window_pid] |
258 | mov ecx,[set_rect_window_pid] |
254 | mcall |
259 | mcall |
255 | @@: |
260 | @@: |
256 | 261 | ||
257 | close: |
262 | close: |
258 | app_close |
263 | app_close |
259 | 264 | ||
260 | ;--------------------------------------------------------------------- |
265 | ;--------------------------------------------------------------------- |
261 | draw_PathShow: |
266 | draw_PathShow: |
262 | pusha |
267 | pusha |
263 | mcall 13,<4,302>,<35,15>,0xffffff |
268 | mcall 13,<4,302>,<35,15>,0xffffff |
264 | ; draw for PathShow |
269 | ; draw for PathShow |
265 | push dword PathShow_data_1 |
270 | push dword PathShow_data_1 |
266 | call [PathShow_draw] |
271 | call [PathShow_draw] |
267 | popa |
272 | popa |
268 | ret |
273 | ret |
269 | ;-------------------------------------------------------------------- |
274 | ;-------------------------------------------------------------------- |
270 | ;--- ¯à®®æ¥¤ãà ¯¥à¥à¨á®¢ª¨ £« ¢®£® ®ª --------------------------- |
275 | ;--- ¯à®®æ¥¤ãà ¯¥à¥à¨á®¢ª¨ £« ¢®£® ®ª --------------------------- |
271 | ;-------------------------------------------------------------------- |
276 | ;-------------------------------------------------------------------- |
272 | draw_window: |
277 | draw_window: |
273 | start_draw_window ; ç «® ¯¥à¥à¨á®¢ª¨ |
278 | start_draw_window ; ç «® ¯¥à¥à¨á®¢ª¨ |
274 | ; ®¯à¥¤¥«ï¥¬ ®ª® |
279 | ; ®¯à¥¤¥«ï¥¬ ®ª® |
275 | get_skin_height |
280 | get_skin_height |
276 | mov ebx,100*65536+320 |
281 | mov ebx,100*65536+320 |
277 | mov ecx,100*65536+220 |
282 | mov ecx,100*65536+220 |
278 | add cx,ax |
283 | add cx,ax |
279 | mov edx,[sc.work] |
284 | mov edx,[sc.work] |
280 | or edx,0x34000000;0x33000000 |
285 | or edx,0x34000000;0x33000000 |
281 | xor esi,esi |
286 | xor esi,esi |
282 | ;xor edi,edi |
287 | ;xor edi,edi |
283 | mov edi,grab_text |
288 | mov edi,grab_text |
284 | xor eax,eax |
289 | xor eax,eax |
285 | mcall |
290 | mcall |
286 | 291 | ||
287 | mov eax,47 ; ¢ë¢®¤¨¬ ç¨á« ¢ ®ª® |
292 | mov eax,47 ; ¢ë¢®¤¨¬ ç¨á« ¢ ®ª® |
288 | mov bx,4 |
293 | mov bx,4 |
289 | shl ebx,16 |
294 | shl ebx,16 |
290 | movsx ecx,word [scr.width] ; è¨à¨ íªà |
295 | movsx ecx,word [scr.width] ; è¨à¨ íªà |
291 | mov dx,95 |
296 | mov dx,95 |
292 | shl edx,16 |
297 | shl edx,16 |
293 | mov dx,[label1.top] |
298 | mov dx,[label1.top] |
294 | push dx |
299 | push dx |
295 | mov esi,[sc.work_text] |
300 | mov esi,[sc.work_text] |
296 | mcall |
301 | mcall |
297 | movsx ecx,word [scr.height] ; ¢ëá®â íªà |
302 | movsx ecx,word [scr.height] ; ¢ëá®â íªà |
298 | mov dx,[label2.top] |
303 | mov dx,[label2.top] |
299 | mcall |
304 | mcall |
300 | mov bx,2 |
305 | mov bx,2 |
301 | shl ebx,16 |
306 | shl ebx,16 |
302 | movsx ecx,word [scr.bitspp] ; ¡¨â ¯¨ªá¥«ì |
307 | movsx ecx,word [scr.bitspp] ; ¡¨â ¯¨ªá¥«ì |
303 | mov dx,240 |
308 | mov dx,240 |
304 | shl edx,16 |
309 | shl edx,16 |
305 | pop dx |
310 | pop dx |
306 | mcall |
311 | mcall |
307 | mov bx,6 |
312 | mov bx,6 |
308 | shl ebx,16 |
313 | shl ebx,16 |
309 | mov ecx,[scr.bytesps] ; ¡ ©â áâபã |
314 | mov ecx,[scr.bytesps] ; ¡ ©â áâபã |
310 | mov dx,[label2.top] |
315 | mov dx,[label2.top] |
311 | mcall |
316 | mcall |
312 | 317 | ||
313 | call draw_number ; ¯à®à¨á®¢ë¢ ¥¬ ®¬¥à ᨬª |
318 | call draw_number ; ¯à®à¨á®¢ë¢ ¥¬ ®¬¥à ᨬª |
314 | call dr_st |
319 | call dr_st |
315 | 320 | ||
316 | draw_labels labels,labels_end ; ¬¥âª¨ |
321 | draw_labels labels,labels_end ; ¬¥âª¨ |
317 | ; draw_edit_boxes editboxes,editboxes_end ; edit_box |
322 | ; draw_edit_boxes editboxes,editboxes_end ; edit_box |
318 | ;------ show check editbox ----------- |
323 | ;------ show check editbox ----------- |
319 | ; push dword edit1 |
324 | ; push dword edit1 |
320 | ; call [edit_box_draw] |
325 | ; call [edit_box_draw] |
321 | push dword edit2 |
326 | push dword edit2 |
322 | call [edit_box_draw] |
327 | call [edit_box_draw] |
323 | push dword edit3 |
328 | push dword edit3 |
324 | call [edit_box_draw] |
329 | call [edit_box_draw] |
325 | push dword edit4 |
330 | push dword edit4 |
326 | call [edit_box_draw] |
331 | call [edit_box_draw] |
327 | ;------ end check all editbox ------- |
332 | ;------ end check all editbox ------- |
328 | 333 | ||
329 | call draw_PathShow |
334 | call draw_PathShow |
330 | 335 | ||
331 | draw_txt_buttons buttons,buttons_end ; ª®¯ª¨ |
336 | draw_txt_buttons buttons,buttons_end ; ª®¯ª¨ |
332 | ; draw_check_boxes check_boxes,check_boxes_end ; ä« ¦ª¨ |
337 | ; draw_check_boxes check_boxes,check_boxes_end ; ä« ¦ª¨ |
333 | ;------ check all checkbox --------- |
338 | ;------ check all checkbox --------- |
334 | push dword ch1 |
339 | ; push dword ch1 |
335 | call [check_box_draw] |
340 | ; call [check_box_draw] |
336 | push dword ch2 |
341 | ; push dword ch2 |
337 | call [check_box_draw] |
342 | ; call [check_box_draw] |
338 | push dword ch3 |
343 | ; push dword ch3 |
339 | call [check_box_draw] |
344 | ; call [check_box_draw] |
340 | push dword ch4 |
345 | ; push dword ch4 |
341 | call [check_box_draw] |
346 | ; call [check_box_draw] |
342 | push dword ch5 |
347 | ; push dword ch5 |
343 | call [check_box_draw] |
348 | ; call [check_box_draw] |
344 | push dword ch6 |
349 | ; push dword ch6 |
345 | call [check_box_draw] |
350 | ; call [check_box_draw] |
346 | push dword use_rect |
351 | ; push dword use_rect |
347 | call [check_box_draw] |
352 | ; call [check_box_draw] |
- | 353 | ||
- | 354 | checkboxes_draw2 check_boxes,check_boxes_end |
|
- | 355 | ||
348 | ;------ end check all checkbox ------ |
356 | ;------ end check all checkbox ------ |
349 | 357 | ||
350 | stop_draw_window ; ª®¥æ ¯¥à¥à¨á®¢ª¨ |
358 | stop_draw_window ; ª®¥æ ¯¥à¥à¨á®¢ª¨ |
351 | ret |
359 | ret |
352 | 360 | ||
353 | shoot: |
361 | shoot: |
354 | bt dword [ch4.flags],1 ; ¢ª«îç¥ «¨ § ¤¥à¦ª ? |
362 | bt dword [ch4.flags],1 ; ¢ª«îç¥ «¨ § ¤¥à¦ª ? |
355 | jnc @f |
363 | jnc @f |
356 | draw_status delay_now |
364 | draw_status delay_now |
357 | mov edi,ed_buffer.2 |
365 | mov edi,ed_buffer.2 |
358 | call zstr_to_int |
366 | call zstr_to_int |
359 | mov ebx,eax |
367 | mov ebx,eax |
360 | delay |
368 | delay |
361 | @@: |
369 | @@: |
362 | call get_mem_for_shoot; ¯®«ãç ¥¬ ¯ ¬ïâì ¤«ï ᨬª |
370 | call get_mem_for_shoot; ¯®«ãç ¥¬ ¯ ¬ïâì ¤«ï ᨬª |
363 | 371 | ||
364 | 372 | ||
365 | bts dword [flags],0 ; ã«¥¢®© ä« £ - ᨬ®ª ¥áâì ¢ ¯ ¬ï⨠|
373 | bts dword [flags],0 ; ã«¥¢®© ä« £ - ᨬ®ª ¥áâì ¢ ¯ ¬ï⨠|
366 | 374 | ||
367 | ; ¤¥« ¥¬ ᨬ®ª |
375 | ; ¤¥« ¥¬ ᨬ®ª |
368 | draw_status shooting |
376 | draw_status shooting |
369 | mov esi,scr |
377 | mov esi,scr |
370 | mov edi,[scr_buf.ptr] |
378 | mov edi,[scr_buf.ptr] |
371 | call copy_screen_to_image |
379 | call copy_screen_to_image |
372 | 380 | ||
373 | bt dword [use_rect.flags],1 |
381 | bt dword [use_rect.flags],1 |
374 | jc .use_rect |
382 | jc .use_rect |
375 | push dword [scr] |
383 | push dword [scr] |
376 | jmp @f |
384 | jmp @f |
377 | .use_rect: |
385 | .use_rect: |
378 | push dword [rect.height] |
386 | push dword [rect.height] |
379 | @@: |
387 | @@: |
380 | pop dword [scr_buf.size] |
388 | pop dword [scr_buf.size] |
381 | 389 | ||
382 | cmp [autoshoot_flag],1 |
390 | cmp [autoshoot_flag],1 |
383 | jne .2 |
391 | jne .2 |
384 | 392 | ||
385 | bt dword [ch5.flags],1 ; ¢ª«î祮 «¨ ¢â®á®åà ¥¨¥ ? |
393 | bt dword [ch5.flags],1 ; ¢ª«î祮 «¨ ¢â®á®åà ¥¨¥ ? |
386 | jnc @f |
394 | jnc @f |
387 | call save_file |
395 | call save_file |
388 | @@: |
396 | @@: |
389 | draw_status shooted_ok |
397 | draw_status shooted_ok |
390 | .2: |
398 | .2: |
391 | bt dword [flags],1 |
399 | bt dword [flags],1 |
392 | jnc @f |
400 | jnc @f |
393 | ret |
401 | ret |
394 | @@: |
402 | @@: |
395 | 403 | ||
396 | bt dword [ch2.flags],1 ; ¯®ª § âì ®ª® ¯à¥¤¯à®á¬®âà ? |
404 | bt dword [ch2.flags],1 ; ¯®ª § âì ®ª® ¯à¥¤¯à®á¬®âà ? |
397 | jnc @f |
405 | jnc @f |
398 | cmp [PrintScreen],0 |
406 | cmp [PrintScreen],0 |
399 | jne @f |
407 | jne @f |
400 | call show_scr_window |
408 | call show_scr_window |
401 | ret |
409 | ret |
402 | @@: |
410 | @@: |
403 | bt dword [ch5.flags],1 ; ¢ª«î祮 «¨ ¢â®á®åà ¥¨¥ ? |
411 | bt dword [ch5.flags],1 ; ¢ª«î祮 «¨ ¢â®á®åà ¥¨¥ ? |
404 | jnc @f |
412 | jnc @f |
405 | 413 | ||
406 | ; invoke OpenDialog |
414 | ; invoke OpenDialog |
407 | push dword OpenDialog_data |
415 | push dword OpenDialog_data |
408 | call [OpenDialog_Start] |
416 | call [OpenDialog_Start] |
409 | cmp [OpenDialog_data.status],1 |
417 | cmp [OpenDialog_data.status],1 |
410 | je .1 |
418 | je .1 |
411 | ret |
419 | ret |
412 | .1: |
420 | .1: |
413 | ; prepare for PathShow |
421 | ; prepare for PathShow |
414 | push dword PathShow_data_1 |
422 | push dword PathShow_data_1 |
415 | call [PathShow_prepare] |
423 | call [PathShow_prepare] |
416 | 424 | ||
417 | call save_file |
425 | call save_file |
418 | @@: |
426 | @@: |
419 | 427 | ||
420 | bt word [ch3.flags],1 ; ¢®ááâ ®¢¨âì ®ª® ? |
428 | bt word [ch3.flags],1 ; ¢®ááâ ®¢¨âì ®ª® ? |
421 | jnc @f |
429 | jnc @f |
422 | 430 | ||
423 | delay 100 |
431 | delay 100 |
424 | mov ecx,[slot_n] |
432 | mov ecx,[slot_n] |
425 | activ_window |
433 | activ_window |
426 | @@: |
434 | @@: |
427 | ret |
435 | ret |
428 | 436 | ||
429 | ;--- ¯®«ãç¨âì ¯ ¬ïâì ¤«ï ᨬª --- |
437 | ;--- ¯®«ãç¨âì ¯ ¬ïâì ¤«ï ᨬª --- |
430 | get_mem_for_shoot: |
438 | get_mem_for_shoot: |
431 | ;clean memory |
439 | ;clean memory |
432 | mov ecx,dword [scr_buf.ptr] |
440 | mov ecx,dword [scr_buf.ptr] |
433 | mov ebx,13 |
441 | mov ebx,13 |
434 | mov eax,68 |
442 | mov eax,68 |
435 | mcall |
443 | mcall |
436 | 444 | ||
437 | bt dword [use_rect.flags],1 ; ä®âª âì ®¡« áâì íªà |
445 | bt dword [use_rect.flags],1 ; ä®âª âì ®¡« áâì íªà |
438 | jc .use_area |
446 | jc .use_area |
439 | movzx ecx, word [scr.width] |
447 | movzx ecx, word [scr.width] |
440 | movzx ebx, word [scr.height] |
448 | movzx ebx, word [scr.height] |
441 | jmp @f |
449 | jmp @f |
442 | .use_area: |
450 | .use_area: |
443 | call read_rect |
451 | call read_rect |
444 | movzx ecx, word [rect.width] |
452 | movzx ecx, word [rect.width] |
445 | movzx ebx, word [rect.height] |
453 | movzx ebx, word [rect.height] |
446 | @@: |
454 | @@: |
447 | imul ecx,ebx |
455 | imul ecx,ebx |
448 | lea ecx,[ecx*3] |
456 | lea ecx,[ecx*3] |
449 | ; add ecx,i_end |
457 | ; add ecx,i_end |
450 | mov ebx,12 |
458 | mov ebx,12 |
451 | mov eax,68 |
459 | mov eax,68 |
452 | mcall |
460 | mcall |
453 | mov [scr_buf.ptr],eax |
461 | mov [scr_buf.ptr],eax |
454 | add eax,ecx |
462 | add eax,ecx |
455 | mov [scr_buf.end_ptr],ecx |
463 | mov [scr_buf.end_ptr],ecx |
456 | ret |
464 | ret |
457 | 465 | ||
458 | ;--- ᮤ âì ®ª® ¯à®¥¤¯à®á¬®âà --- |
466 | ;--- ᮤ âì ®ª® ¯à®¥¤¯à®á¬®âà --- |
459 | show_scr_window: |
467 | show_scr_window: |
460 | pusha |
468 | pusha |
461 | bt dword [flags],0 |
469 | bt dword [flags],0 |
462 | jnc @f |
470 | jnc @f |
463 | mov eax,51 |
471 | mov eax,51 |
464 | xor ebx,ebx |
472 | xor ebx,ebx |
465 | inc ebx |
473 | inc ebx |
466 | mov ecx,scr_window |
474 | mov ecx,scr_window |
467 | mov edx,i_end_tread-512 |
475 | mov edx,i_end_tread-512 |
468 | mcall |
476 | mcall |
469 | @@: |
477 | @@: |
470 | popa |
478 | popa |
471 | ret |
479 | ret |
472 | 480 | ||
473 | ;--- ¯à®ç¨â âì ¨ à¨á®¢ âì ⥪ã騩 ®¬¥à --- |
481 | ;--- ¯à®ç¨â âì ¨ à¨á®¢ âì ⥪ã騩 ®¬¥à --- |
474 | apply_number: |
482 | apply_number: |
475 | mov edi,ed_buffer.3 |
483 | mov edi,ed_buffer.3 |
476 | call zstr_to_int |
484 | call zstr_to_int |
477 | mov [cur_number],eax |
485 | mov [cur_number],eax |
478 | call draw_number |
486 | call draw_number |
479 | ret |
487 | ret |
480 | 488 | ||
481 | ;--- ¯à®æ¥¤ãà ¯à®à¨á®¢ª¨ ⥪ã饣® ®¬¥à --- |
489 | ;--- ¯à®æ¥¤ãà ¯à®à¨á®¢ª¨ ⥪ã饣® ®¬¥à --- |
482 | draw_number: |
490 | draw_number: |
483 | mov edi,sign_n_input |
491 | mov edi,sign_n_input |
484 | call zstr_to_int |
492 | call zstr_to_int |
485 | mov [sign_n],al |
493 | mov [sign_n],al |
486 | mov eax,13 |
494 | mov eax,13 |
487 | mov ebx,150*65536+96 |
495 | mov ebx,150*65536+96 |
488 | mov cx,[label9.top] |
496 | mov cx,[label9.top] |
489 | shl ecx,16 |
497 | shl ecx,16 |
490 | mov cx,10 |
498 | mov cx,10 |
491 | mov edx,[sc.work] |
499 | mov edx,[sc.work] |
492 | mcall |
500 | mcall |
493 | mov eax,47 |
501 | mov eax,47 |
494 | movsx bx,byte [sign_n] |
502 | movsx bx,byte [sign_n] |
495 | shl ebx,16 |
503 | shl ebx,16 |
496 | mov ecx,[cur_number] |
504 | mov ecx,[cur_number] |
497 | mov dx,150 |
505 | mov dx,150 |
498 | shl edx,16 |
506 | shl edx,16 |
499 | mov dx,[label9.top] |
507 | mov dx,[label9.top] |
500 | mov esi,[sc.work_text] |
508 | mov esi,[sc.work_text] |
501 | mcall |
509 | mcall |
502 | ret |
510 | ret |
503 | 511 | ||
504 | ;--- ¯à®æ¥¤ãà , § ¯ã᪠îé ï ¯®â®ª ¢â®áꥬª¨ --- |
512 | ;--- ¯à®æ¥¤ãà , § ¯ã᪠îé ï ¯®â®ª ¢â®áꥬª¨ --- |
505 | start_autoshoot: |
513 | start_autoshoot: |
506 | bts dword [flags],1 |
514 | bts dword [flags],1 |
507 | jc @f |
515 | jc @f |
508 | mov eax,51 |
516 | mov eax,51 |
509 | ;mov ebx,1 |
517 | ;mov ebx,1 |
510 | xor ebx,ebx |
518 | xor ebx,ebx |
511 | inc ebx |
519 | inc ebx |
512 | mov ecx,autoshoot |
520 | mov ecx,autoshoot |
513 | mov edx,i_end_tread |
521 | mov edx,i_end_tread |
514 | mcall |
522 | mcall |
515 | @@: |
523 | @@: |
516 | ret |
524 | ret |
517 | 525 | ||
518 | ;--- ®áâ ¢«¨¢ ¥â íâ®â ¯®â®ª --- |
526 | ;--- ®áâ ¢«¨¢ ¥â íâ®â ¯®â®ª --- |
519 | stop_autoshoot: |
527 | stop_autoshoot: |
520 | btr dword [flags],1 |
528 | btr dword [flags],1 |
521 | ret |
529 | ret |
522 | 530 | ||
523 | ;--- 横« ¯®â®ª ¢â®áꥬª¨ --- |
531 | ;--- 横« ¯®â®ª ¢â®áꥬª¨ --- |
524 | autoshoot: |
532 | autoshoot: |
525 | mov [autoshoot_flag],1 |
533 | mov [autoshoot_flag],1 |
526 | mov ecx,[slot_n] |
534 | mov ecx,[slot_n] |
527 | activ_window |
535 | activ_window |
528 | .next: |
536 | .next: |
529 | bt dword [flags],1 |
537 | bt dword [flags],1 |
530 | jnc close |
538 | jnc close |
531 | mov eax,60 |
539 | mov eax,60 |
532 | mov ebx,2 |
540 | mov ebx,2 |
533 | mov ecx,[app.pid] |
541 | mov ecx,[app.pid] |
534 | mov edx,messages.draw_number |
542 | mov edx,messages.draw_number |
535 | mov esi,2 |
543 | mov esi,2 |
536 | mcall |
544 | mcall |
537 | call shoot |
545 | call shoot |
538 | jmp autoshoot.next |
546 | jmp autoshoot.next |
539 | .close: |
547 | .close: |
540 | mov [autoshoot_flag],0 |
548 | mov [autoshoot_flag],0 |
541 | jmp close |
549 | jmp close |
542 | ;--- ¯à®æ¥¤ãà ¯à®à¨á®¢ª¨ áâப¨ á®áâ®ï¨ï --- |
550 | ;--- ¯à®æ¥¤ãà ¯à®à¨á®¢ª¨ áâப¨ á®áâ®ï¨ï --- |
543 | ; (¤®«¦ ¢ë§ë¢ âìáï ¯®â®ª®¬ £« ¢®£® ®ª ) |
551 | ; (¤®«¦ ¢ë§ë¢ âìáï ¯®â®ª®¬ £« ¢®£® ®ª ) |
544 | dr_st: |
552 | dr_st: |
545 | mov eax,38 ; ®â१®ª |
553 | mov eax,38 ; ®â१®ª |
546 | mov ebx,0*65536+310 |
554 | mov ebx,0*65536+310 |
547 | mov ecx,198*65536+198 |
555 | mov ecx,198*65536+198 |
548 | mov edx,[sc.work_graph] |
556 | mov edx,[sc.work_graph] |
549 | mcall |
557 | mcall |
550 | 558 | ||
551 | mov eax,13 ; ¯®«®áª |
559 | mov eax,13 ; ¯®«®áª |
552 | mov bx,310 |
560 | mov bx,310 |
553 | mov ecx,199*65536+15 |
561 | mov ecx,199*65536+15 |
554 | mov edx,[sc.work] |
562 | mov edx,[sc.work] |
555 | mcall |
563 | mcall |
556 | 564 | ||
557 | mov edi,status |
565 | mov edi,status |
558 | call draw_label |
566 | call draw_label |
559 | ret |
567 | ret |
560 | 568 | ||
561 | ;--- ¯à®æ¥¤ãà ¯®«ãç¥¨ï ®¬¥à ᫮⠯®â®ª --- |
569 | ;--- ¯à®æ¥¤ãà ¯®«ãç¥¨ï ®¬¥à ᫮⠯®â®ª --- |
562 | ; ¢å®¤ ebx - ¡ãää¥à 1024 ¡ ©â |
570 | ; ¢å®¤ ebx - ¡ãää¥à 1024 ¡ ©â |
563 | ; ¢ë室 ecx - ®¬¥à á«®â |
571 | ; ¢ë室 ecx - ®¬¥à á«®â |
564 | get_slot_n: |
572 | get_slot_n: |
565 | mov eax,9 |
573 | mov eax,9 |
566 | xor ecx,ecx |
574 | xor ecx,ecx |
567 | dec ecx |
575 | dec ecx |
568 | mcall |
576 | mcall |
569 | 577 | ||
570 | mov edx,[ebx+30] |
578 | mov edx,[ebx+30] |
571 | xor ecx,ecx |
579 | xor ecx,ecx |
572 | @@: |
580 | @@: |
573 | mov eax,9 |
581 | mov eax,9 |
574 | inc ecx |
582 | inc ecx |
575 | mcall |
583 | mcall |
576 | cmp [ebx+30],edx |
584 | cmp [ebx+30],edx |
577 | je @f |
585 | je @f |
578 | jmp @b |
586 | jmp @b |
579 | @@: |
587 | @@: |
580 | ret |
588 | ret |
581 | 589 | ||
582 | ;--- ¯à®æ¥¤ãà , § ¯ã᪠îé ï ¯®â®ª, ¤¥« î騩 1 ᨬ®ª --- |
590 | ;--- ¯à®æ¥¤ãà , § ¯ã᪠îé ï ¯®â®ª, ¤¥« î騩 1 ᨬ®ª --- |
583 | one_shoot: |
591 | one_shoot: |
584 | mov ecx,one_shoot_thread |
592 | mov ecx,one_shoot_thread |
585 | mov edx,shoot_esp |
593 | mov edx,shoot_esp |
586 | jmp @f |
594 | jmp @f |
587 | ;--- ¯à®æ¥¤à , § ¯ã᪠îé ï ¯®â®ª, á®åà ïî騩 ᨬ®ª --- |
595 | ;--- ¯à®æ¥¤à , § ¯ã᪠îé ï ¯®â®ª, á®åà ïî騩 ᨬ®ª --- |
588 | save_shoot: |
596 | save_shoot: |
589 | ; invoke OpenDialog |
597 | ; invoke OpenDialog |
590 | push dword OpenDialog_data |
598 | push dword OpenDialog_data |
591 | call [OpenDialog_Start] |
599 | call [OpenDialog_Start] |
592 | cmp [OpenDialog_data.status],1 |
600 | cmp [OpenDialog_data.status],1 |
593 | je .1 |
601 | je .1 |
594 | ret |
602 | ret |
595 | .1: |
603 | .1: |
596 | ; prepare for PathShow |
604 | ; prepare for PathShow |
597 | push dword PathShow_data_1 |
605 | push dword PathShow_data_1 |
598 | call [PathShow_prepare] |
606 | call [PathShow_prepare] |
599 | 607 | ||
600 | call draw_PathShow |
608 | call draw_PathShow |
601 | 609 | ||
602 | mov ecx,save_shoot_thread |
610 | mov ecx,save_shoot_thread |
603 | mov edx,shoot_esp |
611 | mov edx,shoot_esp |
604 | @@: |
612 | @@: |
605 | bts dword [flags],2 |
613 | bts dword [flags],2 |
606 | jc .running |
614 | jc .running |
607 | bt dword [flags],1 |
615 | bt dword [flags],1 |
608 | jc .running |
616 | jc .running |
609 | 617 | ||
610 | mov eax,51 |
618 | mov eax,51 |
611 | ;mov ebx,1 |
619 | ;mov ebx,1 |
612 | xor ebx,ebx |
620 | xor ebx,ebx |
613 | inc ebx |
621 | inc ebx |
614 | mcall |
622 | mcall |
615 | .running: |
623 | .running: |
616 | ret |
624 | ret |
617 | 625 | ||
618 | ;--- ¯®â®ª, ¤¥« î騩 1 ᨬ®ª --- |
626 | ;--- ¯®â®ª, ¤¥« î騩 1 ᨬ®ª --- |
619 | one_shoot_thread: |
627 | one_shoot_thread: |
620 | mov ecx,[slot_n] |
628 | mov ecx,[slot_n] |
621 | activ_window |
629 | activ_window |
622 | bt dword [ch1.flags],1 ; ¬¨¨¬¨§¨à®¢ âì ®ª® ? |
630 | bt dword [ch1.flags],1 ; ¬¨¨¬¨§¨à®¢ âì ®ª® ? |
623 | jnc @f |
631 | jnc @f |
624 | mov eax,60 |
632 | mov eax,60 |
625 | mov ebx,2 |
633 | mov ebx,2 |
626 | mov ecx,[app.pid] |
634 | mov ecx,[app.pid] |
627 | mov edx,messages.min_window |
635 | mov edx,messages.min_window |
628 | mov esi,2 |
636 | mov esi,2 |
629 | mcall |
637 | mcall |
630 | @@: |
638 | @@: |
631 | call shoot |
639 | call shoot |
632 | btr dword [flags],2 |
640 | btr dword [flags],2 |
633 | jmp close |
641 | jmp close |
634 | 642 | ||
635 | ;--- ¯à®æ¥¤ãà , ®â¯à ¢«ïîé ï £« ¢®¬ã ®ªã á®®¡é¥¨¥ ® ¯¥à¥à¨á®¢ª¥ |
643 | ;--- ¯à®æ¥¤ãà , ®â¯à ¢«ïîé ï £« ¢®¬ã ®ªã á®®¡é¥¨¥ ® ¯¥à¥à¨á®¢ª¥ |
636 | ; áâப¨ á®áâ®ï¨ï --- |
644 | ; áâப¨ á®áâ®ï¨ï --- |
637 | send_draw_status: |
645 | send_draw_status: |
638 | mov eax,60 |
646 | mov eax,60 |
639 | mov ebx,2 |
647 | mov ebx,2 |
640 | mov ecx,[app.pid] |
648 | mov ecx,[app.pid] |
641 | mov edx,messages.draw_status |
649 | mov edx,messages.draw_status |
642 | mov esi,2 |
650 | mov esi,2 |
643 | mcall |
651 | mcall |
644 | ret |
652 | ret |
645 | 653 | ||
646 | ;--- ¯®â®ª, á®åà ï ä ©« --- |
654 | ;--- ¯®â®ª, á®åà ï ä ©« --- |
647 | save_shoot_thread: |
655 | save_shoot_thread: |
648 | mov ecx,[slot_n] |
656 | mov ecx,[slot_n] |
649 | activ_window |
657 | activ_window |
650 | call save_file |
658 | call save_file |
651 | btr dword [flags],2 |
659 | btr dword [flags],2 |
652 | jmp close |
660 | jmp close |
653 | 661 | ||
654 | ;--- ¯à®æ¥¤ãà , § ¯ã᪠îé ï ¯®â®ª ®ª ãáâ ®¢ª¨ ®¡« á⨠áꥬª¨ --- |
662 | ;--- ¯à®æ¥¤ãà , § ¯ã᪠îé ï ¯®â®ª ®ª ãáâ ®¢ª¨ ®¡« á⨠áꥬª¨ --- |
655 | show_set_rect_window: |
663 | show_set_rect_window: |
656 | bts dword [flags],3 |
664 | bts dword [flags],3 |
657 | jc @f |
665 | jc @f |
658 | mov eax,51 |
666 | mov eax,51 |
659 | xor ebx,ebx |
667 | xor ebx,ebx |
660 | inc ebx |
668 | inc ebx |
661 | mov ecx,set_rect_window |
669 | mov ecx,set_rect_window |
662 | mov edx,set_rect_window_esp |
670 | mov edx,set_rect_window_esp |
663 | mcall |
671 | mcall |
664 | 672 | ||
665 | mov [set_rect_window_pid],eax |
673 | mov [set_rect_window_pid],eax |
666 | ret |
674 | ret |
667 | 675 | ||
668 | @@: |
676 | @@: |
669 | mov eax,18 |
677 | mov eax,18 |
670 | mov ebx,eax |
678 | mov ebx,eax |
671 | mov ecx,[set_rect_window_pid] |
679 | mov ecx,[set_rect_window_pid] |
672 | mcall |
680 | mcall |
673 | btr dword [flags],3 |
681 | btr dword [flags],3 |
674 | ret |
682 | ret |
675 | 683 | ||
676 | ;--- ¯®«ã票¥ ¨ä®à¬ 樨 ®¡ ªâ¨¢®¬ ®ª¥ --- |
684 | ;--- ¯®«ã票¥ ¨ä®à¬ 樨 ®¡ ªâ¨¢®¬ ®ª¥ --- |
677 | get_active_window_info: |
685 | get_active_window_info: |
678 | mov eax,18 |
686 | mov eax,18 |
679 | mov ebx,7 |
687 | mov ebx,7 |
680 | mcall |
688 | mcall |
681 | 689 | ||
682 | mov ecx,eax |
690 | mov ecx,eax |
683 | mov eax,9 |
691 | mov eax,9 |
684 | mov ebx,active_app |
692 | mov ebx,active_app |
685 | mcall |
693 | mcall |
686 | ret |
694 | ret |
687 | 695 | ||
688 | ;==================================================================== |
696 | ;==================================================================== |
689 | ;=== ¤ ë¥ ¯à®£à ¬¬ë =============================================== |
697 | ;=== ¤ ë¥ ¯à®£à ¬¬ë =============================================== |
690 | ;==================================================================== |
698 | ;==================================================================== |
691 | messages: |
699 | messages: |
692 | .draw_number dw 0 |
700 | .draw_number dw 0 |
693 | .draw_status dw 1 |
701 | .draw_status dw 1 |
694 | .min_window dw 2 |
702 | .min_window dw 2 |
695 | .act_window dw 3 |
703 | .act_window dw 3 |
696 | 704 | ||
697 | grab_text: |
705 | grab_text: |
698 | db title,0 |
706 | db title,0 |
699 | 707 | ||
700 | labels: |
708 | labels: |
701 | label1 label 5,5,0,text.1 ; è¨à¨ íªà |
709 | label1 label 5,5,0,text.1 ; è¨à¨ íªà |
702 | label2 label 5,15,0,text.2 ; ¢ëá®â íªà |
710 | label2 label 5,15,0,text.2 ; ¢ëá®â íªà |
703 | label3 label 5,25,0,text.3 ; ¢¢¥¤¨â¥ ¨¬ï ä ©« |
711 | label3 label 5,25,0,text.3 ; ¢¢¥¤¨â¥ ¨¬ï ä ©« |
704 | label4 label 150,5,0,text.4 ; ¡¨â ¯¨ªá¥«ì |
712 | label4 label 150,5,0,text.4 ; ¡¨â ¯¨ªá¥«ì |
705 | label5 label 150,15,0,text.5 ; ¡ ©â áâபã |
713 | label5 label 150,15,0,text.5 ; ¡ ©â áâபã |
706 | label6 label 115,138,0,text.6 ; 100 = 1 ᥪ. |
714 | label6 label 115,138,0,text.6 ; 100 = 1 ᥪ. |
707 | ;label7 label 10,190,0,text.7 |
715 | ;label7 label 10,190,0,text.7 |
708 | ;label8 label 10,225,0,text.8 |
716 | ;label8 label 10,225,0,text.8 |
709 | label9 label 5,52,0,text.9 ; ®¬¥à ⥪ã饣® ᨬª |
717 | label9 label 5,52,0,text.9 ; ®¬¥à ⥪ã饣® ᨬª |
710 | label10 label 5,185,0,text.10 |
718 | label10 label 5,185,0,text.10 |
711 | status label 5,201,0,no_shoot |
719 | status label 5,201,0,no_shoot |
712 | labels_end: |
720 | labels_end: |
713 | 721 | ||
714 | ;--------------------------------------------------------------------- |
722 | ;--------------------------------------------------------------------- |
715 | l_libs_start: |
723 | l_libs_start: |
716 | 724 | ||
717 | library01 l_libs system_dir_Boxlib+9, cur_dir_path, library_path, system_dir_Boxlib, \ |
725 | library01 l_libs system_dir_Boxlib+9, cur_dir_path, library_path, system_dir_Boxlib, \ |
718 | err_message_found_lib1, head_f_l, Box_lib_import, err_message_import1, head_f_i |
726 | err_message_found_lib1, head_f_l, Box_lib_import, err_message_import1, head_f_i |
719 | 727 | ||
720 | library02 l_libs system_dir_ProcLib+9, cur_dir_path, library_path, system_dir_ProcLib, \ |
728 | library02 l_libs system_dir_ProcLib+9, cur_dir_path, library_path, system_dir_ProcLib, \ |
721 | err_message_found_lib2, head_f_l, ProcLib_import, err_message_import2, head_f_i |
729 | err_message_found_lib2, head_f_l, ProcLib_import, err_message_import2, head_f_i |
722 | 730 | ||
723 | end_l_libs: |
731 | end_l_libs: |
724 | ;--------------------------------------------------------------------- |
732 | ;--------------------------------------------------------------------- |
725 | editboxes: |
733 | editboxes: |
726 | ;edit1 edit_box 300,5,35,cl_white,0,0,0,0,300,ed_buffer.1,mouse_dd,ed_focus,10,10 ; ¯ãâì ª ä ©«ã |
734 | ;edit1 edit_box 300,5,35,cl_white,0,0,0,0,300,ed_buffer.1,mouse_dd,ed_focus,10,10 ; ¯ãâì ª ä ©«ã |
727 | edit2 edit_box 35,75,134,cl_white,0,0,0,0,9,ed_buffer.2,mouse_dd,ed_figure_only,3,3 ; § ¤¥à¦ª |
735 | edit2 edit_box 35,75,134,cl_white,0,0,0,0,9,ed_buffer.2,mouse_dd,ed_figure_only,3,3 ; § ¤¥à¦ª |
728 | edit3 edit_box 35,165,164,cl_white,0,0,0,0,9,ed_buffer.3,mouse_dd,ed_figure_only ; ¢â®ã¬¥à æ¨ï |
736 | edit3 edit_box 35,165,164,cl_white,0,0,0,0,9,ed_buffer.3,mouse_dd,ed_figure_only ; ¢â®ã¬¥à æ¨ï |
729 | edit4 edit_box 16,165,181,cl_white,0,0,0,0,1,sign_n_input,mouse_dd,ed_figure_only,1 |
737 | edit4 edit_box 16,165,181,cl_white,0,0,0,0,1,sign_n_input,mouse_dd,ed_figure_only,1 |
730 | editboxes_end: |
738 | editboxes_end: |
731 | ;--------------------------------------------------------------------- |
739 | ;--------------------------------------------------------------------- |
732 | buttons: |
740 | buttons: |
733 | but1 txt_button 150,5,15,65,2,0,0,but_text.1,one_shoot ; ᤥ« âì ᨬ®ª |
741 | but1 txt_button 150,5,15,65,2,0,0,but_text.1,one_shoot ; ᤥ« âì ᨬ®ª |
734 | but2 txt_button 145,160,15,65,3,0,0,but_text.2,save_shoot ; á®åà ¨âì ᨬ®ª |
742 | but2 txt_button 145,160,15,65,3,0,0,but_text.2,save_shoot ; á®åà ¨âì ᨬ®ª |
735 | but3 txt_button 140,115,12,120,4,0,0,but_text.3,show_scr_window ; ¯®ª § âì ᨬ®ª |
743 | but3 txt_button 140,115,12,120,4,0,0,but_text.3,show_scr_window ; ¯®ª § âì ᨬ®ª |
736 | but4 txt_button 80,205,15,163,5,0,0,but_text.4,apply_number ; ¯à¨¬¥¨âì ®¬¥à |
744 | but4 txt_button 80,205,15,163,5,0,0,but_text.4,apply_number ; ¯à¨¬¥¨âì ®¬¥à |
737 | but5 txt_button 150,5,15,85,6,0,0,but_text.5,start_autoshoot ; ç âì ¢â®áêñ¬ªã |
745 | but5 txt_button 150,5,15,85,6,0,0,but_text.5,start_autoshoot ; ç âì ¢â®áêñ¬ªã |
738 | but6 txt_button 145,160,15,85,7,0,0,but_text.6,stop_autoshoot ; ®áâ ®¢¨âì ¢â®áêñ¬ªã |
746 | but6 txt_button 145,160,15,85,7,0,0,but_text.6,stop_autoshoot ; ®áâ ®¢¨âì ¢â®áêñ¬ªã |
739 | but7 txt_button 40,205,10,150,8,0,0,but_text.7,show_set_rect_window ; § ¤ âì ®¡« áâì |
747 | but7 txt_button 40,205,10,150,8,0,0,but_text.7,show_set_rect_window ; § ¤ âì ®¡« áâì |
740 | buttons_end: |
748 | buttons_end: |
741 | ;--------------------------------------------------------------------- |
749 | ;--------------------------------------------------------------------- |
742 | check_boxes: |
750 | check_boxes: |
743 | ch1 check_box 5,105,5,11,cl_white,0,0,ch_text.1,(ch_text.2-ch_text.1),ch_flag_en ; ᢥàãâì ®ª® |
751 | ch1 check_box2 (5 shl 16+11),(105 shl 16 +11),5,cl_white,0,0x80000000,ch_text.1,ch_flag_en+ch_flag_bottom ; ᢥàãâì ®ª® |
744 | ch2 check_box 5,120,5,11,cl_white,0,0,ch_text.2,(ch_text.3-ch_text.2),ch_flag_en ; § ⥬ ᤥ« âì ªâ¨¢ë¬ |
752 | ch2 check_box2 (5 shl 16+11),(120 shl 16 +11),5,cl_white,0,0x80000000,ch_text.2,ch_flag_en+ch_flag_bottom ; § ⥬ ᤥ« âì ªâ¨¢ë¬ |
745 | ch3 check_box 145,105,5,11,cl_white,0,0,ch_text.3,(ch_text.4-ch_text.3),ch_flag_en ; ¯®ª § âì ᨬ®ª |
753 | ch3 check_box2 (1455 shl 16+11),(105 shl 16 +11),5,cl_white,0,0x80000000,ch_text.3,ch_flag_en+ch_flag_bottom ; ¯®ª § âì ᨬ®ª |
746 | ch4 check_box 5,135,5,11,cl_white,0,0,ch_text.4,(ch_text.5-ch_text.4),ch_flag_en ; § ¤¥à¦ª |
754 | ch4 check_box2 (5 shl 16+11),(135 shl 16 +11),5,cl_white,0,0x80000000,ch_text.4,ch_flag_en+ch_flag_bottom ; § ¤¥à¦ª |
747 | ch5 check_box 5,150,5,11,cl_white,0,0,ch_text.5,(ch_text.6-ch_text.5),ch_flag_en |
755 | ch5 check_box2 (5 shl 16+11),(150 shl 16 +11),5,cl_white,0,0x80000000,ch_text.5,ch_flag_en+ch_flag_bottom |
748 | ch6 check_box 5,165,5,11,cl_white,0,0,ch_text.6,(ch_text.7-ch_text.6),ch_flag_en |
756 | ch6 check_box2 (5 shl 16+11),(165 shl 16 +11),5,cl_white,0,0x80000000,ch_text.6,ch_flag_en+ch_flag_bottom |
749 | use_rect check_box 145,150,5,11,cl_white,0,0,ch_text.7,(ch_text.8-ch_text.7) ; ¨á¯. ®¡« áâì |
757 | use_rect check_box2 (145 shl 16+11),(150 shl 16 +11),5,cl_white,0,0x80000000,ch_text.7,ch_flag_bottom ; ¨á¯. ®¡« áâì |
750 | ; ¢â®ã¬¥à æ¨ï |
758 | ; ¢â®ã¬¥à æ¨ï |
751 | check_boxes_end: |
759 | check_boxes_end: |
752 | ;--------------------------------------------------------------------- |
760 | ;--------------------------------------------------------------------- |
753 | if lang eq ru |
761 | if lang eq ru |
754 | text: |
762 | text: |
755 | .2 db 'ëá®â íªà :',0 |
763 | .2 db 'ëá®â íªà :',0 |
756 | .1 db '¨à¨ íªà :',0 |
764 | .1 db '¨à¨ íªà :',0 |
757 | .3 db '¢¥¤¨â¥ ¯®«ë© ¯ãâì ª ä ©«ã:',0 |
765 | .3 db '¢¥¤¨â¥ ¯®«ë© ¯ãâì ª ä ©«ã:',0 |
758 | .4 db '¨â ¯¨ªá¥«ì:',0 |
766 | .4 db '¨â ¯¨ªá¥«ì:',0 |
759 | .5 db ' ©â áâபã:',0 |
767 | .5 db ' ©â áâபã:',0 |
760 | .6 db '100 = 1 ᥪ㤠',0 |
768 | .6 db '100 = 1 ᥪ㤠',0 |
761 | ;.7: db '¢¥¤¨â¥ ¨¬ï ä ©« :',0 |
769 | ;.7: db '¢¥¤¨â¥ ¨¬ï ä ©« :',0 |
762 | ;.8: db '¬¥áâ® "*" ¢ ¨¬¥¨ ä ©« ¡ã¤¥â ¢áâ ¢«ïâìáï ®¬¥à.',0 |
770 | ;.8: db '¬¥áâ® "*" ¢ ¨¬¥¨ ä ©« ¡ã¤¥â ¢áâ ¢«ïâìáï ®¬¥à.',0 |
763 | .9 db '®¬¥à ⥪ã饣® ᨬª :',0 |
771 | .9 db '®¬¥à ⥪ã饣® ᨬª :',0 |
764 | .10 db '®«¨ç¥á⢮ § ª®¢ ¢ ®¬¥à¥:',0 |
772 | .10 db '®«¨ç¥á⢮ § ª®¢ ¢ ®¬¥à¥:',0 |
765 | 773 | ||
766 | but_text: |
774 | but_text: |
767 | .1 db '¤¥« âì ᨬ®ª íªà ',0 |
775 | .1 db '¤¥« âì ᨬ®ª íªà ',0 |
768 | .2 db '®åà ¨âì ᨬ®ª íªà ',0 |
776 | .2 db '®åà ¨âì ᨬ®ª íªà ',0 |
769 | .3 db '®ª § âì ᨬ®ª ᥩç á',0 |
777 | .3 db '®ª § âì ᨬ®ª ᥩç á',0 |
770 | .4 db 'ਬ¥¨âì',0 |
778 | .4 db 'ਬ¥¨âì',0 |
771 | .5 db ' ç âì ¢â®áꥬªã',0 |
779 | .5 db ' ç âì ¢â®áꥬªã',0 |
772 | .6 db 'áâ ®¢¨âì ¢â®áꥬªã',0 |
780 | .6 db 'áâ ®¢¨âì ¢â®áꥬªã',0 |
773 | .7 db '§ ¤ âì',0 |
781 | .7 db '§ ¤ âì',0 |
774 | 782 | ||
775 | ch_text: |
783 | ch_text: |
776 | .1 db '¢¥àãâì ®ª®';,0 |
784 | .1 db '¢¥àãâì ®ª®',0 |
777 | .2 db '®ª § âì ᨬ®ª';,0 |
785 | .2 db '®ª § âì ᨬ®ª',0 |
778 | .3 db '§ ⥬ ᤥ« âì ªâ¨¢ë¬';,0 |
786 | .3 db '§ ⥬ ᤥ« âì ªâ¨¢ë¬',0 |
779 | .4 db ' ¤¥à¦ª :';,0 |
787 | .4 db ' ¤¥à¦ª :',0 |
780 | .5 db '¢â®á®åà ¥¨¥';,0 |
788 | .5 db '¢â®á®åà ¥¨¥',0 |
781 | .6 db '¢â®ã¬¥à æ¨ï, ç¨ ï á';,0 |
789 | .6 db '¢â®ã¬¥à æ¨ï, ç¨ ï á',0 |
782 | .7 db '¡« áâì' |
790 | .7 db '¡« áâì',0 |
783 | .8: |
- | |
784 | 791 | ||
785 | no_shoot db '¨¬®ª ¥ ᤥ« ',0 |
792 | no_shoot db '¨¬®ª ¥ ᤥ« ',0 |
786 | shooting db '®â®£à ä¨à®¢ ¨¥...',0 |
793 | shooting db '®â®£à ä¨à®¢ ¨¥...',0 |
787 | shooted_ok db '¨¬®ª ᤥ« ',0 |
794 | shooted_ok db '¨¬®ª ᤥ« ',0 |
788 | saving db '®åà ¥¨¥...',0 |
795 | saving db '®åà ¥¨¥...',0 |
789 | saved_ok db '¨¬®ª á®åà ¥',0 |
796 | saved_ok db '¨¬®ª á®åà ¥',0 |
790 | delay_now db ' ¤¥à¦ª ...',0 |
797 | delay_now db ' ¤¥à¦ª ...',0 |
791 | bad_file_name db '¬ï ä ©« ¢¢¥¤¥® ¥¢¥à®',0 |
798 | bad_file_name db '¬ï ä ©« ¢¢¥¤¥® ¥¢¥à®',0 |
792 | disk_filled db '¨áª § ¯®«¥',0 |
799 | disk_filled db '¨áª § ¯®«¥',0 |
793 | bad_fat_table db ' ¡«¨æ FAT à §àãè¥ ',0 |
800 | bad_fat_table db ' ¡«¨æ FAT à §àãè¥ ',0 |
794 | ac_den db '®áâ㯠§ ¯à¥é¥',0 |
801 | ac_den db '®áâ㯠§ ¯à¥é¥',0 |
795 | device_er db '訡ª ãáâனá⢠',0 |
802 | device_er db '訡ª ãáâனá⢠',0 |
796 | not_shooted db '¤¥« ©â¥ ᨬ®ª !!!',0 |
803 | not_shooted db '¤¥« ©â¥ ᨬ®ª !!!',0 |
797 | no_file_name db '¢¥¤¨â¥ ¨¬ï ä ©« !!!',0 |
804 | no_file_name db '¢¥¤¨â¥ ¨¬ï ä ©« !!!',0 |
798 | invalid_rect db '¥¤®¯ãáâ¨¬ë¥ à §¬¥àë ®¡« áâ¨',0 |
805 | invalid_rect db '¥¤®¯ãáâ¨¬ë¥ à §¬¥àë ®¡« áâ¨',0 |
799 | 806 | ||
800 | else |
807 | else |
801 | text: |
808 | text: |
802 | .2 db 'Screen width:',0 |
809 | .2 db 'Screen width:',0 |
803 | .1 db 'Screen height:',0 |
810 | .1 db 'Screen height:',0 |
804 | .3 db 'Enter full path to the file:',0 |
811 | .3 db 'Enter full path to the file:',0 |
805 | .4 db 'Bits per pixel:',0 |
812 | .4 db 'Bits per pixel:',0 |
806 | .5 db 'Bytes per line:',0 |
813 | .5 db 'Bytes per line:',0 |
807 | .6 db '100 = 1 second',0 |
814 | .6 db '100 = 1 second',0 |
808 | ;.7: db 'Enter name of file:',0 |
815 | ;.7: db 'Enter name of file:',0 |
809 | ;.8: db 'Instead of "*" in filename the number will be included.',0 |
816 | ;.8: db 'Instead of "*" in filename the number will be included.',0 |
810 | .9 db 'Current photo number:',0 |
817 | .9 db 'Current photo number:',0 |
811 | .10 db 'Amount of digits in number:',0 |
818 | .10 db 'Amount of digits in number:',0 |
812 | 819 | ||
813 | but_text: |
820 | but_text: |
814 | .1 db 'Make screen photo',0 |
821 | .1 db 'Make screen photo',0 |
815 | .2 db 'Save screen photo',0 |
822 | .2 db 'Save screen photo',0 |
816 | .3 db 'Show photo now',0 |
823 | .3 db 'Show photo now',0 |
817 | .4 db 'Apply',0 |
824 | .4 db 'Apply',0 |
818 | .5 db 'Start autoshooting',0 |
825 | .5 db 'Start autoshooting',0 |
819 | .6 db 'Stop autoshooting',0 |
826 | .6 db 'Stop autoshooting',0 |
820 | .7 db 'Set',0 |
827 | .7 db 'Set',0 |
821 | 828 | ||
822 | ch_text: |
829 | ch_text: |
823 | .1 db 'Minimize window';,0 |
830 | .1 db 'Minimize window',0 |
824 | .2 db 'Show photo';,0 |
831 | .2 db 'Show photo',0 |
825 | .3 db 'then make active';,0 |
832 | .3 db 'then make active',0 |
826 | .4 db 'Delay:';,0 |
833 | .4 db 'Delay:',0 |
827 | .5 db 'Autosave';,0 |
834 | .5 db 'Autosave',0 |
828 | .6 db 'Start numeration from';,0 |
835 | .6 db 'Start numeration from',0 |
829 | .7 db 'Area' |
836 | .7 db 'Area',0 |
830 | .8: |
- | |
831 | 837 | ||
832 | no_shoot db 'There is no photo',0 |
838 | no_shoot db 'There is no photo',0 |
833 | shooting db 'Photographing...',0 |
839 | shooting db 'Photographing...',0 |
834 | shooted_ok db 'Photo created',0 |
840 | shooted_ok db 'Photo created',0 |
835 | saving db 'Saving...',0 |
841 | saving db 'Saving...',0 |
836 | saved_ok db 'Photo saved',0 |
842 | saved_ok db 'Photo saved',0 |
837 | delay_now db 'Delay...',0 |
843 | delay_now db 'Delay...',0 |
838 | bad_file_name db 'File name is wrong',0 |
844 | bad_file_name db 'File name is wrong',0 |
839 | disk_filled db 'Disk is full',0 |
845 | disk_filled db 'Disk is full',0 |
840 | bad_fat_table db 'FAT table destroyed',0 |
846 | bad_fat_table db 'FAT table destroyed',0 |
841 | ac_den db 'Access denied',0 |
847 | ac_den db 'Access denied',0 |
842 | device_er db 'Device error',0 |
848 | device_er db 'Device error',0 |
843 | not_shooted db 'Make a photo !!!',0 |
849 | not_shooted db 'Make a photo !!!',0 |
844 | no_file_name db 'Enter file name !!!',0 |
850 | no_file_name db 'Enter file name !!!',0 |
845 | invalid_rect db 'Wrong area size',0 |
851 | invalid_rect db 'Wrong area size',0 |
846 | 852 | ||
847 | end if |
853 | end if |
848 | 854 | ||
849 | ;--------------------------------------------------------------------- |
855 | ;--------------------------------------------------------------------- |
850 | PathShow_data_1: |
856 | PathShow_data_1: |
851 | .type dd 0 ;+0 |
857 | .type dd 0 ;+0 |
852 | .start_y dw 38 ;+4 |
858 | .start_y dw 38 ;+4 |
853 | .start_x dw 6 ;+6 |
859 | .start_x dw 6 ;+6 |
854 | .font_size_x dw 6 ;+8 ; 6 - for font 0, 8 - for font 1 |
860 | .font_size_x dw 6 ;+8 ; 6 - for font 0, 8 - for font 1 |
855 | .area_size_x dw 300 ;+10 |
861 | .area_size_x dw 300 ;+10 |
856 | .font_number dd 0 ;+12 ; 0 - monospace, 1 - variable |
862 | .font_number dd 0 ;+12 ; 0 - monospace, 1 - variable |
857 | .background_flag dd 0 ;+16 |
863 | .background_flag dd 0 ;+16 |
858 | .font_color dd 0x0 ;+20 |
864 | .font_color dd 0x0 ;+20 |
859 | .background_color dd 0x0 ;+24 |
865 | .background_color dd 0x0 ;+24 |
860 | .text_pointer dd fname_buf ;+28 |
866 | .text_pointer dd fname_buf ;+28 |
861 | .work_area_pointer dd text_work_area ;+32 |
867 | .work_area_pointer dd text_work_area ;+32 |
862 | .temp_text_length dd 0 ;+36 |
868 | .temp_text_length dd 0 ;+36 |
863 | ;--------------------------------------------------------------------- |
869 | ;--------------------------------------------------------------------- |
864 | OpenDialog_data: |
870 | OpenDialog_data: |
865 | .type dd 1 ; Save |
871 | .type dd 1 ; Save |
866 | .procinfo dd procinfo ;+4 |
872 | .procinfo dd procinfo ;+4 |
867 | .com_area_name dd communication_area_name ;+8 |
873 | .com_area_name dd communication_area_name ;+8 |
868 | .com_area dd 0 ;+12 |
874 | .com_area dd 0 ;+12 |
869 | .opendir_pach dd temp_dir_pach ;+16 |
875 | .opendir_pach dd temp_dir_pach ;+16 |
870 | .dir_default_pach dd communication_area_default_pach ;+20 |
876 | .dir_default_pach dd communication_area_default_pach ;+20 |
871 | .start_path dd open_dialog_path ;+24 |
877 | .start_path dd open_dialog_path ;+24 |
872 | .draw_window dd draw_window ;+28 |
878 | .draw_window dd draw_window ;+28 |
873 | .status dd 0 ;+32 |
879 | .status dd 0 ;+32 |
874 | .openfile_pach dd fname_buf ;+36 |
880 | .openfile_pach dd fname_buf ;+36 |
875 | .filename_area dd filename_area ;+40 |
881 | .filename_area dd filename_area ;+40 |
876 | .filter_area dd Filter |
882 | .filter_area dd Filter |
877 | .x: |
883 | .x: |
878 | .x_size dw 420 ;+48 ; Window X size |
884 | .x_size dw 420 ;+48 ; Window X size |
879 | .x_start dw 10 ;+50 ; Window X position |
885 | .x_start dw 10 ;+50 ; Window X position |
880 | .y: |
886 | .y: |
881 | .y_size dw 320 ;+52 ; Window y size |
887 | .y_size dw 320 ;+52 ; Window y size |
882 | .y_start dw 10 ;+54 ; Window Y position |
888 | .y_start dw 10 ;+54 ; Window Y position |
883 | 889 | ||
884 | communication_area_name: |
890 | communication_area_name: |
885 | db 'FFFFFFFF_open_dialog',0 |
891 | db 'FFFFFFFF_open_dialog',0 |
886 | open_dialog_path: |
892 | open_dialog_path: |
887 | db '/sys/File Managers/opendial',0 |
893 | db '/sys/File Managers/opendial',0 |
888 | communication_area_default_pach: |
894 | communication_area_default_pach: |
889 | db '/sys',0 |
895 | db '/sys',0 |
890 | 896 | ||
891 | Filter: |
897 | Filter: |
892 | dd Filter.end - Filter |
898 | dd Filter.end - Filter |
893 | .1: |
899 | .1: |
894 | db 'BMP',0 |
900 | db 'BMP',0 |
895 | .end: |
901 | .end: |
896 | db 0 |
902 | db 0 |
897 | 903 | ||
898 | start_temp_file_name: db '1.bmp',0 |
904 | start_temp_file_name: db '1.bmp',0 |
899 | 905 | ||
900 | ;--------------------------------------------------------------------- |
906 | ;--------------------------------------------------------------------- |
901 | sign_n_input: |
907 | sign_n_input: |
902 | db '2',0 |
908 | db '2',0 |
903 | 909 | ||
904 | PrintScreen db 0 |
910 | PrintScreen db 0 |
905 | autoshoot_flag db 0 |
911 | autoshoot_flag db 0 |
906 | 912 | ||
907 | app_ipc ipc_buffer 32 |
913 | app_ipc ipc_buffer 32 |
908 | align 4 |
914 | align 4 |
909 | 915 | ||
910 | mouse_flag: dd 0x0 |
916 | mouse_flag: dd 0x0 |
911 | ;--------------------------------------------------------------------- |
917 | ;--------------------------------------------------------------------- |
912 | align 4 |
918 | align 4 |
913 | 919 | ||
914 | ed_buffer: |
920 | ed_buffer: |
915 | .1: db '/sys/1.bmp',0 |
921 | .1: db '/sys/1.bmp',0 |
916 | ;rb 287 |
922 | ;rb 287 |
917 | .2: |
923 | .2: |
918 | db '100',0 |
924 | db '100',0 |
919 | rb 6 |
925 | rb 6 |
920 | .3: |
926 | .3: |
921 | rb 10 |
927 | rb 10 |
922 | ;--------------------------------------------------------------------- |
928 | ;--------------------------------------------------------------------- |
923 | IM_END: |
929 | IM_END: |
924 | ;--------------------------------------------------------------------- |
930 | ;--------------------------------------------------------------------- |
925 | structure_of_potock: |
931 | structure_of_potock: |
926 | rb 100 |
932 | rb 100 |
927 | ;--------------------------------------------------------------------- |
933 | ;--------------------------------------------------------------------- |
928 | align 4 |
934 | align 4 |
929 | 935 | ||
930 | cur_number dd ? |
936 | cur_number dd ? |
931 | 937 | ||
932 | sign_n db ? |
938 | sign_n db ? |
933 | 939 | ||
934 | slot_n dd ? |
940 | slot_n dd ? |
935 | 941 | ||
936 | flags dd ? |
942 | flags dd ? |
937 | 943 | ||
938 | scr_buf: |
944 | scr_buf: |
939 | .ptr dd ? |
945 | .ptr dd ? |
940 | .end_ptr dd ? |
946 | .end_ptr dd ? |
941 | .size: |
947 | .size: |
942 | .height dw ? |
948 | .height dw ? |
943 | .width dw ? |
949 | .width dw ? |
944 | 950 | ||
945 | fs_struc: |
951 | fs_struc: |
946 | .funk_n dd ? |
952 | .funk_n dd ? |
947 | dd ? |
953 | dd ? |
948 | dd ? |
954 | dd ? |
949 | .bytes_to_write dd ? |
955 | .bytes_to_write dd ? |
950 | .data_ptr dd ?,? |
956 | .data_ptr dd ?,? |
951 | .fn_ptr dd ? |
957 | .fn_ptr dd ? |
952 | 958 | ||
953 | sf_buf: |
959 | sf_buf: |
954 | .bmp_header dd ? |
960 | .bmp_header dd ? |
955 | .bmp_area dd ? |
961 | .bmp_area dd ? |
956 | .end dd ? |
962 | .end dd ? |
957 | 963 | ||
958 | set_rect_window_pid dd ? |
964 | set_rect_window_pid dd ? |
959 | set_rect_window_slot dd ? |
965 | set_rect_window_slot dd ? |
960 | ;--------------------------------------------------------------------- |
966 | ;--------------------------------------------------------------------- |
961 | align 4 |
967 | align 4 |
962 | rect_input_buffer: |
968 | rect_input_buffer: |
963 | .left rb 6 |
969 | .left rb 6 |
964 | .top rb 6 |
970 | .top rb 6 |
965 | .width rb 6 |
971 | .width rb 6 |
966 | .height rb 6 |
972 | .height rb 6 |
967 | 973 | ||
968 | cmdstr rb 257 |
974 | cmdstr rb 257 |
969 | ;--------------------------------------------------------------------- |
975 | ;--------------------------------------------------------------------- |
970 | align 4 |
976 | align 4 |
971 | 977 | ||
972 | file_name: |
978 | file_name: |
973 | rb 1058 |
979 | rb 1058 |
974 | 980 | ||
975 | scr screen_prop |
981 | scr screen_prop |
976 | rect: |
982 | rect: |
977 | .left dw ? |
983 | .left dw ? |
978 | .top dw ? |
984 | .top dw ? |
979 | .height dw ? |
985 | .height dw ? |
980 | .width dw ? |
986 | .width dw ? |
981 | 987 | ||
982 | sc sys_color_table |
988 | sc sys_color_table |
983 | app procinfo ; ¨ä®à¬ æ¨ï ® £« ¢®¬ ®ª¥ |
989 | app procinfo ; ¨ä®à¬ æ¨ï ® £« ¢®¬ ®ª¥ |
984 | active_app procinfo ; ¨ä®à¬ æ¨ï ®¡ ªâ¨¢®¬ ®ª¥ |
990 | active_app procinfo ; ¨ä®à¬ æ¨ï ®¡ ªâ¨¢®¬ ®ª¥ |
985 | set_rect_window_procinfo procinfo ; ¨ä®à¬ æ¨ï ®¡ ®ª¥ ®¡« á⨠|
991 | set_rect_window_procinfo procinfo ; ¨ä®à¬ æ¨ï ®¡ ®ª¥ ®¡« á⨠|
986 | ;--------------------------------------------------------------------- |
992 | ;--------------------------------------------------------------------- |
987 | rb 512 ; á⥪ ¯®â®ª ä®âª ìï |
993 | rb 512 ; á⥪ ¯®â®ª ä®âª ìï |
988 | shoot_esp: |
994 | shoot_esp: |
989 | ;--------------------------------------------------------------------- |
995 | ;--------------------------------------------------------------------- |
990 | rb 512 ; á⥪ ®ª ®¡« á⨠|
996 | rb 512 ; á⥪ ®ª ®¡« á⨠|
991 | set_rect_window_esp: |
997 | set_rect_window_esp: |
992 | ;--------------------------------------------------------------------- |
998 | ;--------------------------------------------------------------------- |
993 | ; app_end ; ª®¥æ ¯à®£à ¬¬ë |
999 | ; app_end ; ª®¥æ ¯à®£à ¬¬ë |
994 | mouse_dd rd 1 |
1000 | mouse_dd rd 1 |
995 | ;--------------------------------------------------------------------- |
1001 | ;--------------------------------------------------------------------- |
996 | align 4 |
1002 | align 4 |
997 | cur_dir_path: |
1003 | cur_dir_path: |
998 | rb 4096 |
1004 | rb 4096 |
999 | ;--------------------------------------------------------------------- |
1005 | ;--------------------------------------------------------------------- |
1000 | library_path: |
1006 | library_path: |
1001 | rb 4096 |
1007 | rb 4096 |
1002 | ;--------------------------------------------------------------------- |
1008 | ;--------------------------------------------------------------------- |
1003 | temp_dir_pach: |
1009 | temp_dir_pach: |
1004 | rb 4096 |
1010 | rb 4096 |
1005 | ;--------------------------------------------------------------------- |
1011 | ;--------------------------------------------------------------------- |
1006 | text_work_area: |
1012 | text_work_area: |
1007 | rb 1024 |
1013 | rb 1024 |
1008 | ;--------------------------------------------------------------------- |
1014 | ;--------------------------------------------------------------------- |
1009 | fname_buf: |
1015 | fname_buf: |
1010 | rb 4096 |
1016 | rb 4096 |
1011 | ;--------------------------------------------------------------------- |
1017 | ;--------------------------------------------------------------------- |
1012 | procinfo: |
1018 | procinfo: |
1013 | rb 1024 |
1019 | rb 1024 |
1014 | ;--------------------------------------------------------------------- |
1020 | ;--------------------------------------------------------------------- |
1015 | filename_area: |
1021 | filename_area: |
1016 | rb 256 |
1022 | rb 256 |
1017 | ;--------------------------------------------------------------------- |
1023 | ;--------------------------------------------------------------------- |
1018 | rb 1024 |
1024 | rb 1024 |
1019 | i_end_tread: |
1025 | i_end_tread: |
1020 | ;--------------------------------------------------------------------- |
1026 | ;--------------------------------------------------------------------- |
1021 | rb 1024 |
1027 | rb 1024 |
1022 | stacktop: |
1028 | stacktop: |
1023 | ;--------------------------------------------------------------------- |
1029 | ;--------------------------------------------------------------------- |
1024 | i_end:35,15>4,302> |
1030 | i_end:35,15>4,302> |