2010-09-08 15:39:41 +04:00
|
|
|
|
;
|
|
|
|
|
; Screenshooter for Kolibri
|
|
|
|
|
;
|
2016-11-26 17:22:34 +03:00
|
|
|
|
;---------------------------------------------------------------------
|
|
|
|
|
; <20><><EFBFBD><EFBFBD><EFBFBD> <20>ணࠬ<E0AEA3><E0A0AC> <20><><EFBFBD><EFBFBD>客 <20><><EFBFBD>ᨬ (Maxxxx32)
|
|
|
|
|
;
|
|
|
|
|
; 26.11.16 - IgorA ᭨<><E1ADA8><EFBFBD> <20><><EFBFBD>࠭<EFBFBD><E0A0AD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> <20><>ଠ<EFBFBD><E0ACA0> *.png
|
|
|
|
|
; 02.11.10 - <20>ᯮ<EFBFBD><E1AFAE><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> checkbox <20><><EFBFBD>ᨨ 2
|
|
|
|
|
;
|
2011-09-30 01:51:28 +04:00
|
|
|
|
; version: 1.2
|
2010-09-08 15:39:41 +04:00
|
|
|
|
; last update: 08/09/2010
|
|
|
|
|
; written by: Marat Zakiyanov aka Mario79, aka Mario
|
|
|
|
|
; changes: select path for save with OpenDialog,
|
|
|
|
|
; bag fix for threads stacks
|
2016-11-26 17:22:34 +03:00
|
|
|
|
; 01.06.09 - <Lrz> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> <20><><EFBFBD>⥬<EFBFBD><E2A5AC><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>⥪<EFBFBD>
|
|
|
|
|
; 24.07.08 - <Lrz> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> editbox
|
2007-02-01 12:46:48 +03:00
|
|
|
|
; 01.02.07 - <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> editbox
|
|
|
|
|
; 31.01.07 - <20><><EFBFBD> ⥯<><E2A5AF><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>⭮<EFBFBD><E2ADAE>⥫쭮 <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
2016-11-26 17:22:34 +03:00
|
|
|
|
|
2006-11-02 17:18:23 +03:00
|
|
|
|
|
2014-11-03 16:01:35 +03:00
|
|
|
|
format binary as ""
|
|
|
|
|
|
2020-04-28 17:50:37 +03:00
|
|
|
|
title equ 'Screenshooter v1.21' ; <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
|
2020-12-09 00:01:35 +03:00
|
|
|
|
include '../../load_lib.mac'
|
2010-01-10 01:01:26 +03:00
|
|
|
|
include '../../develop/libraries/box_lib/trunk/box_lib.mac'
|
2010-11-15 21:47:23 +03:00
|
|
|
|
include '../../config.inc' ;for nightbuild
|
2016-11-26 17:22:34 +03:00
|
|
|
|
include '../../proc32.inc'
|
2009-06-01 22:25:07 +04:00
|
|
|
|
include '../../macros.inc'
|
2016-11-26 17:22:34 +03:00
|
|
|
|
include '../../KOSfuncs.inc'
|
|
|
|
|
include '../../develop/libraries/libs-dev/libimg/libimg.inc'
|
2009-06-01 22:25:07 +04:00
|
|
|
|
include 'txtbut.inc'
|
|
|
|
|
include 'label.inc'
|
|
|
|
|
include 'textwork.inc'
|
2009-10-23 18:36:21 +04:00
|
|
|
|
include 'scrshoot.mac'
|
2009-06-01 22:25:07 +04:00
|
|
|
|
|
2010-01-10 01:01:26 +03:00
|
|
|
|
use32
|
2020-12-09 00:01:35 +03:00
|
|
|
|
org 0
|
2009-06-01 22:25:07 +04:00
|
|
|
|
db 'MENUET01'
|
2020-12-09 00:01:35 +03:00
|
|
|
|
dd 1, start, IM_END, i_end, stacktop, cmdstr, cur_dir_path
|
2009-06-01 22:25:07 +04:00
|
|
|
|
|
2016-11-27 01:57:24 +03:00
|
|
|
|
include 'lang.inc'
|
2016-11-26 17:22:34 +03:00
|
|
|
|
include '../../dll.inc'
|
|
|
|
|
|
2009-06-01 22:25:07 +04:00
|
|
|
|
align 4
|
2020-12-09 00:01:35 +03:00
|
|
|
|
@use_library mem.Alloc,mem.Free,mem.ReAlloc,dll.Load
|
2010-01-10 01:01:26 +03:00
|
|
|
|
use_txt_button ; |
|
|
|
|
|
use_label ; |-- GUI <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD>楤<EFBFBD><E6A5A4><EFBFBD>
|
|
|
|
|
use_text_work ; /
|
2016-11-27 01:57:24 +03:00
|
|
|
|
|
2009-10-23 18:36:21 +04:00
|
|
|
|
include 'scrwin.inc' ; <20><>⠢<EFBFBD>塞 <20><><EFBFBD> <20><><EFBFBD><EFBFBD> <20>य<EFBFBD><E0A4AF>ᬮ<EFBFBD><E1ACAE><EFBFBD>
|
|
|
|
|
include 'scrsavef.inc'; <20><>⠢<EFBFBD>塞 <20><><EFBFBD>楤<EFBFBD><E6A5A4><EFBFBD> <20><><EFBFBD>࠭<EFBFBD><E0A0AD><EFBFBD><EFBFBD> 䠩<><E4A0A9>
|
2007-02-01 12:46:48 +03:00
|
|
|
|
include 'gp.inc'
|
|
|
|
|
include 'srectwin.inc'
|
2010-01-10 01:01:26 +03:00
|
|
|
|
|
|
|
|
|
macro get_sys_colors col_buf
|
|
|
|
|
{
|
2016-11-26 17:22:34 +03:00
|
|
|
|
mcall SF_STYLE_SETTINGS, SSF_GET_COLORS, col_buf, 40
|
2010-01-10 01:01:26 +03:00
|
|
|
|
}
|
|
|
|
|
|
2006-11-02 17:18:23 +03:00
|
|
|
|
;--- <20><>砫<EFBFBD> <20>ணࠬ<E0AEA3><E0A0AC> ---
|
2009-06-01 22:25:07 +04:00
|
|
|
|
align 4
|
|
|
|
|
start:
|
2010-09-08 15:39:41 +04:00
|
|
|
|
|
|
|
|
|
load_libraries l_libs_start,end_l_libs
|
|
|
|
|
|
2009-06-01 22:25:07 +04:00
|
|
|
|
;if return code =-1 then exit, else nornary work
|
|
|
|
|
; cmp eax,-1
|
2010-01-10 01:01:26 +03:00
|
|
|
|
inc eax
|
|
|
|
|
test eax,eax
|
|
|
|
|
jz close
|
2009-06-01 22:25:07 +04:00
|
|
|
|
;;;;;;;;;;;;;;;; init memory 68/11
|
2016-11-26 17:22:34 +03:00
|
|
|
|
mcall SF_SYS_MISC, SSF_HEAP_INIT
|
2010-01-10 01:01:26 +03:00
|
|
|
|
test eax,eax
|
|
|
|
|
jz close
|
|
|
|
|
|
2010-09-08 15:39:41 +04:00
|
|
|
|
;---------------------------------------------------------------------
|
|
|
|
|
mov edi,filename_area
|
|
|
|
|
mov esi,start_temp_file_name
|
|
|
|
|
xor eax,eax
|
|
|
|
|
cld
|
|
|
|
|
@@:
|
|
|
|
|
lodsb
|
|
|
|
|
stosb
|
|
|
|
|
test eax,eax
|
|
|
|
|
jnz @b
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
mov edi,fname_buf
|
|
|
|
|
mov esi,ed_buffer.1
|
|
|
|
|
xor eax,eax
|
|
|
|
|
cld
|
|
|
|
|
@@:
|
|
|
|
|
lodsb
|
|
|
|
|
stosb
|
|
|
|
|
test eax,eax
|
|
|
|
|
jnz @b
|
|
|
|
|
|
|
|
|
|
;OpenDialog initialisation
|
2016-11-26 17:22:34 +03:00
|
|
|
|
stdcall [OpenDialog_Init], OpenDialog_data
|
2010-09-08 15:39:41 +04:00
|
|
|
|
|
|
|
|
|
; prepare for PathShow
|
2016-11-26 17:22:34 +03:00
|
|
|
|
stdcall [PathShow_prepare], PathShow_data_1
|
2010-09-08 15:39:41 +04:00
|
|
|
|
;---------------------------------------------------------------------
|
2010-01-10 01:01:26 +03:00
|
|
|
|
;mov al,[gs:1280*4*1024]
|
|
|
|
|
; <20><>⠭<EFBFBD><E2A0AD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ipc <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
xor ebx,ebx
|
|
|
|
|
inc ebx
|
2016-11-26 17:22:34 +03:00
|
|
|
|
mcall SF_IPC,, app_ipc, 32
|
2010-01-10 01:01:26 +03:00
|
|
|
|
|
2016-11-26 17:22:34 +03:00
|
|
|
|
; <20><>⠭<EFBFBD><E2A0AD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
2010-01-10 01:01:26 +03:00
|
|
|
|
mov cl,55 ; 55 - PrintScrn
|
|
|
|
|
xor edx,edx
|
2016-11-26 17:22:34 +03:00
|
|
|
|
mcall SF_KEYBOARD, SSF_SET_SYS_HOTKEY
|
2010-01-10 01:01:26 +03:00
|
|
|
|
|
|
|
|
|
mov ebx,app
|
|
|
|
|
call get_slot_n
|
|
|
|
|
mov [slot_n],ecx
|
|
|
|
|
|
|
|
|
|
; <20><>⠭<EFBFBD><E2A0AD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD> ᮡ<>⨩
|
|
|
|
|
set_events_mask (evm_redraw+evm_key+evm_button+evm_mouse+evm_ipc)
|
2010-11-03 10:48:27 +03:00
|
|
|
|
;<3B><><EFBFBD>樠<EFBFBD><E6A8A0><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> checkboxes
|
|
|
|
|
init_checkboxes2 check_boxes,check_boxes_end
|
2006-11-02 17:18:23 +03:00
|
|
|
|
|
|
|
|
|
; <20> <20><>룠<EFBFBD><EBA3A0> <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ᮢ<EFBFBD><E1AEA2>
|
|
|
|
|
red:
|
2010-01-10 01:01:26 +03:00
|
|
|
|
get_procinfo app ; <20><><EFBFBD><EFBFBD>砥<EFBFBD> <20><><EFBFBD><EFBFBD>ଠ<EFBFBD><E0ACA0><EFBFBD> <20> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
get_sys_colors sc ; <20><><EFBFBD><EFBFBD>砥<EFBFBD> <20><><EFBFBD>⥬<EFBFBD><E2A5AC><EFBFBD> 梥<><E6A2A5>
|
2006-11-02 17:18:23 +03:00
|
|
|
|
|
2010-01-10 01:01:26 +03:00
|
|
|
|
; <20><>⠭<EFBFBD><E2A0AD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD>⥬<EFBFBD><E2A5AC><EFBFBD> 梥<><E6A2A5> <20> GUI <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>⮢
|
|
|
|
|
txt_but_set_sys_color buttons,buttons_end,sc ; \
|
|
|
|
|
labels_set_sys_color labels,labels_end,sc ; |
|
2010-11-03 10:48:27 +03:00
|
|
|
|
check_boxes_set_sys_color2 check_boxes,check_boxes_end,sc; |
|
2010-01-10 01:01:26 +03:00
|
|
|
|
edit_boxes_set_sys_color editboxes,editboxes_end,sc ; /
|
2006-11-02 17:18:23 +03:00
|
|
|
|
|
2010-01-10 01:01:26 +03:00
|
|
|
|
get_screen_prop scr ; <20><><EFBFBD><EFBFBD>砥<EFBFBD> <20><><EFBFBD><EFBFBD>ଠ<EFBFBD><E0ACA0><EFBFBD> <20><> <20><>࠭<EFBFBD>
|
2012-04-18 18:36:32 +04:00
|
|
|
|
;------------------------------------------------------------------------------
|
|
|
|
|
; Boot with "DIRECT" parameter - get screen and save
|
|
|
|
|
mov eax,cmdstr
|
|
|
|
|
cmp [eax],byte 0
|
|
|
|
|
je no_boot
|
|
|
|
|
|
|
|
|
|
cmp [eax],dword 'DIRE'
|
|
|
|
|
jne no_boot
|
|
|
|
|
|
|
|
|
|
cmp [eax+4],word 'CT'
|
|
|
|
|
jne no_boot
|
|
|
|
|
|
|
|
|
|
and [ch2.flags],dword 0
|
|
|
|
|
or [ch5.flags],dword 1
|
|
|
|
|
mov [OpenDialog_data.draw_window],dword draw_window_direct
|
|
|
|
|
|
|
|
|
|
call shoot
|
|
|
|
|
jmp close
|
|
|
|
|
;------------------------------------------------------------------------------
|
|
|
|
|
draw_window_direct:
|
2016-11-26 17:22:34 +03:00
|
|
|
|
mcall SF_REDRAW, SSF_BEGIN_DRAW
|
|
|
|
|
mcall SF_GET_SCREEN_SIZE
|
2012-04-18 18:36:32 +04:00
|
|
|
|
; eax = [xsize]*65536 + [ysize]
|
|
|
|
|
mov ebx,eax
|
|
|
|
|
shr ebx,17
|
|
|
|
|
sub ebx,100
|
|
|
|
|
shl ebx,16
|
|
|
|
|
mov bx,200
|
|
|
|
|
mov ecx,eax
|
|
|
|
|
and ecx,0xffff
|
|
|
|
|
shr ecx,1
|
|
|
|
|
sub ecx,50
|
|
|
|
|
shl ecx,16
|
|
|
|
|
mov cx,100
|
|
|
|
|
xor esi,esi
|
2016-11-26 17:22:34 +03:00
|
|
|
|
mcall SF_CREATE_WINDOW,,,0x34ffffff,,grab_text
|
2012-04-18 18:36:32 +04:00
|
|
|
|
|
2016-11-26 17:22:34 +03:00
|
|
|
|
mcall SF_DRAW_TEXT, <10,30>,0x90000000,saving
|
2012-04-18 18:36:32 +04:00
|
|
|
|
|
2016-11-26 17:22:34 +03:00
|
|
|
|
mcall SF_REDRAW, SSF_END_DRAW
|
2012-04-18 18:36:32 +04:00
|
|
|
|
ret
|
|
|
|
|
;------------------------------------------------------------------------------
|
|
|
|
|
no_boot:
|
2010-01-10 01:01:26 +03:00
|
|
|
|
call draw_window ; <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ᮢ뢠<E1AEA2><EBA2A0> <20><><EFBFBD><EFBFBD>
|
2006-11-02 17:18:23 +03:00
|
|
|
|
still:
|
2010-01-10 01:01:26 +03:00
|
|
|
|
wait_event red,key,button,mouse,ipc,still ; <20><><EFBFBD><EFBFBD> ᮡ<>⨩
|
2006-11-02 17:18:23 +03:00
|
|
|
|
|
|
|
|
|
key:
|
2010-01-10 01:01:26 +03:00
|
|
|
|
get_key
|
|
|
|
|
cmp al,2
|
|
|
|
|
jne @f
|
|
|
|
|
cmp ah,55
|
2010-09-08 15:39:41 +04:00
|
|
|
|
jne still
|
|
|
|
|
mov [PrintScreen],1
|
2010-01-10 01:01:26 +03:00
|
|
|
|
call shoot
|
2010-09-08 15:39:41 +04:00
|
|
|
|
mov [PrintScreen],0
|
2010-01-10 01:01:26 +03:00
|
|
|
|
jmp still
|
2006-11-02 17:18:23 +03:00
|
|
|
|
@@:
|
2016-11-26 17:22:34 +03:00
|
|
|
|
; stdcall [edit_box_key], edit1
|
|
|
|
|
stdcall [edit_box_key], edit2
|
|
|
|
|
stdcall [edit_box_key], edit3
|
2009-06-01 22:25:07 +04:00
|
|
|
|
|
2010-01-10 01:01:26 +03:00
|
|
|
|
jmp still
|
2006-11-02 17:18:23 +03:00
|
|
|
|
button:
|
2010-01-10 01:01:26 +03:00
|
|
|
|
get_pressed_button
|
|
|
|
|
cmp ah,1
|
|
|
|
|
je p_close
|
|
|
|
|
txt_but_ev buttons,buttons_end
|
|
|
|
|
jmp still
|
2006-11-02 17:18:23 +03:00
|
|
|
|
mouse:
|
2010-01-10 01:01:26 +03:00
|
|
|
|
get_active_window
|
|
|
|
|
cmp eax,[slot_n]
|
|
|
|
|
jne still
|
2009-06-01 22:25:07 +04:00
|
|
|
|
;----------------------------------
|
2016-11-26 17:22:34 +03:00
|
|
|
|
; stdcall [edit_box_mouse], edit1
|
|
|
|
|
stdcall [edit_box_mouse], edit2
|
|
|
|
|
stdcall [edit_box_mouse], edit3
|
2009-06-01 22:25:07 +04:00
|
|
|
|
;----------------------------------
|
2010-11-03 10:48:27 +03:00
|
|
|
|
checkboxes_mouse2 check_boxes,check_boxes_end
|
2009-06-01 22:25:07 +04:00
|
|
|
|
;-----------------------------------
|
2010-01-10 01:01:26 +03:00
|
|
|
|
jmp still
|
2006-11-02 17:18:23 +03:00
|
|
|
|
ipc:
|
2010-01-10 01:01:26 +03:00
|
|
|
|
cmp word [app_ipc+8],2
|
|
|
|
|
jne @f
|
|
|
|
|
min_window
|
|
|
|
|
jmp .clear_ipc
|
2006-11-02 17:18:23 +03:00
|
|
|
|
@@:
|
2010-01-10 01:01:26 +03:00
|
|
|
|
cmp word [app_ipc+8],3
|
|
|
|
|
jne @f
|
|
|
|
|
mov ecx,[slot_n]
|
|
|
|
|
activ_window
|
|
|
|
|
jmp .clear_ipc
|
2009-06-02 22:09:29 +04:00
|
|
|
|
@@:
|
2010-01-10 01:01:26 +03:00
|
|
|
|
call draw_number
|
|
|
|
|
call dr_st
|
2006-11-02 17:18:23 +03:00
|
|
|
|
|
|
|
|
|
.clear_ipc:
|
2010-01-10 01:01:26 +03:00
|
|
|
|
cld
|
|
|
|
|
xor eax,eax
|
|
|
|
|
mov ecx,32/4
|
|
|
|
|
mov edi,app_ipc
|
|
|
|
|
rep stosd
|
|
|
|
|
jmp still
|
2006-11-02 17:18:23 +03:00
|
|
|
|
|
|
|
|
|
p_close:
|
2010-01-10 01:01:26 +03:00
|
|
|
|
btr dword [flags],1
|
|
|
|
|
|
|
|
|
|
bt dword [flags],3
|
|
|
|
|
jnc @f
|
2016-11-26 17:22:34 +03:00
|
|
|
|
mcall SF_SYSTEM, SSF_TERMINATE_THREAD_ID, [set_rect_window_pid]
|
2007-02-01 12:46:48 +03:00
|
|
|
|
@@:
|
|
|
|
|
|
2006-11-02 17:18:23 +03:00
|
|
|
|
close:
|
2010-01-10 01:01:26 +03:00
|
|
|
|
app_close
|
2006-11-02 17:18:23 +03:00
|
|
|
|
|
2010-09-08 15:39:41 +04:00
|
|
|
|
;---------------------------------------------------------------------
|
|
|
|
|
draw_PathShow:
|
|
|
|
|
pusha
|
2016-11-26 17:22:34 +03:00
|
|
|
|
mcall SF_DRAW_RECT, <4,302>, <35,15>, 0xffffff
|
2010-09-08 15:39:41 +04:00
|
|
|
|
; draw for PathShow
|
|
|
|
|
push dword PathShow_data_1
|
|
|
|
|
call [PathShow_draw]
|
|
|
|
|
popa
|
|
|
|
|
ret
|
2006-11-02 17:18:23 +03:00
|
|
|
|
;--------------------------------------------------------------------
|
|
|
|
|
;--- <20>ம楤<E0AEAE><E6A5A4><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ᮢ<EFBFBD><E1AEA2> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> ---------------------------
|
|
|
|
|
;--------------------------------------------------------------------
|
|
|
|
|
draw_window:
|
2010-01-10 01:01:26 +03:00
|
|
|
|
start_draw_window ; <20><>砫<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ᮢ<EFBFBD><E1AEA2>
|
|
|
|
|
; <20><>।<EFBFBD><E0A5A4>塞 <20><><EFBFBD><EFBFBD>
|
|
|
|
|
get_skin_height
|
|
|
|
|
mov ecx,100*65536+220
|
|
|
|
|
add cx,ax
|
|
|
|
|
mov edx,[sc.work]
|
|
|
|
|
or edx,0x34000000;0x33000000
|
|
|
|
|
xor esi,esi
|
|
|
|
|
;xor edi,edi
|
|
|
|
|
mov edi,grab_text
|
2016-11-26 17:22:34 +03:00
|
|
|
|
mcall SF_CREATE_WINDOW, 100*65536+320
|
2010-01-10 01:01:26 +03:00
|
|
|
|
|
2016-11-26 17:22:34 +03:00
|
|
|
|
; <20>뢮<EFBFBD><EBA2AE><EFBFBD> <20><> <20> <20><><EFBFBD><EFBFBD>
|
2010-01-10 01:01:26 +03:00
|
|
|
|
movsx ecx,word [scr.width] ; <20><>ਭ<EFBFBD> <20><>࠭<EFBFBD>
|
2020-04-28 17:50:37 +03:00
|
|
|
|
mcall SF_DRAW_NUMBER, <4,0>, , <188,[label1.top]>, [sc.work_text]
|
2010-01-10 01:01:26 +03:00
|
|
|
|
movsx ecx,word [scr.height] ; <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><>࠭<EFBFBD>
|
2020-04-28 17:50:37 +03:00
|
|
|
|
add edx, 37 shl 16
|
2010-01-10 01:01:26 +03:00
|
|
|
|
mcall
|
2020-04-28 17:50:37 +03:00
|
|
|
|
add edx, 36 shl 16
|
2016-11-26 17:22:34 +03:00
|
|
|
|
mov ebx,2 shl 16
|
2010-01-10 01:01:26 +03:00
|
|
|
|
movsx ecx,word [scr.bitspp] ; <20><><EFBFBD> <20><> <20><><EFBFBD>ᥫ<EFBFBD>
|
|
|
|
|
mcall
|
|
|
|
|
|
|
|
|
|
call draw_number ; <20><><EFBFBD><EFBFBD><EFBFBD>ᮢ뢠<E1AEA2><EBA2A0> <20><><EFBFBD><EFBFBD><EFBFBD> ᭨<><E1ADA8><EFBFBD>
|
|
|
|
|
call dr_st
|
|
|
|
|
|
|
|
|
|
draw_labels labels,labels_end ; <20><>⪨
|
2009-06-01 22:25:07 +04:00
|
|
|
|
;------ show check editbox -----------
|
2016-11-26 17:22:34 +03:00
|
|
|
|
; stdcall [edit_box_draw], edit1
|
|
|
|
|
stdcall [edit_box_draw], edit2
|
|
|
|
|
stdcall [edit_box_draw], edit3
|
2009-06-01 22:25:07 +04:00
|
|
|
|
;------ end check all editbox -------
|
|
|
|
|
|
2010-09-08 15:39:41 +04:00
|
|
|
|
call draw_PathShow
|
|
|
|
|
|
2010-01-10 01:01:26 +03:00
|
|
|
|
draw_txt_buttons buttons,buttons_end ; <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
2009-06-01 22:25:07 +04:00
|
|
|
|
;------ check all checkbox ---------
|
2010-11-03 10:48:27 +03:00
|
|
|
|
|
|
|
|
|
checkboxes_draw2 check_boxes,check_boxes_end
|
|
|
|
|
|
2009-06-01 22:25:07 +04:00
|
|
|
|
;------ end check all checkbox ------
|
|
|
|
|
|
2006-11-02 17:18:23 +03:00
|
|
|
|
stop_draw_window ; <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ᮢ<EFBFBD><E1AEA2>
|
|
|
|
|
ret
|
|
|
|
|
|
|
|
|
|
shoot:
|
2010-01-10 01:01:26 +03:00
|
|
|
|
bt dword [ch4.flags],1 ; <20><><EFBFBD><EFBFBD>祭<EFBFBD> <20><> <20><><EFBFBD><EFBFBD>প<EFBFBD> ?
|
|
|
|
|
jnc @f
|
|
|
|
|
draw_status delay_now
|
|
|
|
|
mov edi,ed_buffer.2
|
|
|
|
|
call zstr_to_int
|
|
|
|
|
mov ebx,eax
|
|
|
|
|
delay
|
2006-11-02 17:18:23 +03:00
|
|
|
|
@@:
|
2010-01-10 01:01:26 +03:00
|
|
|
|
call get_mem_for_shoot; <20><><EFBFBD><EFBFBD>砥<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> ᭨<><E1ADA8><EFBFBD>
|
2006-11-02 17:18:23 +03:00
|
|
|
|
|
|
|
|
|
|
2010-01-10 01:01:26 +03:00
|
|
|
|
bts dword [flags],0 ; <20>㫥<EFBFBD><E3ABA5><EFBFBD> 䫠<> - ᭨<><E1ADA8><EFBFBD> <20><><EFBFBD><EFBFBD> <20> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
2006-11-02 17:18:23 +03:00
|
|
|
|
|
2010-01-10 01:01:26 +03:00
|
|
|
|
; <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ᭨<><E1ADA8><EFBFBD>
|
|
|
|
|
draw_status shooting
|
|
|
|
|
mov esi,scr
|
|
|
|
|
mov edi,[scr_buf.ptr]
|
|
|
|
|
call copy_screen_to_image
|
2006-11-02 17:18:23 +03:00
|
|
|
|
|
2010-01-10 01:01:26 +03:00
|
|
|
|
bt dword [use_rect.flags],1
|
|
|
|
|
jc .use_rect
|
|
|
|
|
push dword [scr]
|
|
|
|
|
jmp @f
|
2007-02-01 12:46:48 +03:00
|
|
|
|
.use_rect:
|
2010-01-10 01:01:26 +03:00
|
|
|
|
push dword [rect.height]
|
2007-02-01 12:46:48 +03:00
|
|
|
|
@@:
|
2010-01-10 01:01:26 +03:00
|
|
|
|
pop dword [scr_buf.size]
|
2006-11-02 17:18:23 +03:00
|
|
|
|
|
2010-09-09 00:00:04 +04:00
|
|
|
|
cmp [autoshoot_flag],1
|
|
|
|
|
jne .2
|
|
|
|
|
|
|
|
|
|
bt dword [ch5.flags],1 ; <20><><EFBFBD><EFBFBD>祭<EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>࠭<EFBFBD><E0A0AD><EFBFBD><EFBFBD> ?
|
|
|
|
|
jnc @f
|
|
|
|
|
call save_file
|
|
|
|
|
@@:
|
2010-01-10 01:01:26 +03:00
|
|
|
|
draw_status shooted_ok
|
2010-09-09 00:00:04 +04:00
|
|
|
|
.2:
|
2010-01-10 01:01:26 +03:00
|
|
|
|
bt dword [flags],1
|
|
|
|
|
jnc @f
|
|
|
|
|
ret
|
2006-11-02 17:18:23 +03:00
|
|
|
|
@@:
|
2010-01-10 01:01:26 +03:00
|
|
|
|
bt dword [ch2.flags],1 ; <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20>।<EFBFBD><E0A5A4><EFBFBD>ᬮ<EFBFBD><E1ACAE><EFBFBD> ?
|
|
|
|
|
jnc @f
|
2010-09-09 00:00:04 +04:00
|
|
|
|
cmp [PrintScreen],0
|
2010-09-08 15:39:41 +04:00
|
|
|
|
jne @f
|
2010-01-10 01:01:26 +03:00
|
|
|
|
call show_scr_window
|
2009-06-02 22:09:29 +04:00
|
|
|
|
ret
|
2006-11-02 17:18:23 +03:00
|
|
|
|
@@:
|
2010-09-08 15:39:41 +04:00
|
|
|
|
bt dword [ch5.flags],1 ; <20><><EFBFBD><EFBFBD>祭<EFBFBD> <20><> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>࠭<EFBFBD><E0A0AD><EFBFBD><EFBFBD> ?
|
|
|
|
|
jnc @f
|
|
|
|
|
|
2012-04-18 18:36:32 +04:00
|
|
|
|
call [OpenDialog_data.draw_window]
|
2010-09-08 15:39:41 +04:00
|
|
|
|
; invoke OpenDialog
|
2016-11-26 17:22:34 +03:00
|
|
|
|
stdcall [OpenDialog_Start], OpenDialog_data
|
2010-09-08 15:39:41 +04:00
|
|
|
|
cmp [OpenDialog_data.status],1
|
|
|
|
|
je .1
|
|
|
|
|
ret
|
|
|
|
|
.1:
|
|
|
|
|
; prepare for PathShow
|
2016-11-26 17:22:34 +03:00
|
|
|
|
stdcall [PathShow_prepare], PathShow_data_1
|
2012-04-18 18:36:32 +04:00
|
|
|
|
call [OpenDialog_data.draw_window]
|
2010-09-08 15:39:41 +04:00
|
|
|
|
call save_file
|
|
|
|
|
@@:
|
2020-04-28 17:50:37 +03:00
|
|
|
|
ret
|
2006-11-02 17:18:23 +03:00
|
|
|
|
|
2007-02-01 12:46:48 +03:00
|
|
|
|
;--- <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> ᭨<><E1ADA8><EFBFBD> ---
|
2006-11-02 17:18:23 +03:00
|
|
|
|
get_mem_for_shoot:
|
2009-06-01 22:25:07 +04:00
|
|
|
|
;clean memory
|
2016-11-26 17:22:34 +03:00
|
|
|
|
mcall SF_SYS_MISC, SSF_MEM_FREE, [scr_buf.ptr]
|
2010-01-10 01:01:26 +03:00
|
|
|
|
|
|
|
|
|
bt dword [use_rect.flags],1 ; <20><>⪠<EFBFBD><E2AAA0> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><>࠭<EFBFBD>
|
|
|
|
|
jc .use_area
|
|
|
|
|
movzx ecx, word [scr.width]
|
|
|
|
|
movzx ebx, word [scr.height]
|
|
|
|
|
jmp @f
|
2007-02-01 12:46:48 +03:00
|
|
|
|
.use_area:
|
2010-01-10 01:01:26 +03:00
|
|
|
|
call read_rect
|
|
|
|
|
movzx ecx, word [rect.width]
|
|
|
|
|
movzx ebx, word [rect.height]
|
2007-02-01 12:46:48 +03:00
|
|
|
|
@@:
|
2010-01-10 01:01:26 +03:00
|
|
|
|
imul ecx,ebx
|
|
|
|
|
lea ecx,[ecx*3]
|
2009-06-01 22:25:07 +04:00
|
|
|
|
; add ecx,i_end
|
2016-11-26 17:22:34 +03:00
|
|
|
|
mcall SF_SYS_MISC, SSF_MEM_ALLOC
|
2010-01-10 01:01:26 +03:00
|
|
|
|
mov [scr_buf.ptr],eax
|
|
|
|
|
add eax,ecx
|
|
|
|
|
mov [scr_buf.end_ptr],ecx
|
2006-11-02 17:18:23 +03:00
|
|
|
|
ret
|
|
|
|
|
|
2016-11-27 01:57:24 +03:00
|
|
|
|
;--- ᮤ<><E1AEA4><EFBFBD> <20><><EFBFBD><EFBFBD> <20>।<EFBFBD><E0A5A4><EFBFBD>ᬮ<EFBFBD><E1ACAE><EFBFBD> ---
|
2006-11-02 17:18:23 +03:00
|
|
|
|
show_scr_window:
|
|
|
|
|
pusha
|
2010-01-10 01:01:26 +03:00
|
|
|
|
bt dword [flags],0
|
|
|
|
|
jnc @f
|
|
|
|
|
xor ebx,ebx
|
|
|
|
|
inc ebx
|
2016-11-26 17:22:34 +03:00
|
|
|
|
mcall SF_CREATE_THREAD,, scr_window, i_end_tread-512
|
2006-11-02 17:18:23 +03:00
|
|
|
|
@@:
|
|
|
|
|
popa
|
|
|
|
|
ret
|
|
|
|
|
|
|
|
|
|
;--- <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20> <20><><EFBFBD><EFBFBD>ᮢ<EFBFBD><E1AEA2><EFBFBD> ⥪<>騩 <20><><EFBFBD><EFBFBD><EFBFBD> ---
|
|
|
|
|
apply_number:
|
2010-01-10 01:01:26 +03:00
|
|
|
|
mov edi,ed_buffer.3
|
|
|
|
|
call zstr_to_int
|
|
|
|
|
mov [cur_number],eax
|
|
|
|
|
call draw_number
|
2006-11-02 17:18:23 +03:00
|
|
|
|
ret
|
|
|
|
|
|
|
|
|
|
;--- <20><><EFBFBD>楤<EFBFBD><E6A5A4><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ᮢ<EFBFBD><E1AEA2> ⥪<>饣<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ---
|
|
|
|
|
draw_number:
|
2020-04-28 17:50:37 +03:00
|
|
|
|
mov [sign_n],4
|
2010-01-10 01:01:26 +03:00
|
|
|
|
mov cx,[label9.top]
|
|
|
|
|
shl ecx,16
|
|
|
|
|
mov cx,10
|
|
|
|
|
mov edx,[sc.work]
|
2016-11-26 17:22:34 +03:00
|
|
|
|
mcall SF_DRAW_RECT, 150*65536+96
|
2010-01-10 01:01:26 +03:00
|
|
|
|
movsx bx,byte [sign_n]
|
|
|
|
|
shl ebx,16
|
2016-11-26 17:22:34 +03:00
|
|
|
|
mov edx,150 shl 16
|
2010-01-10 01:01:26 +03:00
|
|
|
|
mov dx,[label9.top]
|
|
|
|
|
mov esi,[sc.work_text]
|
2016-11-26 17:22:34 +03:00
|
|
|
|
mcall SF_DRAW_NUMBER,, [cur_number]
|
2006-11-02 17:18:23 +03:00
|
|
|
|
ret
|
|
|
|
|
|
|
|
|
|
;--- <20><><EFBFBD>楤<EFBFBD><E6A5A4><EFBFBD>, <20><><EFBFBD><EFBFBD>᪠<EFBFBD><E1AAA0><EFBFBD><EFBFBD> <20><>⮪ <20><><EFBFBD><EFBFBD><EFBFBD>ꥬ<EFBFBD><EAA5AC> ---
|
|
|
|
|
start_autoshoot:
|
2010-01-10 01:01:26 +03:00
|
|
|
|
bts dword [flags],1
|
|
|
|
|
jc @f
|
|
|
|
|
xor ebx,ebx
|
|
|
|
|
inc ebx
|
2016-11-26 17:22:34 +03:00
|
|
|
|
mcall SF_CREATE_THREAD,, autoshoot, i_end_tread
|
2006-11-02 17:18:23 +03:00
|
|
|
|
@@:
|
|
|
|
|
ret
|
|
|
|
|
|
|
|
|
|
;--- <20><>⠭<EFBFBD><E2A0AD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><>⮪ ---
|
|
|
|
|
stop_autoshoot:
|
2010-01-10 01:01:26 +03:00
|
|
|
|
btr dword [flags],1
|
2006-11-02 17:18:23 +03:00
|
|
|
|
ret
|
|
|
|
|
|
|
|
|
|
;--- 横<> <20><>⮪<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ꥬ<EFBFBD><EAA5AC> ---
|
|
|
|
|
autoshoot:
|
2010-09-09 00:00:04 +04:00
|
|
|
|
mov [autoshoot_flag],1
|
2010-01-10 01:01:26 +03:00
|
|
|
|
mov ecx,[slot_n]
|
|
|
|
|
activ_window
|
2006-11-02 17:18:23 +03:00
|
|
|
|
.next:
|
2010-01-10 01:01:26 +03:00
|
|
|
|
bt dword [flags],1
|
|
|
|
|
jnc close
|
|
|
|
|
mov esi,2
|
2016-11-26 17:22:34 +03:00
|
|
|
|
mcall SF_IPC, SSF_SEND_MESSAGE, [app.pid], messages.draw_number
|
2010-01-10 01:01:26 +03:00
|
|
|
|
call shoot
|
|
|
|
|
jmp autoshoot.next
|
2010-09-09 00:00:04 +04:00
|
|
|
|
.close:
|
|
|
|
|
mov [autoshoot_flag],0
|
|
|
|
|
jmp close
|
2006-11-02 17:18:23 +03:00
|
|
|
|
;--- <20><><EFBFBD>楤<EFBFBD><E6A5A4><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ᮢ<EFBFBD><E1AEA2> <20><>ப<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ﭨ<EFBFBD> ---
|
|
|
|
|
; (<28><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD>뢠<EFBFBD><EBA2A0><EFBFBD><EFBFBD> <20><>⮪<EFBFBD><E2AEAA> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>)
|
|
|
|
|
dr_st:
|
2016-11-26 17:22:34 +03:00
|
|
|
|
mcall SF_DRAW_LINE, 0*65536+310, 198*65536+198, [sc.work_graph]
|
2010-01-10 01:01:26 +03:00
|
|
|
|
|
|
|
|
|
mov bx,310
|
|
|
|
|
mov ecx,199*65536+15
|
|
|
|
|
mov edx,[sc.work]
|
2016-11-26 17:22:34 +03:00
|
|
|
|
mcall SF_DRAW_RECT ; <20><><EFBFBD><EFBFBD>᪠
|
2010-01-10 01:01:26 +03:00
|
|
|
|
|
|
|
|
|
mov edi,status
|
|
|
|
|
call draw_label
|
2006-11-02 17:18:23 +03:00
|
|
|
|
ret
|
|
|
|
|
|
|
|
|
|
;--- <20><><EFBFBD>楤<EFBFBD><E6A5A4><EFBFBD> <20><><EFBFBD><EFBFBD>祭<EFBFBD><E7A5AD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <><E1ABAE> <20><>⮪<EFBFBD> ---
|
|
|
|
|
; <20>室 ebx - <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> 1024 <20><><EFBFBD><EFBFBD>
|
|
|
|
|
; <20><>室 ecx - <20><><EFBFBD><EFBFBD><EFBFBD> <><E1ABAE>
|
|
|
|
|
get_slot_n:
|
2010-01-10 01:01:26 +03:00
|
|
|
|
xor ecx,ecx
|
|
|
|
|
dec ecx
|
2016-11-26 17:22:34 +03:00
|
|
|
|
mcall SF_THREAD_INFO
|
2006-11-02 17:18:23 +03:00
|
|
|
|
|
2010-01-10 01:01:26 +03:00
|
|
|
|
mov edx,[ebx+30]
|
|
|
|
|
xor ecx,ecx
|
2006-11-02 17:18:23 +03:00
|
|
|
|
@@:
|
2010-01-10 01:01:26 +03:00
|
|
|
|
inc ecx
|
2016-11-26 17:22:34 +03:00
|
|
|
|
mcall SF_THREAD_INFO
|
2010-01-10 01:01:26 +03:00
|
|
|
|
cmp [ebx+30],edx
|
|
|
|
|
je @f
|
|
|
|
|
jmp @b
|
2006-11-02 17:18:23 +03:00
|
|
|
|
@@:
|
|
|
|
|
ret
|
|
|
|
|
|
2007-02-01 12:46:48 +03:00
|
|
|
|
;--- <20><><EFBFBD>楤<EFBFBD><E6A5A4><EFBFBD>, <20><><EFBFBD><EFBFBD>᪠<EFBFBD><E1AAA0><EFBFBD><EFBFBD> <20><>⮪, <20><><EFBFBD><EFBFBD><EFBFBD>騩 1 ᭨<><E1ADA8><EFBFBD> ---
|
2006-11-02 17:18:23 +03:00
|
|
|
|
one_shoot:
|
2010-01-10 01:01:26 +03:00
|
|
|
|
mov ecx,one_shoot_thread
|
|
|
|
|
mov edx,shoot_esp
|
|
|
|
|
jmp @f
|
2007-02-01 12:46:48 +03:00
|
|
|
|
;--- <20><><EFBFBD>楤<EFBFBD><E6A5A4>, <20><><EFBFBD><EFBFBD>᪠<EFBFBD><E1AAA0><EFBFBD><EFBFBD> <20><>⮪, <20><><EFBFBD>࠭<EFBFBD><E0A0AD>騩 ᭨<><E1ADA8><EFBFBD> ---
|
2006-11-02 17:18:23 +03:00
|
|
|
|
save_shoot:
|
2010-09-08 15:39:41 +04:00
|
|
|
|
; invoke OpenDialog
|
2016-11-26 17:22:34 +03:00
|
|
|
|
stdcall [OpenDialog_Start], OpenDialog_data
|
2010-09-08 15:39:41 +04:00
|
|
|
|
cmp [OpenDialog_data.status],1
|
|
|
|
|
je .1
|
|
|
|
|
ret
|
|
|
|
|
.1:
|
|
|
|
|
; prepare for PathShow
|
2016-11-26 17:22:34 +03:00
|
|
|
|
stdcall [PathShow_prepare], PathShow_data_1
|
2010-09-08 15:39:41 +04:00
|
|
|
|
|
|
|
|
|
call draw_PathShow
|
|
|
|
|
|
2010-01-10 01:01:26 +03:00
|
|
|
|
mov ecx,save_shoot_thread
|
|
|
|
|
mov edx,shoot_esp
|
2006-11-02 17:18:23 +03:00
|
|
|
|
@@:
|
2010-01-10 01:01:26 +03:00
|
|
|
|
bts dword [flags],2
|
|
|
|
|
jc .running
|
|
|
|
|
bt dword [flags],1
|
|
|
|
|
jc .running
|
|
|
|
|
|
|
|
|
|
xor ebx,ebx
|
|
|
|
|
inc ebx
|
2016-11-26 17:22:34 +03:00
|
|
|
|
mcall SF_CREATE_THREAD
|
2006-11-02 17:18:23 +03:00
|
|
|
|
.running:
|
|
|
|
|
ret
|
|
|
|
|
|
2007-02-01 12:46:48 +03:00
|
|
|
|
;--- <20><>⮪, <20><><EFBFBD><EFBFBD><EFBFBD>騩 1 ᭨<><E1ADA8><EFBFBD> ---
|
2006-11-02 17:18:23 +03:00
|
|
|
|
one_shoot_thread:
|
2010-01-10 01:01:26 +03:00
|
|
|
|
mov ecx,[slot_n]
|
|
|
|
|
activ_window
|
|
|
|
|
bt dword [ch1.flags],1 ; <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><E0AEA2><EFBFBD> <20><><EFBFBD><EFBFBD> ?
|
|
|
|
|
jnc @f
|
|
|
|
|
mov esi,2
|
2016-11-26 17:22:34 +03:00
|
|
|
|
mcall SF_IPC, SSF_SEND_MESSAGE, [app.pid], messages.min_window
|
2006-11-02 17:18:23 +03:00
|
|
|
|
@@:
|
2010-01-10 01:01:26 +03:00
|
|
|
|
call shoot
|
|
|
|
|
btr dword [flags],2
|
|
|
|
|
jmp close
|
2006-11-02 17:18:23 +03:00
|
|
|
|
|
2007-02-01 12:46:48 +03:00
|
|
|
|
;--- <20><><EFBFBD>楤<EFBFBD><E6A5A4><EFBFBD>, <20><><EFBFBD>ࠢ<EFBFBD><E0A0A2><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> ᮮ<>饭<EFBFBD><E9A5AD> <20> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ᮢ<EFBFBD><E1AEA2>
|
|
|
|
|
; <20><>ப<EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ﭨ<EFBFBD> ---
|
2006-11-02 17:18:23 +03:00
|
|
|
|
send_draw_status:
|
2010-01-10 01:01:26 +03:00
|
|
|
|
mov esi,2
|
2016-11-26 17:22:34 +03:00
|
|
|
|
mcall SF_IPC, SSF_SEND_MESSAGE, [app.pid], messages.draw_status
|
2006-11-02 17:18:23 +03:00
|
|
|
|
ret
|
|
|
|
|
|
2007-02-01 12:46:48 +03:00
|
|
|
|
;--- <20><>⮪, <20><><EFBFBD>࠭<EFBFBD> 䠩<> ---
|
2006-11-02 17:18:23 +03:00
|
|
|
|
save_shoot_thread:
|
2010-01-10 01:01:26 +03:00
|
|
|
|
mov ecx,[slot_n]
|
|
|
|
|
activ_window
|
|
|
|
|
call save_file
|
|
|
|
|
btr dword [flags],2
|
|
|
|
|
jmp close
|
2006-11-02 17:18:23 +03:00
|
|
|
|
|
2007-02-01 12:46:48 +03:00
|
|
|
|
;--- <20><><EFBFBD>楤<EFBFBD><E6A5A4><EFBFBD>, <20><><EFBFBD><EFBFBD>᪠<EFBFBD><E1AAA0><EFBFBD><EFBFBD> <20><>⮪ <20><><EFBFBD><EFBFBD> <20><>⠭<EFBFBD><E2A0AD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ꥬ<EFBFBD><EAA5AC> ---
|
|
|
|
|
show_set_rect_window:
|
2010-01-10 01:01:26 +03:00
|
|
|
|
bts dword [flags],3
|
|
|
|
|
jc @f
|
|
|
|
|
xor ebx,ebx
|
|
|
|
|
inc ebx
|
2016-11-26 17:22:34 +03:00
|
|
|
|
mcall SF_CREATE_THREAD,, set_rect_window, set_rect_window_esp
|
2010-01-10 01:01:26 +03:00
|
|
|
|
|
|
|
|
|
mov [set_rect_window_pid],eax
|
2007-02-01 12:46:48 +03:00
|
|
|
|
ret
|
|
|
|
|
|
|
|
|
|
@@:
|
2016-11-26 17:22:34 +03:00
|
|
|
|
mcall SF_SYSTEM, SSF_TERMINATE_THREAD_ID, [set_rect_window_pid]
|
2010-01-10 01:01:26 +03:00
|
|
|
|
btr dword [flags],3
|
2007-02-01 12:46:48 +03:00
|
|
|
|
ret
|
|
|
|
|
|
|
|
|
|
;--- <20><><EFBFBD><EFBFBD>祭<EFBFBD><E7A5AD> <20><><EFBFBD><EFBFBD>ଠ樨 <20><> <20><>⨢<EFBFBD><E2A8A2><EFBFBD> <20><><EFBFBD><EFBFBD> ---
|
|
|
|
|
get_active_window_info:
|
2016-11-26 17:22:34 +03:00
|
|
|
|
mcall SF_SYSTEM, SSF_GET_ACTIVE_WINDOW
|
2010-01-10 01:01:26 +03:00
|
|
|
|
|
|
|
|
|
mov ecx,eax
|
2016-11-26 17:22:34 +03:00
|
|
|
|
mcall SF_THREAD_INFO, active_app
|
2007-02-01 12:46:48 +03:00
|
|
|
|
ret
|
|
|
|
|
|
2006-11-02 17:18:23 +03:00
|
|
|
|
;====================================================================
|
|
|
|
|
;=== <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20>ணࠬ<E0AEA3><E0A0AC> ===============================================
|
|
|
|
|
;====================================================================
|
|
|
|
|
messages:
|
|
|
|
|
.draw_number dw 0
|
|
|
|
|
.draw_status dw 1
|
|
|
|
|
.min_window dw 2
|
2009-06-02 22:09:29 +04:00
|
|
|
|
.act_window dw 3
|
2006-11-02 17:18:23 +03:00
|
|
|
|
|
|
|
|
|
grab_text:
|
2010-01-10 01:01:26 +03:00
|
|
|
|
db title,0
|
2007-02-01 12:46:48 +03:00
|
|
|
|
|
2006-11-02 17:18:23 +03:00
|
|
|
|
labels:
|
2020-04-28 17:50:37 +03:00
|
|
|
|
label1 label 5,8,0,text.1 ; screen size and color depth
|
2007-02-01 12:46:48 +03:00
|
|
|
|
label3 label 5,25,0,text.3 ; <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> 䠩<><E4A0A9>
|
|
|
|
|
label9 label 5,52,0,text.9 ; <20><><EFBFBD><EFBFBD><EFBFBD> ⥪<>饣<EFBFBD> ᨬ<><E1A8AC>
|
|
|
|
|
status label 5,201,0,no_shoot
|
2006-11-02 17:18:23 +03:00
|
|
|
|
labels_end:
|
|
|
|
|
|
2010-09-08 15:39:41 +04:00
|
|
|
|
;---------------------------------------------------------------------
|
|
|
|
|
l_libs_start:
|
|
|
|
|
|
2020-12-09 00:01:35 +03:00
|
|
|
|
library01 l_libs system_dir_Boxlib+9, library_path, system_dir_Boxlib, \
|
|
|
|
|
Box_lib_import
|
2010-09-08 15:39:41 +04:00
|
|
|
|
|
2020-12-09 00:01:35 +03:00
|
|
|
|
library02 l_libs system_dir_ProcLib+9, library_path, system_dir_ProcLib, \
|
|
|
|
|
ProcLib_import
|
2010-09-08 15:39:41 +04:00
|
|
|
|
|
2020-12-09 00:01:35 +03:00
|
|
|
|
library03 l_libs system_dir_LibImg+9, library_path, system_dir_LibImg, \
|
|
|
|
|
import_libimg
|
2016-11-26 17:22:34 +03:00
|
|
|
|
|
2010-09-08 15:39:41 +04:00
|
|
|
|
end_l_libs:
|
|
|
|
|
;---------------------------------------------------------------------
|
2006-11-02 17:18:23 +03:00
|
|
|
|
editboxes:
|
2020-04-28 17:50:37 +03:00
|
|
|
|
;edit1 edit_box 300,5,35,cl_white,0,0,0,0,300,ed_buffer.1,mouse_dd,ed_focus,10,10 ; <20><><EFBFBD><EFBFBD> <20> 䠩<><E4A0A9>
|
|
|
|
|
edit2 edit_box 35,170,134,cl_white,0,0,0,0,9,ed_buffer.2,mouse_dd,ed_figure_only,3,3 ; <20><><EFBFBD><EFBFBD>প<EFBFBD>
|
|
|
|
|
edit3 edit_box 35,165,164,cl_white,0,0,0,0,9,ed_buffer.3,mouse_dd,ed_figure_only ; <20><>⮭㬥<E2AEAD><E3ACA5><EFBFBD><EFBFBD><EFBFBD>
|
2006-11-02 17:18:23 +03:00
|
|
|
|
editboxes_end:
|
2010-09-08 15:39:41 +04:00
|
|
|
|
;---------------------------------------------------------------------
|
2006-11-02 17:18:23 +03:00
|
|
|
|
buttons:
|
2010-01-10 01:01:26 +03:00
|
|
|
|
but1 txt_button 150,5,15,65,2,0,0,but_text.1,one_shoot ; ᤥ<><E1A4A5><EFBFBD><EFBFBD> ᭨<><E1ADA8><EFBFBD>
|
2020-04-28 17:50:37 +03:00
|
|
|
|
but2 txt_button 34,274,15,34,3,0,0,but_text.2,save_shoot ; "..." - <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD> <20><><EFBFBD>࠭<EFBFBD><E0A0AD><EFBFBD><EFBFBD>
|
|
|
|
|
but3 txt_button 145,160,15,65,3,0,0,but_text.3,show_scr_window ; <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ᭨<><E1ADA8><EFBFBD>
|
2010-01-10 01:01:26 +03:00
|
|
|
|
but4 txt_button 80,205,15,163,5,0,0,but_text.4,apply_number ; <20>ਬ<EFBFBD><E0A8AC><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
but5 txt_button 150,5,15,85,6,0,0,but_text.5,start_autoshoot ; <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
but6 txt_button 145,160,15,85,7,0,0,but_text.6,stop_autoshoot ; <20><>⠭<EFBFBD><E2A0AD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
2020-04-28 17:50:37 +03:00
|
|
|
|
but7 txt_button 40,70,10,180,8,0,0,but_text.7,show_set_rect_window ; <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
2006-11-02 17:18:23 +03:00
|
|
|
|
buttons_end:
|
2010-09-08 15:39:41 +04:00
|
|
|
|
;---------------------------------------------------------------------
|
2006-11-02 17:18:23 +03:00
|
|
|
|
check_boxes:
|
2011-09-30 01:51:28 +04:00
|
|
|
|
ch1 check_box2 (5 shl 16+11),(105 shl 16 +11),5,cl_white,0,0x80000000,ch_text.1,ch_flag_en+ch_flag_middle ; ᢥ<><E1A2A5><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
|
2020-04-28 17:50:37 +03:00
|
|
|
|
ch2 check_box2 (5 shl 16+11),(120 shl 16 +11),5,cl_white,0,0x80000000,ch_text.2,ch_flag_en+ch_flag_middle ; show screenshot
|
2011-09-30 01:51:28 +04:00
|
|
|
|
ch4 check_box2 (5 shl 16+11),(135 shl 16 +11),5,cl_white,0,0x80000000,ch_text.4,ch_flag_en+ch_flag_middle ; <20><><EFBFBD><EFBFBD>প<EFBFBD>
|
|
|
|
|
ch5 check_box2 (5 shl 16+11),(150 shl 16 +11),5,cl_white,0,0x80000000,ch_text.5,ch_flag_en+ch_flag_middle
|
|
|
|
|
ch6 check_box2 (5 shl 16+11),(165 shl 16 +11),5,cl_white,0,0x80000000,ch_text.6,ch_flag_en+ch_flag_middle
|
2020-04-28 17:50:37 +03:00
|
|
|
|
use_rect check_box2 (5 shl 16+11),(180 shl 16 +11),5,cl_white,0,0x80000000,ch_text.7,ch_flag_middle ; <20><><EFBFBD>. <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
2006-11-02 17:18:23 +03:00
|
|
|
|
; <20><>⮭㬥<E2AEAD><E3ACA5><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
check_boxes_end:
|
2010-09-08 15:39:41 +04:00
|
|
|
|
;---------------------------------------------------------------------
|
2006-11-02 17:18:23 +03:00
|
|
|
|
if lang eq ru
|
|
|
|
|
text:
|
2020-04-28 17:50:37 +03:00
|
|
|
|
.1 db '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><>࠭<EFBFBD> <20> <20><>㡨<EFBFBD><E3A1A8> 梥<><E6A2A5>: <20> <20> bit',0
|
|
|
|
|
.3 db '<27><><EFBFBD><EFBFBD> <20><><EFBFBD> <20><><EFBFBD>࠭<EFBFBD><E0A0AD><EFBFBD><EFBFBD> ᭨<><E1ADA8><EFBFBD>:',0
|
2007-02-01 12:46:48 +03:00
|
|
|
|
.9 db '<27><><EFBFBD><EFBFBD><EFBFBD> ⥪<>饣<EFBFBD> ᭨<><E1ADA8><EFBFBD>:',0
|
2006-11-02 17:18:23 +03:00
|
|
|
|
|
|
|
|
|
but_text:
|
2007-02-01 12:46:48 +03:00
|
|
|
|
.1 db '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ᭨<><E1ADA8><EFBFBD> <20><>࠭<EFBFBD>',0
|
2020-04-28 17:50:37 +03:00
|
|
|
|
.2 db '...',0
|
2007-02-01 12:46:48 +03:00
|
|
|
|
.3 db '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ᭨<><E1ADA8><EFBFBD> ᥩ<><E1A5A9><EFBFBD>',0
|
|
|
|
|
.4 db '<27>ਬ<EFBFBD><E0A8AC><EFBFBD><EFBFBD><EFBFBD>',0
|
|
|
|
|
.5 db '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ꥬ<EFBFBD><EAA5AC>',0
|
|
|
|
|
.6 db '<27><>⠭<EFBFBD><E2A0AD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>ꥬ<EFBFBD><EAA5AC>',0
|
|
|
|
|
.7 db '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>',0
|
2006-11-02 17:18:23 +03:00
|
|
|
|
|
|
|
|
|
ch_text:
|
2010-11-03 10:48:27 +03:00
|
|
|
|
.1 db '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>',0
|
|
|
|
|
.2 db '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ᭨<><E1ADA8><EFBFBD>',0
|
2020-04-28 17:50:37 +03:00
|
|
|
|
.4 db '<27><><EFBFBD><EFBFBD>প<EFBFBD> <20> <20><><EFBFBD><EFBFBD><EFBFBD>ᥪ㭤<E1A5AA><E3ADA4>:',0
|
2010-11-03 10:48:27 +03:00
|
|
|
|
.5 db '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>࠭<EFBFBD><E0A0AD><EFBFBD><EFBFBD>',0
|
|
|
|
|
.6 db '<27><>⮭㬥<E2AEAD><E3ACA5><EFBFBD><EFBFBD><EFBFBD>, <20><>稭<EFBFBD><E7A8AD> <20>',0
|
|
|
|
|
.7 db '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>',0
|
2006-11-02 17:18:23 +03:00
|
|
|
|
|
|
|
|
|
no_shoot db '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><> ᤥ<><E1A4A5><EFBFBD>',0
|
|
|
|
|
shooting db '<27><>⮣<EFBFBD><E2AEA3><EFBFBD><EFBFBD><EFBFBD><E0AEA2><EFBFBD><EFBFBD>...',0
|
|
|
|
|
shooted_ok db '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> ᤥ<><E1A4A5><EFBFBD>',0
|
|
|
|
|
saving db '<27><><EFBFBD>࠭<EFBFBD><E0A0AD><EFBFBD><EFBFBD>...',0
|
|
|
|
|
saved_ok db '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD>࠭<EFBFBD><E0A0AD>',0
|
|
|
|
|
delay_now db '<27><><EFBFBD><EFBFBD>প<EFBFBD>...',0
|
|
|
|
|
bad_file_name db '<27><><EFBFBD> 䠩<><E4A0A9> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>୮',0
|
|
|
|
|
disk_filled db '<27><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>',0
|
|
|
|
|
bad_fat_table db '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> FAT ࠧ<><E0A0A7>襭<EFBFBD>',0
|
|
|
|
|
ac_den db '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD>饭',0
|
|
|
|
|
device_er db '<27>訡<EFBFBD><E8A8A1> <20><><EFBFBD>ன<EFBFBD>⢠',0
|
2020-04-28 17:50:37 +03:00
|
|
|
|
not_shooted db '<27>訡<EFBFBD><E8A8A1>: <20><><EFBFBD>砫<EFBFBD> ᤥ<><E1A4A5><EFBFBD><EFBFBD><EFBFBD> ᭨<><E1ADA8><EFBFBD>',0
|
|
|
|
|
no_file_name db '<27>訡<EFBFBD><E8A8A1>: <><E1ABA5><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> 䠩<><E4A0A9>',0
|
2007-02-01 12:46:48 +03:00
|
|
|
|
invalid_rect db '<27><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>⨬<EFBFBD><E2A8AC> ࠧ<><E0A0A7><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>',0
|
2012-03-08 00:30:06 +04:00
|
|
|
|
keyforexit db '<27><><EFBFBD> <20><><EFBFBD> ᭨<><E1ADA8><EFBFBD>. <20><>室 - <20><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>.',0
|
|
|
|
|
|
2007-02-01 16:37:49 +03:00
|
|
|
|
|
|
|
|
|
else
|
|
|
|
|
text:
|
2020-04-28 17:50:37 +03:00
|
|
|
|
.1 db 'Screen size and color depth: <20> <20> bit',0
|
|
|
|
|
.3 db 'Screenshot save path:',0
|
2007-02-01 16:37:49 +03:00
|
|
|
|
.9 db 'Current photo number:',0
|
|
|
|
|
|
|
|
|
|
but_text:
|
|
|
|
|
.1 db 'Make screen photo',0
|
|
|
|
|
.2 db 'Save screen photo',0
|
|
|
|
|
.3 db 'Show photo now',0
|
|
|
|
|
.4 db 'Apply',0
|
|
|
|
|
.5 db 'Start autoshooting',0
|
|
|
|
|
.6 db 'Stop autoshooting',0
|
|
|
|
|
.7 db 'Set',0
|
|
|
|
|
|
|
|
|
|
ch_text:
|
2010-11-03 10:48:27 +03:00
|
|
|
|
.1 db 'Minimize window',0
|
|
|
|
|
.2 db 'Show photo',0
|
2020-04-28 17:50:37 +03:00
|
|
|
|
.4 db 'Delay in milliseconds:',0
|
2010-11-03 10:48:27 +03:00
|
|
|
|
.5 db 'Autosave',0
|
|
|
|
|
.6 db 'Start numeration from',0
|
|
|
|
|
.7 db 'Area',0
|
2007-02-01 16:37:49 +03:00
|
|
|
|
|
|
|
|
|
no_shoot db 'There is no photo',0
|
|
|
|
|
shooting db 'Photographing...',0
|
|
|
|
|
shooted_ok db 'Photo created',0
|
|
|
|
|
saving db 'Saving...',0
|
|
|
|
|
saved_ok db 'Photo saved',0
|
|
|
|
|
delay_now db 'Delay...',0
|
|
|
|
|
bad_file_name db 'File name is wrong',0
|
|
|
|
|
disk_filled db 'Disk is full',0
|
|
|
|
|
bad_fat_table db 'FAT table destroyed',0
|
|
|
|
|
ac_den db 'Access denied',0
|
|
|
|
|
device_er db 'Device error',0
|
2020-04-28 17:50:37 +03:00
|
|
|
|
not_shooted db 'Error: you need to make a photo first',0
|
|
|
|
|
no_file_name db 'Please, enter file name.',0
|
2007-02-01 16:37:49 +03:00
|
|
|
|
invalid_rect db 'Wrong area size',0
|
2012-03-08 00:40:01 +04:00
|
|
|
|
keyforexit db 'This is your screenshot. Press any key.',0
|
2007-02-01 16:37:49 +03:00
|
|
|
|
|
2006-11-02 17:18:23 +03:00
|
|
|
|
end if
|
|
|
|
|
|
2012-03-08 00:30:06 +04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2010-09-08 15:39:41 +04:00
|
|
|
|
;---------------------------------------------------------------------
|
|
|
|
|
PathShow_data_1:
|
|
|
|
|
.type dd 0 ;+0
|
|
|
|
|
.start_y dw 38 ;+4
|
|
|
|
|
.start_x dw 6 ;+6
|
|
|
|
|
.font_size_x dw 6 ;+8 ; 6 - for font 0, 8 - for font 1
|
|
|
|
|
.area_size_x dw 300 ;+10
|
|
|
|
|
.font_number dd 0 ;+12 ; 0 - monospace, 1 - variable
|
|
|
|
|
.background_flag dd 0 ;+16
|
|
|
|
|
.font_color dd 0x0 ;+20
|
|
|
|
|
.background_color dd 0x0 ;+24
|
|
|
|
|
.text_pointer dd fname_buf ;+28
|
|
|
|
|
.work_area_pointer dd text_work_area ;+32
|
|
|
|
|
.temp_text_length dd 0 ;+36
|
|
|
|
|
;---------------------------------------------------------------------
|
|
|
|
|
OpenDialog_data:
|
|
|
|
|
.type dd 1 ; Save
|
|
|
|
|
.procinfo dd procinfo ;+4
|
|
|
|
|
.com_area_name dd communication_area_name ;+8
|
|
|
|
|
.com_area dd 0 ;+12
|
|
|
|
|
.opendir_pach dd temp_dir_pach ;+16
|
|
|
|
|
.dir_default_pach dd communication_area_default_pach ;+20
|
|
|
|
|
.start_path dd open_dialog_path ;+24
|
|
|
|
|
.draw_window dd draw_window ;+28
|
|
|
|
|
.status dd 0 ;+32
|
|
|
|
|
.openfile_pach dd fname_buf ;+36
|
|
|
|
|
.filename_area dd filename_area ;+40
|
|
|
|
|
.filter_area dd Filter
|
|
|
|
|
.x:
|
|
|
|
|
.x_size dw 420 ;+48 ; Window X size
|
|
|
|
|
.x_start dw 10 ;+50 ; Window X position
|
|
|
|
|
.y:
|
|
|
|
|
.y_size dw 320 ;+52 ; Window y size
|
|
|
|
|
.y_start dw 10 ;+54 ; Window Y position
|
|
|
|
|
|
|
|
|
|
communication_area_name:
|
|
|
|
|
db 'FFFFFFFF_open_dialog',0
|
|
|
|
|
open_dialog_path:
|
2010-11-15 21:47:23 +03:00
|
|
|
|
if __nightbuild eq yes
|
|
|
|
|
db '/sys/MANAGERS/opendial',0
|
|
|
|
|
else
|
2010-09-08 15:39:41 +04:00
|
|
|
|
db '/sys/File Managers/opendial',0
|
2010-11-15 21:47:23 +03:00
|
|
|
|
end if
|
2010-09-08 15:39:41 +04:00
|
|
|
|
communication_area_default_pach:
|
|
|
|
|
db '/sys',0
|
|
|
|
|
|
|
|
|
|
Filter:
|
|
|
|
|
dd Filter.end - Filter
|
|
|
|
|
.1:
|
2016-11-26 17:22:34 +03:00
|
|
|
|
db 'PNG',0
|
2010-09-08 15:39:41 +04:00
|
|
|
|
.end:
|
|
|
|
|
db 0
|
|
|
|
|
|
2016-11-26 17:22:34 +03:00
|
|
|
|
start_temp_file_name: db '1.png',0
|
2010-09-08 15:39:41 +04:00
|
|
|
|
|
|
|
|
|
;---------------------------------------------------------------------
|
2006-11-02 17:18:23 +03:00
|
|
|
|
|
2010-09-08 15:39:41 +04:00
|
|
|
|
PrintScreen db 0
|
2010-09-09 00:00:04 +04:00
|
|
|
|
autoshoot_flag db 0
|
2010-09-08 15:39:41 +04:00
|
|
|
|
|
2006-11-02 17:18:23 +03:00
|
|
|
|
app_ipc ipc_buffer 32
|
2009-06-01 22:25:07 +04:00
|
|
|
|
align 4
|
2006-11-02 17:18:23 +03:00
|
|
|
|
|
2007-04-05 05:51:58 +04:00
|
|
|
|
mouse_flag: dd 0x0
|
2010-09-08 15:39:41 +04:00
|
|
|
|
;---------------------------------------------------------------------
|
|
|
|
|
align 4
|
|
|
|
|
|
|
|
|
|
ed_buffer:
|
2016-11-26 17:22:34 +03:00
|
|
|
|
.1: db '/sys/1.png',0
|
2010-09-08 15:39:41 +04:00
|
|
|
|
;rb 287
|
|
|
|
|
.2:
|
|
|
|
|
db '100',0
|
|
|
|
|
rb 6
|
|
|
|
|
.3:
|
|
|
|
|
rb 10
|
|
|
|
|
;---------------------------------------------------------------------
|
|
|
|
|
IM_END:
|
|
|
|
|
;---------------------------------------------------------------------
|
2007-04-05 05:51:58 +04:00
|
|
|
|
structure_of_potock:
|
|
|
|
|
rb 100
|
2010-09-08 15:39:41 +04:00
|
|
|
|
;---------------------------------------------------------------------
|
2009-06-01 22:25:07 +04:00
|
|
|
|
align 4
|
|
|
|
|
|
2010-01-10 01:01:26 +03:00
|
|
|
|
cur_number dd ?
|
2006-11-02 17:18:23 +03:00
|
|
|
|
|
2010-01-10 01:01:26 +03:00
|
|
|
|
sign_n db ?
|
2006-11-02 17:18:23 +03:00
|
|
|
|
|
2010-01-10 01:01:26 +03:00
|
|
|
|
slot_n dd ?
|
2006-11-02 17:18:23 +03:00
|
|
|
|
|
2010-01-10 01:01:26 +03:00
|
|
|
|
flags dd ?
|
2006-11-02 17:18:23 +03:00
|
|
|
|
|
|
|
|
|
scr_buf:
|
2010-01-10 01:01:26 +03:00
|
|
|
|
.ptr dd ?
|
|
|
|
|
.end_ptr dd ?
|
2006-11-02 17:18:23 +03:00
|
|
|
|
.size:
|
|
|
|
|
.height dw ?
|
2010-01-10 01:01:26 +03:00
|
|
|
|
.width dw ?
|
2006-11-02 17:18:23 +03:00
|
|
|
|
|
|
|
|
|
fs_struc:
|
|
|
|
|
.funk_n dd ?
|
2010-01-10 01:01:26 +03:00
|
|
|
|
dd ?
|
|
|
|
|
dd ?
|
|
|
|
|
.bytes_to_write dd ?
|
|
|
|
|
.data_ptr dd ?,?
|
2006-11-02 17:18:23 +03:00
|
|
|
|
.fn_ptr dd ?
|
|
|
|
|
|
|
|
|
|
sf_buf:
|
|
|
|
|
.bmp_header dd ?
|
|
|
|
|
.bmp_area dd ?
|
2010-01-10 01:01:26 +03:00
|
|
|
|
.end dd ?
|
2006-11-02 17:18:23 +03:00
|
|
|
|
|
2007-02-01 12:46:48 +03:00
|
|
|
|
set_rect_window_pid dd ?
|
|
|
|
|
set_rect_window_slot dd ?
|
2010-09-08 15:39:41 +04:00
|
|
|
|
;---------------------------------------------------------------------
|
2009-06-01 22:25:07 +04:00
|
|
|
|
align 4
|
2007-02-01 12:46:48 +03:00
|
|
|
|
rect_input_buffer:
|
2016-11-27 01:57:24 +03:00
|
|
|
|
.left rb 8
|
|
|
|
|
.top rb 8
|
|
|
|
|
.width rb 8
|
|
|
|
|
.height rb 8
|
2007-02-01 12:46:48 +03:00
|
|
|
|
|
2006-11-02 17:18:23 +03:00
|
|
|
|
cmdstr rb 257
|
2010-09-08 15:39:41 +04:00
|
|
|
|
;---------------------------------------------------------------------
|
2009-06-01 22:25:07 +04:00
|
|
|
|
align 4
|
2006-11-02 17:18:23 +03:00
|
|
|
|
|
|
|
|
|
file_name:
|
2010-01-10 01:01:26 +03:00
|
|
|
|
rb 1058
|
2006-11-02 17:18:23 +03:00
|
|
|
|
|
|
|
|
|
scr screen_prop
|
2007-02-01 12:46:48 +03:00
|
|
|
|
rect:
|
|
|
|
|
.left dw ?
|
|
|
|
|
.top dw ?
|
|
|
|
|
.height dw ?
|
|
|
|
|
.width dw ?
|
|
|
|
|
|
2006-11-02 17:18:23 +03:00
|
|
|
|
sc sys_color_table
|
2010-01-10 01:01:26 +03:00
|
|
|
|
app procinfo ; <20><><EFBFBD><EFBFBD>ଠ<EFBFBD><E0ACA0><EFBFBD> <20> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>
|
2007-02-01 12:46:48 +03:00
|
|
|
|
active_app procinfo ; <20><><EFBFBD><EFBFBD>ଠ<EFBFBD><E0ACA0><EFBFBD> <20><> <20><>⨢<EFBFBD><E2A8A2><EFBFBD> <20><><EFBFBD><EFBFBD>
|
|
|
|
|
set_rect_window_procinfo procinfo ; <20><><EFBFBD><EFBFBD>ଠ<EFBFBD><E0ACA0><EFBFBD> <20><> <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
2010-09-08 15:39:41 +04:00
|
|
|
|
;---------------------------------------------------------------------
|
|
|
|
|
rb 512 ; <20>⥪ <20><>⮪<EFBFBD> <20><>⪠<EFBFBD><E2AAA0><EFBFBD>
|
|
|
|
|
shoot_esp:
|
|
|
|
|
;---------------------------------------------------------------------
|
|
|
|
|
rb 512 ; <20>⥪ <20><><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
set_rect_window_esp:
|
|
|
|
|
;---------------------------------------------------------------------
|
2009-06-01 22:25:07 +04:00
|
|
|
|
; app_end ; <20><><EFBFBD><EFBFBD><EFBFBD> <20>ணࠬ<E0AEA3><E0A0AC>
|
2009-10-13 22:29:41 +04:00
|
|
|
|
mouse_dd rd 1
|
2010-09-08 15:39:41 +04:00
|
|
|
|
;---------------------------------------------------------------------
|
2009-06-01 22:25:07 +04:00
|
|
|
|
align 4
|
2016-11-26 17:22:34 +03:00
|
|
|
|
cur_dir_path rb 4096
|
|
|
|
|
library_path rb 4096
|
|
|
|
|
temp_dir_pach rb 4096
|
|
|
|
|
text_work_area rb 1024
|
|
|
|
|
fname_buf rb 4096
|
|
|
|
|
procinfo rb 1024
|
|
|
|
|
filename_area rb 256
|
2010-09-08 15:39:41 +04:00
|
|
|
|
;---------------------------------------------------------------------
|
|
|
|
|
rb 1024
|
2009-06-01 22:25:07 +04:00
|
|
|
|
i_end_tread:
|
2010-09-08 15:39:41 +04:00
|
|
|
|
;---------------------------------------------------------------------
|
|
|
|
|
rb 1024
|
|
|
|
|
stacktop:
|
|
|
|
|
;---------------------------------------------------------------------
|
2009-06-01 22:25:07 +04:00
|
|
|
|
i_end:
|