add new version editbox in programs

git-svn-id: svn://kolibrios.org@833 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
Alexey Teplov ( 2008-07-24 06:26:36 +00:00
parent e1f26406b7
commit 94e7e92eb7
5 changed files with 500 additions and 499 deletions

View File

@ -1 +1 @@
__CPU_type fix p5 __CPU_type fix p6

View File

@ -3,28 +3,28 @@ include '..\..\develop\examples\editbox\trunk\editbox.inc'
include 'txtbut.inc' include 'txtbut.inc'
;include 'gp.inc' ;include 'gp.inc'
include 'label.inc' include 'label.inc'
;include '..\..\develop\examples\checkbox\trunk\checkbox.inc' ;include '..\..\develop\examples\checkbox\trunk\check.inc'
include 'check.inc' include 'check.inc'
include 'file_sys.inc' include 'file_sys.inc'
include 'textwork.inc' include 'textwork.inc'
;include 'ini.inc' ;include 'ini.inc'
__CPU_type equ p5 __CPU_type equ p5
SYSENTER_VAR equ 0 SYSENTER_VAR equ 0
macro movr reg,val macro movr reg,val
{ {
if val < 65536 if val < 65536
push val push val
pop reg pop reg
else else
mov reg,val mov reg,val
end if end if
} }
macro mcall a,b,c,d,e,f { ; mike.dld, updated by Ghost for Fast System Calls macro mcall a,b,c,d,e,f { ; mike.dld, updated by Ghost for Fast System Calls
local ..ret_point local ..ret_point
__mov eax,a __mov eax,a
__mov ebx,b __mov ebx,b
__mov ecx,c __mov ecx,c
@ -33,31 +33,31 @@ macro mcall a,b,c,d,e,f { ; mike.dld, updated by Ghost for Fast System Calls
__mov edi,f __mov edi,f
if __CPU_type eq p5 if __CPU_type eq p5
int 0x40 int 0x40
else else
if __CPU_type eq p6 if __CPU_type eq p6
push ebp push ebp
mov ebp, esp mov ebp, esp
push ..ret_point ; it may be 2 or 5 byte push ..ret_point ; it may be 2 or 5 byte
sysenter sysenter
..ret_point: ..ret_point:
pop edx pop edx
pop ecx pop ecx
else else
if __CPU_type eq k6 if __CPU_type eq k6
push ecx push ecx
syscall syscall
pop ecx pop ecx
else else
display 'ERROR : unknown CPU type' display 'ERROR : unknown CPU type'
int 0x40 int 0x40
end if end if
end if end if
end if end if
} }
macro __mov reg,a,b { ; mike.dld macro __mov reg,a,b { ; mike.dld
if (~a eq)&(~b eq) if (~a eq)&(~b eq)
mpack reg,a,b mpack reg,a,b
else if (~a eq)&(b eq) else if (~a eq)&(b eq)
@ -69,24 +69,24 @@ macro __mov reg,a,b { ; mike.dld
;--- § £®«®¢®ª --- ;--- § £®«®¢®ª ---
macro meos_header par_buf,cur_dir_buf macro meos_header par_buf,cur_dir_buf
{ {
use32 use32
org 0x0 org 0x0
db 'MENUET01' db 'MENUET01'
dd 0x01 dd 0x01
dd __app_start dd __app_start
dd __app_end dd __app_end
dd __app_end dd __app_end
dd __app_end dd __app_end
if <par_buf> eq <> if <par_buf> eq <>
dd 0x0 dd 0x0
else else
dd par_buf dd par_buf
end if end if
if <cur_dir_buf> eq <> if <cur_dir_buf> eq <>
dd 0x0 dd 0x0
else else
dd cur_dir_buf dd cur_dir_buf
end if end if
} }
@ -100,9 +100,9 @@ __app_start:
macro app_end stack_size macro app_end stack_size
{ {
if <stack_size> eq <> if <stack_size> eq <>
rb 1024 rb 1024
else else
rb stack_size rb stack_size
end if end if
__app_end: __app_end:
} }
@ -110,224 +110,224 @@ __app_end:
;--- § ¢¥àè¨âì ⥪ã騩 ¯®â®ª --- ;--- § ¢¥àè¨âì ⥪ã騩 ¯®â®ª ---
macro app_close macro app_close
{ {
xor eax,eax xor eax,eax
dec eax dec eax
int 0x40 int 0x40
} }
;--- ¯®«ãç¨âì ª®¤ ­ ¦ â®© ª« ¢¨è¨ --- ;--- ¯®«ãç¨âì ª®¤ ­ ¦ â®© ª« ¢¨è¨ ---
macro get_key macro get_key
{ {
;mov eax,2 ;mov eax,2
push 2 push 2
pop eax pop eax
int 0x40 int 0x40
} }
;--- ¯®«ãç¨âì ª®¤ ­ ¦ â®© ª­®¯ª¨ --- ;--- ¯®«ãç¨âì ª®¤ ­ ¦ â®© ª­®¯ª¨ ---
macro get_pressed_button macro get_pressed_button
{ {
;mov eax,17 ;mov eax,17
push 17 push 17
pop eax pop eax
int 0x40 int 0x40
} }
;--- á®®¡é¨âì á¨á⥬¥ ® ­ ç «¥ ¯¥à¥à¨á®¢ª¨ ®ª­  --- ;--- á®®¡é¨âì á¨á⥬¥ ® ­ ç «¥ ¯¥à¥à¨á®¢ª¨ ®ª­  ---
macro start_draw_window macro start_draw_window
{ {
;mov eax,12 ;mov eax,12
push 12 push 12
pop eax pop eax
xor ebx,ebx xor ebx,ebx
inc ebx inc ebx
int 0x40 int 0x40
} }
;--- á®®¡é¨âì á¨á⥬¥ ® § ¢¥à襭¨¨ ¯¥à¥à¨á®¢ª¨ ®ª­  --- ;--- á®®¡é¨âì á¨á⥬¥ ® § ¢¥à襭¨¨ ¯¥à¥à¨á®¢ª¨ ®ª­  ---
macro stop_draw_window macro stop_draw_window
{ {
;mov eax,12 ;mov eax,12
push 12 push 12
pop eax pop eax
;mov ebx,2 ;mov ebx,2
push 2 push 2
pop ebx pop ebx
int 0x40 int 0x40
} }
;--- ãáâ ­®¢¨âì ¬ áªã ®¦¨¤ ¥¬ëå ᮡë⨩ --- ;--- ãáâ ­®¢¨âì ¬ áªã ®¦¨¤ ¥¬ëå ᮡë⨩ ---
macro set_events_mask mask macro set_events_mask mask
{ {
;mov eax,40 ;mov eax,40
push 40 push 40
pop eax pop eax
;mov ebx,mask ;mov ebx,mask
push mask push mask
pop ebx pop ebx
int 0x40 int 0x40
} }
;--- ¯®«ãç¨âì ¨­ä®à¬ æ¨î ® ¯à®æ¥áᥠ--- ;--- ¯®«ãç¨âì ¨­ä®à¬ æ¨î ® ¯à®æ¥áᥠ---
macro get_procinfo proc_inf_buf,slot_num macro get_procinfo proc_inf_buf,slot_num
{ {
;mov eax,9 ;mov eax,9
push 9 push 9
pop eax pop eax
;mov ebx,proc_inf_buf ;mov ebx,proc_inf_buf
push proc_inf_buf push proc_inf_buf
pop ebx pop ebx
if <slot_num> eq <> if <slot_num> eq <>
xor ecx,ecx xor ecx,ecx
dec ecx dec ecx
else else
;mov ecx,slot_num ;mov ecx,slot_num
push slot_num push slot_num
pop ecx pop ecx
end if end if
int 0x40 int 0x40
} }
macro get_sys_colors col_buf macro get_sys_colors col_buf
{ {
;mov eax,48 ;mov eax,48
push 48 push 48
pop eax pop eax
;mov ebx,3 ;mov ebx,3
push 3 push 3
pop ebx pop ebx
;mov ecx,col_buf ;mov ecx,col_buf
push col_buf push col_buf
pop ecx pop ecx
;mov edx,40 ;mov edx,40
push 40 push 40
pop edx pop edx
int 0x40 int 0x40
} }
macro get_grab_area macro get_grab_area
{ {
movr eax,48 movr eax,48
movr ebx,7 movr ebx,7
int 0x40 int 0x40
} }
macro get_skin_height macro get_skin_height
{ {
movr eax,48 movr eax,48
movr ebx,4 movr ebx,4
int 0x40 int 0x40
} }
macro min_window macro min_window
{ {
movr eax,18 movr eax,18
movr ebx,10 movr ebx,10
int 0x40 int 0x40
} }
macro activ_window slot_n macro activ_window slot_n
{ {
movr eax,18 movr eax,18
movr ebx,3 movr ebx,3
if <slot_n> eq <> if <slot_n> eq <>
else else
movr ecx,slot_n movr ecx,slot_n
end if end if
int 0x40 int 0x40
} }
macro get_active_window macro get_active_window
{ {
movr eax,18 movr eax,18
movr ebx,7 movr ebx,7
int 0x40 int 0x40
} }
macro delay time macro delay time
{ {
movr eax,5 movr eax,5
if <time> eq <> if <time> eq <>
else else
movr ebx,time movr ebx,time
end if end if
int 0x40 int 0x40
} }
;--- ®¦¨¤ âì ᮡëâ¨ï --- ;--- ®¦¨¤ âì ᮡëâ¨ï ---
macro wait_event redraw,key,button,mouse,ipc,other macro wait_event redraw,key,button,mouse,ipc,other
{ {
movr eax,10 movr eax,10
int 0x40 int 0x40
dec ax dec ax
if <redraw> eq <> if <redraw> eq <>
else else
jz redraw jz redraw
end if end if
dec ax dec ax
if <key> eq <> if <key> eq <>
else else
jz key jz key
end if end if
dec ax dec ax
if <button> eq <> if <button> eq <>
else else
jz button jz button
end if end if
dec ax dec ax
dec ax dec ax
dec ax dec ax
if <mouse> eq <> if <mouse> eq <>
else else
jz mouse jz mouse
end if end if
if <ipc> eq <> if <ipc> eq <>
else else
dec ax dec ax
jz ipc jz ipc
end if end if
if <other> eq <> if <other> eq <>
jmp still jmp still
else else
jmp other jmp other
end if end if
} }
;--- ¯®«ãç¨âì à §¬¥àë íªà ­  --- ;--- ¯®«ãç¨âì à §¬¥àë íªà ­  ---
macro get_screen_size macro get_screen_size
{ {
movr eax,14 movr eax,14
int 0x40 int 0x40
} }
macro get_screen_prop struc_ptr macro get_screen_prop struc_ptr
{ {
movr eax,61 movr eax,61
push eax eax push eax eax
xor ebx,ebx xor ebx,ebx
inc ebx inc ebx
int 0x40 int 0x40
mov [struc_ptr],eax mov [struc_ptr],eax
pop eax pop eax
inc ebx inc ebx
int 0x40 int 0x40
mov [struc_ptr+4],ax mov [struc_ptr+4],ax
pop eax pop eax
inc ebx inc ebx
int 0x40 int 0x40
mov [struc_ptr+6],eax mov [struc_ptr+6],eax
} }
macro resize_mem mem_size macro resize_mem mem_size
{ {
movr eax,64 movr eax,64
xor ebx,ebx xor ebx,ebx
inc ebx inc ebx
if <mem_size> eq <> if <mem_size> eq <>
else else
movr ecx,mem_size movr ecx,mem_size
end if end if
int 0x40 int 0x40
} }
evm_redraw equ 1 evm_redraw equ 1
@ -362,11 +362,11 @@ struc sys_color_table
.grab_button: dd ? ;+8 .grab_button: dd ? ;+8
.grab_button_text: dd ? ;+12 .grab_button_text: dd ? ;+12
.grab_text: dd ? ;+16 .grab_text: dd ? ;+16
.work: dd ? ;+20 .work: dd ? ;+20
.work_button: dd ?;+24 .work_button: dd ?;+24
.work_button_text: dd ? ;+28 .work_button_text: dd ? ;+28
.work_text: dd ? ;+32 .work_text: dd ? ;+32
.work_graph: dd ? ;+36 .work_graph: dd ? ;+36
} }
struc screen_size struc screen_size

View File

@ -1,468 +1,469 @@
; €¢â®à ¯à®£à ¬¬ë …¢â¨å®¢ Œ ªá¨¬ (Maxxxx32) ; €¢â®à ¯à®£à ¬¬ë …¢â¨å®¢ Œ ªá¨¬ (Maxxxx32)
; 24.07.2008 <Lrz> ®¡­®¢«¥­ editbox
; 01.02.07 - ®¡­®¢«ñ­ editbox ; 01.02.07 - ®¡­®¢«ñ­ editbox
; 31.01.07 - ¢áñ ⥯¥àì à¨áã¥âáï ®â­®á¨â¥«ì­® ª«¨¥­â᪮© ®¡« á⨠; 31.01.07 - ¢áñ ⥯¥àì à¨áã¥âáï ®â­®á¨â¥«ì­® ª«¨¥­â᪮© ®¡« áâ¨
macro draw_status text_ptr macro draw_status text_ptr
{ {
mov [status.text],dword text_ptr mov [status.text],dword text_ptr
call send_draw_status call send_draw_status
} }
title equ 'Screenshooter v 0.9' ; ‡ £®«®¢®ª ®ª­  title equ 'Screenshooter v 0.9' ; ‡ £®«®¢®ª ®ª­ 
include 'macros.inc' ; ¢áâ ¢«ï¥¬ ¬ ªà®áë include 'macros.inc' ; ¢áâ ¢«ï¥¬ ¬ ªà®áë
meos_header cmdstr ; ¢áâ ¢«ï¥¬ § £®«®¢®ª ¯à®£à ¬¬ë meos_header cmdstr ; ¢áâ ¢«ï¥¬ § £®«®¢®ª ¯à®£à ¬¬ë
include 'scrwin.inc' ; ¢áâ ¢«ï¥¬ ª®¤ ®ª­  ¯à¤¯à®á¬®âà  include 'scrwin.inc' ; ¢áâ ¢«ï¥¬ ª®¤ ®ª­  ¯à¤¯à®á¬®âà 
include 'scrsavef.inc'; ¢áâ ¢«ï¥¬ ¯à®æ¥¤ãàã á®åà ­¥­¨ï ä ©«  include 'scrsavef.inc'; ¢áâ ¢«ï¥¬ ¯à®æ¥¤ãàã á®åà ­¥­¨ï ä ©« 
use_edit_box structure_of_potock,22,5 ; \ use_edit_box ; \
use_txt_button ; | use_txt_button ; |
use_label ; |-- GUI ª®¬¯®­¥­âë ¨ ­¥ª®â®àë¥ ¯à®æ¥¤ãàë use_label ; |-- GUI ª®¬¯®­¥­âë ¨ ­¥ª®â®àë¥ ¯à®æ¥¤ãàë
use_check_box ; | use_check_box ; |
use_text_work ; / use_text_work ; /
include 'gp.inc' include 'gp.inc'
include 'srectwin.inc' include 'srectwin.inc'
include 'lang.inc' include 'lang.inc'
;--- ­ ç «® ¯à®£à ¬¬ë --- ;--- ­ ç «® ¯à®£à ¬¬ë ---
app_start app_start
;mov al,[gs:1280*4*1024] ;mov al,[gs:1280*4*1024]
; ãáâ ­ ¢«¨¢ ¥¬ ipc ¡ãää¥à ; ãáâ ­ ¢«¨¢ ¥¬ ipc ¡ãää¥à
push 60 push 60
pop eax pop eax
;mov ebx,1 ;mov ebx,1
xor ebx,ebx xor ebx,ebx
inc ebx inc ebx
mov ecx,app_ipc mov ecx,app_ipc
mov edx,32 mov edx,32
int 0x40 int 0x40
push 66 ; ãáâ ­ ¢«¨¢ ¥¬ £«®¡ «ì­ãî £®àïçãî ª« ¢¨èã push 66 ; ãáâ ­ ¢«¨¢ ¥¬ £«®¡ «ì­ãî £®àïçãî ª« ¢¨èã
pop eax pop eax
push eax push eax
mov ebx,4 mov ebx,4
mov cl,55 ; 55 - PrintScrn mov cl,55 ; 55 - PrintScrn
xor edx,edx xor edx,edx
int 0x40 int 0x40
mov ebx,app mov ebx,app
call get_slot_n call get_slot_n
mov [slot_n],ecx mov [slot_n],ecx
; ãáâ ­ ¢«¨¢ ¥¬ ¬ áªã ᮡë⨩ ; ãáâ ­ ¢«¨¢ ¥¬ ¬ áªã ᮡë⨩
set_events_mask (evm_redraw+evm_key+evm_button+evm_mouse+evm_ipc) set_events_mask (evm_redraw+evm_key+evm_button+evm_mouse+evm_ipc)
; á ¯à룠¥¬ ¯à¨ ª ¦¤®© ¯¥à¥à¨á®¢ª¥ ; á ¯à룠¥¬ ¯à¨ ª ¦¤®© ¯¥à¥à¨á®¢ª¥
red: red:
get_procinfo app ; ¯®«ãç ¥¬ ¨­ä®à¬ æ¨î ® ¯à®æ¥áᥠget_procinfo app ; ¯®«ãç ¥¬ ¨­ä®à¬ æ¨î ® ¯à®æ¥áá¥
get_sys_colors sc ; ¯®«ãç ¥¬ á¨á⥬­ë¥ æ¢¥â  get_sys_colors sc ; ¯®«ãç ¥¬ á¨á⥬­ë¥ 梥â 
; ãáâ ­ ¢«¨¢ ¥¬ á¨á⥬­ë¥ æ¢¥â  ã GUI ª®¬¯®­¥­â®¢ ; ãáâ ­ ¢«¨¢ ¥¬ á¨á⥬­ë¥ æ¢¥â  ã GUI ª®¬¯®­¥­â®¢
txt_but_set_sys_color buttons,buttons_end,sc ; \ txt_but_set_sys_color buttons,buttons_end,sc ; \
labels_set_sys_color labels,labels_end,sc ; | labels_set_sys_color labels,labels_end,sc ; |
check_boxes_set_sys_color check_boxes,check_boxes_end,sc ; | check_boxes_set_sys_color check_boxes,check_boxes_end,sc ; |
edit_boxes_set_sys_color editboxes,editboxes_end,sc ; / edit_boxes_set_sys_color editboxes,editboxes_end,sc ; /
get_screen_prop scr ; ¯®«ãç ¥¬ ¨­ä®à¬ æ¨î ®¡ íªà ­¥ get_screen_prop scr ; ¯®«ãç ¥¬ ¨­ä®à¬ æ¨î ®¡ íªà ­¥
call draw_window ; ¯¥à¥à¨á®¢ë¢ ¥¬ ®ª­® call draw_window ; ¯¥à¥à¨á®¢ë¢ ¥¬ ®ª­®
still: still:
wait_event red,key,button,mouse,ipc,still ; ¦¤¥¬ ᮡë⨩ wait_event red,key,button,mouse,ipc,still ; ¦¤¥¬ ᮡë⨩
key: key:
get_key get_key
cmp al,2 cmp al,2
jne @f jne @f
cmp ah,55 cmp ah,55
jne @f jne @f
call shoot call shoot
jmp still jmp still
@@: @@:
key_edit_boxes editboxes,editboxes_end key_edit_boxes editboxes,editboxes_end
jmp still jmp still
button: button:
get_pressed_button get_pressed_button
cmp ah,1 cmp ah,1
je p_close je p_close
txt_but_ev buttons,buttons_end txt_but_ev buttons,buttons_end
jmp still jmp still
mouse: mouse:
get_active_window get_active_window
cmp eax,[slot_n] cmp eax,[slot_n]
jne still jne still
mouse_check_boxes check_boxes,check_boxes_end mouse_check_boxes check_boxes,check_boxes_end
mouse_edit_boxes editboxes,editboxes_end mouse_edit_boxes editboxes,editboxes_end
jmp still jmp still
ipc: ipc:
cmp word [app_ipc+8],2 cmp word [app_ipc+8],2
jne @f jne @f
min_window min_window
jmp .clear_ipc jmp .clear_ipc
@@: @@:
call draw_number call draw_number
call dr_st call dr_st
.clear_ipc: .clear_ipc:
cld cld
xor eax,eax xor eax,eax
movr ecx,32 movr ecx,32
mov edi,app_ipc mov edi,app_ipc
rep stosb rep stosb
jmp still jmp still
p_close: p_close:
btr dword [flags],1 btr dword [flags],1
bt dword [flags],3 bt dword [flags],3
jnc @f jnc @f
movr eax,18 movr eax,18
mov ebx,eax mov ebx,eax
mov ecx,[set_rect_window_pid] mov ecx,[set_rect_window_pid]
int 0x40 int 0x40
@@: @@:
close: close:
app_close app_close
;-------------------------------------------------------------------- ;--------------------------------------------------------------------
;--- ¯à®®æ¥¤ãà  ¯¥à¥à¨á®¢ª¨ £« ¢­®£® ®ª­  --------------------------- ;--- ¯à®®æ¥¤ãà  ¯¥à¥à¨á®¢ª¨ £« ¢­®£® ®ª­  ---------------------------
;-------------------------------------------------------------------- ;--------------------------------------------------------------------
draw_window: draw_window:
start_draw_window ; ­ ç «® ¯¥à¥à¨á®¢ª¨ start_draw_window ; ­ ç «® ¯¥à¥à¨á®¢ª¨
; ®¯à¥¤¥«ï¥¬ ®ª­® ; ®¯à¥¤¥«ï¥¬ ®ª­®
get_skin_height get_skin_height
mov ebx,100*65536+320 mov ebx,100*65536+320
mov ecx,100*65536+220 mov ecx,100*65536+220
add cx,ax add cx,ax
mov edx,[sc.work] mov edx,[sc.work]
add edx,0x34000000;0x33000000 add edx,0x34000000;0x33000000
xor esi,esi xor esi,esi
;xor edi,edi ;xor edi,edi
mov edi,grab_text mov edi,grab_text
xor eax,eax xor eax,eax
int 0x40 int 0x40
movr eax,47 ; ¢ë¢®¤¨¬ ç¨á«  ¢ ®ª­® movr eax,47 ; ¢ë¢®¤¨¬ ç¨á«  ¢ ®ª­®
mov bx,4 mov bx,4
shl ebx,16 shl ebx,16
movsx ecx,word [scr.width] ; è¨à¨­  íªà ­  movsx ecx,word [scr.width] ; è¨à¨­  íªà ­ 
mov dx,95 mov dx,95
shl edx,16 shl edx,16
mov dx,[label1.top] mov dx,[label1.top]
push dx push dx
mov esi,[sc.work_text] mov esi,[sc.work_text]
int 0x40 int 0x40
movsx ecx,word [scr.height] ; ¢ëá®â  íªà ­  movsx ecx,word [scr.height] ; ¢ëá®â  íªà ­ 
mov dx,[label2.top] mov dx,[label2.top]
int 0x40 int 0x40
mov bx,2 mov bx,2
shl ebx,16 shl ebx,16
movsx ecx,word [scr.bitspp] ; ¡¨â ­  ¯¨ªá¥«ì movsx ecx,word [scr.bitspp] ; ¡¨â ­  ¯¨ªá¥«ì
mov dx,240 mov dx,240
shl edx,16 shl edx,16
pop dx pop dx
int 0x40 int 0x40
mov bx,6 mov bx,6
shl ebx,16 shl ebx,16
mov ecx,[scr.bytesps] ; ¡ ©â ­  áâபã mov ecx,[scr.bytesps] ; ¡ ©â ­  áâபã
mov dx,[label2.top] mov dx,[label2.top]
int 0x40 int 0x40
call draw_number ; ¯à®à¨á®¢ë¢ ¥¬ ­®¬¥à á­¨¬ª  call draw_number ; ¯à®à¨á®¢ë¢ ¥¬ ­®¬¥à á­¨¬ª 
call dr_st call dr_st
draw_labels labels,labels_end ; ¬¥âª¨ draw_labels labels,labels_end ; ¬¥âª¨
draw_edit_boxes editboxes,editboxes_end ; edit_box draw_edit_boxes editboxes,editboxes_end ; edit_box
draw_txt_buttons buttons,buttons_end ; ª­®¯ª¨ draw_txt_buttons buttons,buttons_end ; ª­®¯ª¨
draw_check_boxes check_boxes,check_boxes_end ; ä« ¦ª¨ draw_check_boxes check_boxes,check_boxes_end ; ä« ¦ª¨
stop_draw_window ; ª®­¥æ ¯¥à¥à¨á®¢ª¨ stop_draw_window ; ª®­¥æ ¯¥à¥à¨á®¢ª¨
ret ret
shoot: shoot:
bt dword [ch4.flags],1 ; ¢ª«î祭  «¨ § ¤¥à¦ª  ? bt dword [ch4.flags],1 ; ¢ª«î祭  «¨ § ¤¥à¦ª  ?
jnc @f jnc @f
draw_status delay_now draw_status delay_now
mov edi,ed_buffer.2 mov edi,ed_buffer.2
call zstr_to_int call zstr_to_int
mov ebx,eax mov ebx,eax
delay delay
@@: @@:
call get_mem_for_shoot; ¯®«ãç ¥¬ ¯ ¬ïâì ¤«ï á­¨¬ª  call get_mem_for_shoot; ¯®«ãç ¥¬ ¯ ¬ïâì ¤«ï á­¨¬ª 
bts dword [flags],0 ; ­ã«¥¢®© ä« £ - á­¨¬®ª ¥áâì ¢ ¯ ¬ï⨠bts dword [flags],0 ; ­ã«¥¢®© ä« £ - á­¨¬®ª ¥áâì ¢ ¯ ¬ïâ¨
; ¤¥« ¥¬ á­¨¬®ª ; ¤¥« ¥¬ á­¨¬®ª
draw_status shooting draw_status shooting
mov esi,scr mov esi,scr
mov edi,[scr_buf.ptr] mov edi,[scr_buf.ptr]
call copy_screen_to_image call copy_screen_to_image
bt dword [use_rect.flags],1 bt dword [use_rect.flags],1
jc .use_rect jc .use_rect
push dword [scr] push dword [scr]
jmp @f jmp @f
.use_rect: .use_rect:
push dword [rect.height] push dword [rect.height]
@@: @@:
pop dword [scr_buf.size] pop dword [scr_buf.size]
bt dword [ch5.flags],1 ; ¢ª«î祭® «¨  ¢â®á®åà ­¥­¨¥ ? bt dword [ch5.flags],1 ; ¢ª«î祭® «¨  ¢â®á®åà ­¥­¨¥ ?
jnc @f jnc @f
call save_file call save_file
@@: @@:
draw_status shooted_ok draw_status shooted_ok
bt dword [flags],1 bt dword [flags],1
jnc @f jnc @f
ret ret
@@: @@:
bt dword [ch2.flags],1 ; ¯®ª § âì ®ª­® ¯à¥¤¯à®á¬®âà  ? bt dword [ch2.flags],1 ; ¯®ª § âì ®ª­® ¯à¥¤¯à®á¬®âà  ?
jnc @f jnc @f
call show_scr_window call show_scr_window
@@: @@:
bt word [ch3.flags],1 ; ¢®ááâ ­®¢¨âì ®ª­® ? bt word [ch3.flags],1 ; ¢®ááâ ­®¢¨âì ®ª­® ?
jnc @f jnc @f
delay 100 delay 100
mov ecx,[slot_n] mov ecx,[slot_n]
activ_window activ_window
@@: @@:
ret ret
;--- ¯®«ãç¨âì ¯ ¬ïâì ¤«ï á­¨¬ª  --- ;--- ¯®«ãç¨âì ¯ ¬ïâì ¤«ï á­¨¬ª  ---
get_mem_for_shoot: get_mem_for_shoot:
mov [scr_buf.ptr],dword __app_end mov [scr_buf.ptr],dword __app_end
bt dword [use_rect.flags],1 ; ä®âª âì ®¡« áâì íªà ­  bt dword [use_rect.flags],1 ; ä®âª âì ®¡« áâì íªà ­ 
jc .use_area jc .use_area
movzx ecx, word [scr.width] movzx ecx, word [scr.width]
movzx ebx, word [scr.height] movzx ebx, word [scr.height]
jmp @f jmp @f
.use_area: .use_area:
call read_rect call read_rect
movzx ecx, word [rect.width] movzx ecx, word [rect.width]
movzx ebx, word [rect.height] movzx ebx, word [rect.height]
@@: @@:
imul ecx,ebx imul ecx,ebx
lea ecx,[ecx*3] lea ecx,[ecx*3]
add ecx,__app_end add ecx,__app_end
mov [scr_buf.end_ptr],ecx mov [scr_buf.end_ptr],ecx
xor ebx,ebx xor ebx,ebx
inc ebx inc ebx
mov eax,64 mov eax,64
int 0x40 int 0x40
ret ret
;--- ᮤ âì ®ª­® ¯à®¥¤¯à®á¬®âà  --- ;--- ᮤ âì ®ª­® ¯à®¥¤¯à®á¬®âà  ---
show_scr_window: show_scr_window:
pusha pusha
bt dword [flags],0 bt dword [flags],0
jnc @f jnc @f
mov eax,51 mov eax,51
xor ebx,ebx xor ebx,ebx
inc ebx inc ebx
movr ecx,scr_window movr ecx,scr_window
mov edx,__app_end-1000 mov edx,__app_end-1000
int 0x40 int 0x40
@@: @@:
popa popa
ret ret
;--- ¯à®ç¨â âì ¨ ­ à¨á®¢ âì ⥪ã騩 ­®¬¥à --- ;--- ¯à®ç¨â âì ¨ ­ à¨á®¢ âì ⥪ã騩 ­®¬¥à ---
apply_number: apply_number:
mov edi,ed_buffer.3 mov edi,ed_buffer.3
call zstr_to_int call zstr_to_int
mov [cur_number],eax mov [cur_number],eax
call draw_number call draw_number
ret ret
;--- ¯à®æ¥¤ãà  ¯à®à¨á®¢ª¨ ⥪ã饣® ­®¬¥à  --- ;--- ¯à®æ¥¤ãà  ¯à®à¨á®¢ª¨ ⥪ã饣® ­®¬¥à  ---
draw_number: draw_number:
mov edi,sign_n_input mov edi,sign_n_input
call zstr_to_int call zstr_to_int
mov [sign_n],al mov [sign_n],al
movr eax,13 movr eax,13
mov ebx,150*65536+96 mov ebx,150*65536+96
mov cx,[label9.top] mov cx,[label9.top]
shl ecx,16 shl ecx,16
mov cx,10 mov cx,10
mov edx,[sc.work] mov edx,[sc.work]
int 0x40 int 0x40
movr eax,47 movr eax,47
movsx bx,byte [sign_n] movsx bx,byte [sign_n]
shl ebx,16 shl ebx,16
mov ecx,[cur_number] mov ecx,[cur_number]
mov dx,150 mov dx,150
shl edx,16 shl edx,16
mov dx,[label9.top] mov dx,[label9.top]
mov esi,[sc.work_text] mov esi,[sc.work_text]
int 0x40 int 0x40
ret ret
;--- ¯à®æ¥¤ãà , § ¯ã᪠îé ï ¯®â®ª  ¢â®áꥬª¨ --- ;--- ¯à®æ¥¤ãà , § ¯ã᪠îé ï ¯®â®ª  ¢â®áꥬª¨ ---
start_autoshoot: start_autoshoot:
bts dword [flags],1 bts dword [flags],1
jc @f jc @f
movr eax,51 movr eax,51
;mov ebx,1 ;mov ebx,1
xor ebx,ebx xor ebx,ebx
inc ebx inc ebx
mov ecx,autoshoot mov ecx,autoshoot
mov edx,__app_end-512 mov edx,__app_end-512
int 0x40 int 0x40
@@: @@:
ret ret
;--- ®áâ ­ ¢«¨¢ ¥â íâ®â ¯®â®ª --- ;--- ®áâ ­ ¢«¨¢ ¥â íâ®â ¯®â®ª ---
stop_autoshoot: stop_autoshoot:
btr dword [flags],1 btr dword [flags],1
ret ret
;--- 横« ¯®â®ª   ¢â®áꥬª¨ --- ;--- 横« ¯®â®ª   ¢â®áꥬª¨ ---
autoshoot: autoshoot:
mov ecx,[slot_n] mov ecx,[slot_n]
activ_window activ_window
.next: .next:
bt dword [flags],1 bt dword [flags],1
jnc close jnc close
movr eax,60 movr eax,60
movr ebx,2 movr ebx,2
mov ecx,[app.pid] mov ecx,[app.pid]
mov edx,messages.draw_number mov edx,messages.draw_number
mov esi,2 mov esi,2
int 0x40 int 0x40
call shoot call shoot
jmp autoshoot.next jmp autoshoot.next
;--- ¯à®æ¥¤ãà  ¯à®à¨á®¢ª¨ áâப¨ á®áâ®ï­¨ï --- ;--- ¯à®æ¥¤ãà  ¯à®à¨á®¢ª¨ áâப¨ á®áâ®ï­¨ï ---
; (¤®«¦­  ¢ë§ë¢ âìáï ¯®â®ª®¬ £« ¢­®£® ®ª­ ) ; (¤®«¦­  ¢ë§ë¢ âìáï ¯®â®ª®¬ £« ¢­®£® ®ª­ )
dr_st: dr_st:
movr eax,38 ; ®â१®ª movr eax,38 ; ®â१®ª
mov ebx,0*65536+310 mov ebx,0*65536+310
mov ecx,198*65536+198 mov ecx,198*65536+198
mov edx,[sc.work_graph] mov edx,[sc.work_graph]
int 0x40 int 0x40
movr eax,13 ; ¯®«®áª  movr eax,13 ; ¯®«®áª 
mov bx,310 mov bx,310
mov ecx,199*65536+15 mov ecx,199*65536+15
mov edx,[sc.work] mov edx,[sc.work]
int 0x40 int 0x40
mov edi,status mov edi,status
call draw_label call draw_label
ret ret
;--- ¯à®æ¥¤ãà  ¯®«ã祭¨ï ­®¬¥à  á«®â  ¯®â®ª  --- ;--- ¯à®æ¥¤ãà  ¯®«ã祭¨ï ­®¬¥à  á«®â  ¯®â®ª  ---
; ¢å®¤ ebx - ¡ãää¥à 1024 ¡ ©â ; ¢å®¤ ebx - ¡ãää¥à 1024 ¡ ©â
; ¢ë室 ecx - ­®¬¥à á«®â  ; ¢ë室 ecx - ­®¬¥à á«®â 
get_slot_n: get_slot_n:
movr eax,9 movr eax,9
xor ecx,ecx xor ecx,ecx
dec ecx dec ecx
int 0x40 int 0x40
mov edx,[ebx+30] mov edx,[ebx+30]
xor ecx,ecx xor ecx,ecx
@@: @@:
movr eax,9 movr eax,9
inc ecx inc ecx
int 0x40 int 0x40
cmp [ebx+30],edx cmp [ebx+30],edx
je @f je @f
jmp @b jmp @b
@@: @@:
ret ret
;--- ¯à®æ¥¤ãà , § ¯ã᪠îé ï ¯®â®ª, ¤¥« î騩 1 á­¨¬®ª --- ;--- ¯à®æ¥¤ãà , § ¯ã᪠îé ï ¯®â®ª, ¤¥« î騩 1 á­¨¬®ª ---
one_shoot: one_shoot:
mov ecx,one_shoot_thread mov ecx,one_shoot_thread
mov edx,shoot_esp mov edx,shoot_esp
jmp @f jmp @f
;--- ¯à®æ¥¤à , § ¯ã᪠îé ï ¯®â®ª, á®åà ­ïî騩 á­¨¬®ª --- ;--- ¯à®æ¥¤à , § ¯ã᪠îé ï ¯®â®ª, á®åà ­ïî騩 á­¨¬®ª ---
save_shoot: save_shoot:
mov ecx,save_shoot_thread mov ecx,save_shoot_thread
mov edx,shoot_esp mov edx,shoot_esp
@@: @@:
bts dword [flags],2 bts dword [flags],2
jc .running jc .running
bt dword [flags],1 bt dword [flags],1
jc .running jc .running
movr eax,51 movr eax,51
;mov ebx,1 ;mov ebx,1
xor ebx,ebx xor ebx,ebx
inc ebx inc ebx
int 0x40 int 0x40
.running: .running:
ret ret
;--- ¯®â®ª, ¤¥« î騩 1 á­¨¬®ª --- ;--- ¯®â®ª, ¤¥« î騩 1 á­¨¬®ª ---
one_shoot_thread: one_shoot_thread:
mov ecx,[slot_n] mov ecx,[slot_n]
activ_window activ_window
bt dword [ch1.flags],1 ; ¬¨­¨¬¨§¨à®¢ âì ®ª­® ? bt dword [ch1.flags],1 ; ¬¨­¨¬¨§¨à®¢ âì ®ª­® ?
jnc @f jnc @f
movr eax,60 movr eax,60
movr ebx,2 movr ebx,2
mov ecx,[app.pid] mov ecx,[app.pid]
mov edx,messages.min_window mov edx,messages.min_window
mov esi,2 mov esi,2
int 0x40 int 0x40
@@: @@:
call shoot call shoot
btr dword [flags],2 btr dword [flags],2
jmp close jmp close
;--- ¯à®æ¥¤ãà , ®â¯à ¢«ïîé ï £« ¢­®¬ã ®ª­ã á®®¡é¥­¨¥ ® ¯¥à¥à¨á®¢ª¥ ;--- ¯à®æ¥¤ãà , ®â¯à ¢«ïîé ï £« ¢­®¬ã ®ª­ã á®®¡é¥­¨¥ ® ¯¥à¥à¨á®¢ª¥
; áâப¨ á®áâ®ï­¨ï --- ; áâப¨ á®áâ®ï­¨ï ---
send_draw_status: send_draw_status:
movr eax,60 movr eax,60
movr ebx,2 movr ebx,2
mov ecx,[app.pid] mov ecx,[app.pid]
mov edx,messages.draw_status mov edx,messages.draw_status
mov esi,2 mov esi,2
int 0x40 int 0x40
ret ret
;--- ¯®â®ª, á®åà ­ï ä ©« --- ;--- ¯®â®ª, á®åà ­ï ä ©« ---
save_shoot_thread: save_shoot_thread:
mov ecx,[slot_n] mov ecx,[slot_n]
activ_window activ_window
call save_file call save_file
btr dword [flags],2 btr dword [flags],2
jmp close jmp close
;--- ¯à®æ¥¤ãà , § ¯ã᪠îé ï ¯®â®ª ®ª­  ãáâ ­®¢ª¨ ®¡« á⨠áꥬª¨ --- ;--- ¯à®æ¥¤ãà , § ¯ã᪠îé ï ¯®â®ª ®ª­  ãáâ ­®¢ª¨ ®¡« á⨠áꥬª¨ ---
show_set_rect_window: show_set_rect_window:
bts dword [flags],3 bts dword [flags],3
jc @f jc @f
movr eax,51 movr eax,51
xor ebx,ebx xor ebx,ebx
inc ebx inc ebx
mov ecx,set_rect_window mov ecx,set_rect_window
mov edx,set_rect_window_esp mov edx,set_rect_window_esp
int 0x40 int 0x40
mov [set_rect_window_pid],eax mov [set_rect_window_pid],eax
ret ret
@@: @@:
movr eax,18 movr eax,18
mov ebx,eax mov ebx,eax
mov ecx,[set_rect_window_pid] mov ecx,[set_rect_window_pid]
int 0x40 int 0x40
btr dword [flags],3 btr dword [flags],3
ret ret
;--- ¯®«ã祭¨¥ ¨­ä®à¬ æ¨¨ ®¡  ªâ¨¢­®¬ ®ª­¥ --- ;--- ¯®«ã祭¨¥ ¨­ä®à¬ æ¨¨ ®¡  ªâ¨¢­®¬ ®ª­¥ ---
get_active_window_info: get_active_window_info:
movr eax,18 movr eax,18
movr ebx,7 movr ebx,7
int 0x40 int 0x40
mov ecx,eax mov ecx,eax
movr eax,9 movr eax,9
mov ebx,active_app mov ebx,active_app
int 0x40 int 0x40
ret ret
;==================================================================== ;====================================================================
@ -475,7 +476,7 @@ messages:
grab_text: grab_text:
db title,0 db title,0
labels: labels:
label1 label 5,5,0,text.1 ; è¨à¨­  íªà ­  label1 label 5,5,0,text.1 ; è¨à¨­  íªà ­ 
@ -492,19 +493,19 @@ status label 5,201,0,no_shoot
labels_end: labels_end:
editboxes: editboxes:
edit1 edit_box 300,5,35,cl_white,0xaabbcc,0,0,0,1024,ed_buffer.1,ed_focus ; ¯ãâì ª ä ©«ã edit1 edit_box 300,5,35,cl_white,0xaabbcc,0,0,0,1024,ed_buffer.1,ed_focus ; ¯ãâì ª ä ©«ã
edit2 edit_box 35,75,134,cl_white,0xaabbcc,0,0,0,9,ed_buffer.2,ed_figure_only ; § ¤¥à¦ª  edit2 edit_box 35,75,134,cl_white,0xaabbcc,0,0,0,9,ed_buffer.2,ed_figure_only ; § ¤¥à¦ª 
edit3 edit_box 35,165,164,cl_white,0xaabbcc,0,0,0,9,ed_buffer.3,ed_figure_only edit3 edit_box 35,165,164,cl_white,0xaabbcc,0,0,0,9,ed_buffer.3,ed_figure_only
edit4 edit_box 16,165,181,cl_white,0xaabbcc,0,0,0,1,sign_n_input,ed_figure_only,1 edit4 edit_box 16,165,181,cl_white,0xaabbcc,0,0,0,1,sign_n_input,ed_figure_only,1
editboxes_end: editboxes_end:
buttons: buttons:
but1 txt_button 150,5,15,65,2,0,0,but_text.1,one_shoot ; ᤥ« âì á­¨¬®ª but1 txt_button 150,5,15,65,2,0,0,but_text.1,one_shoot ; ᤥ« âì á­¨¬®ª
but2 txt_button 145,160,15,65,3,0,0,but_text.2,save_shoot ; á®åà ­¨âì á­¨¬®ª but2 txt_button 145,160,15,65,3,0,0,but_text.2,save_shoot ; á®åà ­¨âì á­¨¬®ª
but3 txt_button 140,115,12,120,4,0,0,but_text.3,show_scr_window ; ¯®ª § âì á­¨¬®ª but3 txt_button 140,115,12,120,4,0,0,but_text.3,show_scr_window ; ¯®ª § âì á­¨¬®ª
but4 txt_button 80,205,15,163,5,0,0,but_text.4,apply_number ; ¯à¨¬¥­¨âì ­®¬¥à but4 txt_button 80,205,15,163,5,0,0,but_text.4,apply_number ; ¯à¨¬¥­¨âì ­®¬¥à
but5 txt_button 150,5,15,85,6,0,0,but_text.5,start_autoshoot ; ­ ç âì  ¢â®áêñ¬ªã but5 txt_button 150,5,15,85,6,0,0,but_text.5,start_autoshoot ; ­ ç âì  ¢â®áêñ¬ªã
but6 txt_button 145,160,15,85,7,0,0,but_text.6,stop_autoshoot ; ®áâ ­®¢¨âì  ¢â®áêñ¬ªã but6 txt_button 145,160,15,85,7,0,0,but_text.6,stop_autoshoot ; ®áâ ­®¢¨âì  ¢â®áêñ¬ªã
but7 txt_button 40,205,10,150,8,0,0,but_text.7,show_set_rect_window ; § ¤ âì ®¡« áâì but7 txt_button 40,205,10,150,8,0,0,but_text.7,show_set_rect_window ; § ¤ âì ®¡« áâì
buttons_end: buttons_end:
@ -616,7 +617,7 @@ invalid_rect db 'Wrong area size',0
end if end if
sign_n_input: sign_n_input:
db '2',0 db '2',0
app_ipc ipc_buffer 32 app_ipc ipc_buffer 32
@ -624,33 +625,33 @@ mouse_flag: dd 0x0
structure_of_potock: structure_of_potock:
rb 100 rb 100
cur_number dd ? cur_number dd ?
sign_n db ? sign_n db ?
slot_n dd ? slot_n dd ?
flags dd ? flags dd ?
scr_buf: scr_buf:
.ptr dd ? .ptr dd ?
.end_ptr dd ? .end_ptr dd ?
.size: .size:
.height dw ? .height dw ?
.width dw ? .width dw ?
fs_struc: fs_struc:
.funk_n dd ? .funk_n dd ?
dd ? dd ?
dd ? dd ?
.bytes_to_write dd ? .bytes_to_write dd ?
.data_ptr dd ?,? .data_ptr dd ?,?
.fn_ptr dd ? .fn_ptr dd ?
sf_buf: sf_buf:
.bmp_header dd ? .bmp_header dd ?
.bmp_area dd ? .bmp_area dd ?
.end dd ? .end dd ?
set_rect_window_pid dd ? set_rect_window_pid dd ?
set_rect_window_slot dd ? set_rect_window_slot dd ?
@ -658,7 +659,7 @@ set_rect_window_slot dd ?
rect_input_buffer: rect_input_buffer:
.left rb 6 .left rb 6
.top rb 6 .top rb 6
.width rb 6 .width rb 6
.height rb 6 .height rb 6
cmdstr rb 257 cmdstr rb 257
@ -669,7 +670,7 @@ ed_buffer:
.3: rb 10 .3: rb 10
file_name: file_name:
rb 1058 rb 1058
scr screen_prop scr screen_prop
rect: rect:
@ -680,9 +681,9 @@ rect:
sc sys_color_table sc sys_color_table
app procinfo ; ¨­ä®à¬ æ¨ï ® £« ¢­®¬ ®ª­¥ app procinfo ; ¨­ä®à¬ æ¨ï ® £« ¢­®¬ ®ª­¥
active_app procinfo ; ¨­ä®à¬ æ¨ï ®¡  ªâ¨¢­®¬ ®ª­¥ active_app procinfo ; ¨­ä®à¬ æ¨ï ®¡  ªâ¨¢­®¬ ®ª­¥
set_rect_window_procinfo procinfo ; ¨­ä®à¬ æ¨ï ®¡ ®ª­¥ ®¡« á⨠set_rect_window_procinfo procinfo ; ¨­ä®à¬ æ¨ï ®¡ ®ª­¥ ®¡« áâ¨
shoot_esp rb 512 ; á⥪ ¯®â®ª  ä®âª ­ìï shoot_esp rb 512 ; á⥪ ¯®â®ª  ä®âª ­ìï
set_rect_window_esp rb 512 ; á⥪ ®ª­  ®¡« á⨠set_rect_window_esp rb 512 ; á⥪ ®ª­  ®¡« áâ¨
app_end ; ª®­¥æ ¯à®£à ¬¬ë app_end ; ª®­¥æ ¯à®£à ¬¬ë

View File

@ -20,13 +20,13 @@ version equ '1.2'
dd 0x01 ; ¢¥àá¨ï § £®«®¢ª  (¢á¥£¤  1) dd 0x01 ; ¢¥àá¨ï § £®«®¢ª  (¢á¥£¤  1)
dd START ;  ¤à¥á ¯¥à¢®© ª®¬ ­¤ë dd START ;  ¤à¥á ¯¥à¢®© ª®¬ ­¤ë
dd I_END ; à §¬¥à ¯à®£à ¬¬ë dd I_END ; à §¬¥à ¯à®£à ¬¬ë
dd 0x2000 ; ª®«¨ç¥á⢮ ¯ ¬ï⨠dd I_END ; ª®«¨ç¥á⢮ ¯ ¬ïâ¨
dd 0x2000 ;  ¤à¥á ¢¥à設ë áâíª  dd I_END ;  ¤à¥á ¢¥à設ë áâíª 
dd 0x0 ;  ¤à¥á ¡ãä¥à  ¤«ï ¯ à ¬¥â஢ (­¥ ¨á¯®«ì§ã¥âáï) dd 0x0 ;  ¤à¥á ¡ãä¥à  ¤«ï ¯ à ¬¥â஢ (­¥ ¨á¯®«ì§ã¥âáï)
dd 0x0 ; § à¥§¥à¢¨à®¢ ­® dd 0x0 ; § à¥§¥à¢¨à®¢ ­®
include '..\..\..\develop\examples\editbox\trunk\editbox.inc' include '..\..\..\develop\examples\editbox\trunk\editbox.inc'
use_edit_box procinfo,22,5 use_edit_box
al equ eax ; \ decrease kpack'ed size al equ eax ; \ decrease kpack'ed size
purge mov ; / purge mov ; /
@ -170,7 +170,7 @@ draw_window:
mov edi,title ; ‡€ƒŽ‹Ž‚ŽŠ ŽŠ<C5BD> mov edi,title ; ‡€ƒŽ‹Ž‚ŽŠ ŽŠ<C5BD>
mcall mcall
draw_edit_box editbox,use_f9,procinfo ;à¨á®¢ ­¨¥ edit box'®¢ draw_edit_box editbox ;à¨á®¢ ­¨¥ edit box
mov al,13 ;®âà¨á®¢ª  ⥭¥© ª­®¯®ª mov al,13 ;®âà¨á®¢ª  ⥭¥© ª­®¯®ª
mov ebx,194 shl 16 + 60 mov ebx,194 shl 16 + 60
@ -316,12 +316,11 @@ path3 db '/hd0/1/kolibri.img',0
path4 db '/hd0/1/kolibri/kolibri.img',0 ;¤«ï १¥à¢­®£® á®åà ­¥­¨ï path4 db '/hd0/1/kolibri/kolibri.img',0 ;¤«ï १¥à¢­®£® á®åà ­¥­¨ï
;--------------------------------------------------------------------- ;---------------------------------------------------------------------
I_END: ; ¬¥âª  ª®­æ  ¯à®£à ¬¬ë
rb 514 rb 514
sc system_colors sc system_colors
procinfo process_information align 4
rb 0x100 ; for stack
I_END: ; ¬¥âª  ª®­æ  ¯à®£à ¬¬ë

View File

@ -1,3 +1,4 @@
; 24.07.2008 <Lrz> <20>⑭←キ Edit <>
; 01.02.07 - ®¡­®¢«ñ­ editbox ; 01.02.07 - ®¡­®¢«ñ­ editbox
; 31.01.07 - ¨á¯à ¢«¥­  ­¥ª®àà¥ªâ­ ï ®âà¨á®¢ª  ¯à¨ ¡®«ì讬 §­ ç¥­¨¨ ¢ëá®âë ᪨­  ; 31.01.07 - ¨á¯à ¢«¥­  ­¥ª®àà¥ªâ­ ï ®âà¨á®¢ª  ¯à¨ ¡®«ì讬 §­ ç¥­¨¨ ¢ëá®âë ᪨­ 
; ¢ëà ¢­¨¢ ­¨¥ á­¨§ã ®â­®á¨â¥«ì­® à ¡®ç¥© ®¡« á⨠íªà ­  ; ¢ëà ¢­¨¢ ­¨¥ á­¨§ã ®â­®á¨â¥«ì­® à ¡®ç¥© ®¡« á⨠íªà ­ 
@ -13,7 +14,7 @@ include '../../../macros.inc'
include 'run.mac' include 'run.mac'
include 'lang.inc' include 'lang.inc'
meos_app_start meos_app_start
use_edit_box procinfo,22,5 use_edit_box
use_txt_button use_txt_button
code code
cmp [par],byte 0 cmp [par],byte 0