6,20 → 6,21 |
|
;call draw_ctx_menu |
|
mov ebp, 2 ; 2 ÷àñòî èñïîëüçóåòñÿ. |
|
xor ecx, ecx |
mov edx, [ctx_menu_PID] |
find_slot: |
inc ecx |
|
mov eax, 9 |
mov ebx, process_info_buffer |
int 0x40 |
|
cmp dword [process_info_buffer + 30], edx |
jne find_slot |
|
mov ebp, 2 ; 2 ç áâ® ¨á¯®«ì§ã¥âáï. |
; // Alver 26.08.2007 // { |
; xor ecx, ecx |
; mov edx, [ctx_menu_PID] |
; find_slot: |
; inc ecx |
; mov eax, 9 |
; mov ebx, process_info_buffer |
; int 0x40 |
; cmp dword [process_info_buffer + 30], edx |
; jne find_slot |
mov ecx, [ctx_menu_PID] |
mcall 18,21 |
mov ecx, eax |
; } \\ Alver \\ |
mov eax, 18 |
mov ebx, 3 |
;mov ecx, ecx ; :) |
50,11 → 51,29 |
mov eax, 17 |
int 0x40 |
cmp ah, 1 |
jne ctx_menu_still |
; // Alver 26.08.2007 // { |
; jne ctx_menu_still |
jne @f |
; } \\ Alver \\ |
mov eax, 18 |
mov ebx, ebp ; mov eax, 2 |
mov ecx, [n_slot] |
|
; // Alver 26.08.2007 // { |
jmp .lllxxx |
@@: |
cmp ah, 2 |
jne ctx_menu_still |
mov eax, 18 |
mov ebx, 22 |
mov edx, [n_slot] |
xor ecx, ecx |
; \begin{diamond}[20.09.2007] |
test byte [procinfo_for_detect+70], 2 |
setnz cl |
add cl, cl |
; \end{diamond}[20.09.2007] |
.lllxxx: |
; } \\ Alver \\ |
int 0x40 |
jmp ctx_menu_exit |
|
63,8 → 82,8 |
mov ebx, ebp ; mov ebx, 2 |
int 0x40 |
|
xchg eax, ecx ; cmp eax, 0 Åñëè íå îäíà èç êíîïîê íå íàæàòà âîçâðàùàåìñÿ |
; â ãëàâíûé öèêë ïîòîêà |
xchg eax, ecx ; cmp eax, 0
᫨ ¥ ®¤ ¨§ ª®¯®ª ¥ ¦ â ¢®§¢à é ¥¬áï |
; ¢ £« ¢ë© 横« ¯®â®ª |
jecxz ctx_menu_still |
|
mov eax, 37 |
72,9 → 91,9 |
inc ebx |
int 0x40 |
|
cmp ax, 0 ; Òóò ïðîâåðÿåì ïðîèçîø¸ë-ëè êëèê çà ïðåäåëàìè îêíà êîíòåêñòíîãî |
jb ctx_menu_exit ; ìåíþ, åñëè çà ïðåäåëàìè òî çàêðûâàåì êîíòåêñòíîå ìåíþ |
cmp ax, 41 |
cmp ax, 0 ; ã⠯஢¥à塞 ¯à®¨§®èñ«-«¨ ª«¨ª § ¯à¥¤¥« ¬¨ ®ª ª®â¥ªá⮣® |
jb ctx_menu_exit ; ¬¥î, ¥á«¨ § ¯à¥¤¥« ¬¨ â® § ªàë¢ ¥¬ ª®â¥ªá⮥ ¬¥î |
cmp ax, 60 ; 41 |
ja ctx_menu_exit |
shr eax, 16 |
cmp ax, 0 |
101,9 → 120,9 |
shl ebx, 16 |
add ebx, 133 |
movzx ecx, [y_coord] |
sub ecx, 41 |
sub ecx, 60 ; 41 |
shl ecx, 16 |
add ecx, 41 |
add ecx, 60 ; 41 |
mov edx, [system_colours + 20] ; sc.work |
mov esi, [system_colours + 4] ; sc.grab |
or esi, 0x81000000 |
112,10 → 131,16 |
|
mov eax, 8 |
mov ebx, 0 * 65536 + 133 |
mov ecx, 22 * 65536 + 18 |
mov ecx, 22 * 65536 + 16 |
mov edx, 0x40000001 |
int 0x40 |
|
mov eax, 8 |
mov ebx, 0 * 65536 + 133 |
mov ecx, 40 * 65536 + 18 |
mov edx, 0x40000002 |
int 0x40 |
|
shr eax, 1 ; mov eax, 4 |
mov ebx, 36 * 65536 + 7 |
mov ecx, [system_colours + 16] ; sc.grab_text |
122,6 → 147,7 |
or ecx, 0x10000000 |
|
mov edx, ctx_menu_title |
|
mov esi, ctx_menu_title_end - ctx_menu_title |
int 0x40 |
|
129,11 → 155,20 |
int 0x40 |
|
mov ebx, 4 * 65536 + 28 |
xor ecx, ecx ; mov ecx, 0x00000000 |
mov ecx, 0x80000000 |
mov edx, ctx_menu_text |
mov esi, ctx_menu_text_end - ctx_menu_text |
; // Alver 26.08.2007 // { |
int 0x40 |
|
add bx, 18 |
mov edx, ctx_menu_text2 |
; \begin{diamond}[20.09.2007] |
test byte [procinfo_for_detect+70], 2 |
jz @f |
mov edx, ctx_menu_text3 |
@@: |
; \end{diamond}[20.09.2007] |
int 0x40 |
; } \\ Alver \\ |
mov eax, 12 |
mov ebx, ebp ; mov ebx, 2 |
int 0x40 |
146,11 → 181,19 |
y_coord rw 1 |
n_slot rd 1 |
lsz ctx_menu_text,\ |
ru, "X ªàëâì Alt + F4",\ |
en, "X Close Alt + F4",\ |
et, "X Sulge Alt + F4" ; Now correct |
|
ctx_menu_text_end: |
ru, <"X ªàëâì Alt + F4",0>,\ |
en, <"X Close Alt + F4",0>,\ |
et, <"X Sulge Alt + F4",0> ; Now correct |
; // Alver 26.08.2007 // { |
lsz ctx_menu_text2,\ |
ru, <25," ¢¥àãâì ",0>,\ |
en, <25," Minimize ",0>,\ |
; } \\ Alver \\ |
; \begin{diamond}[20.09.2007] |
lsz ctx_menu_text3,\ |
ru, <24," ®ááâ ®¢¨âì ",0>,\ |
en, <24," Restore ",0> |
; \end{diamond}[20.09.2007] |
ctx_menu_PID rd 1 |
|
ctx_menu_title: |