forked from KolibriOS/kolibrios
TASK PANEL v2.2
1) Support PrintScreen for SCRSHOOT. 2) Path to run applications from the INI file. 3) Algorithm anti-duplication of applications for run with hotkey. 4) Added color selection for the Alt+Tab. 5) Alt+Ctrl+ArrowLeft - Page list next, Alt+Ctrl+ArrowRight - Page list previous git-svn-id: svn://kolibrios.org@2630 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
1e3b48239a
commit
d6e0b2fc01
@ -28,3 +28,13 @@ CpuUsageBckgr=255,0,0
|
|||||||
ChangeLang=0,128,255
|
ChangeLang=0,128,255
|
||||||
PageList=255,255,255
|
PageList=255,255,255
|
||||||
Text=255,255,255
|
Text=255,255,255
|
||||||
|
AltTab=255,128,0
|
||||||
|
|
||||||
|
[ApplicationsPaths]
|
||||||
|
End=/sys/END
|
||||||
|
Menu=/sys/@MENU
|
||||||
|
Run=/sys/RUN
|
||||||
|
PrnScr=/sys/SCRSHOOT
|
||||||
|
Clock=/sys/CALENDAR
|
||||||
|
CpuUsage=/sys/GMON
|
||||||
|
MouseEmul=/sys/MOUSEMUL
|
||||||
|
@ -28,3 +28,13 @@ CpuUsageBckgr=255,0,0
|
|||||||
ChangeLang=0,128,255
|
ChangeLang=0,128,255
|
||||||
PageList=255,255,255
|
PageList=255,255,255
|
||||||
Text=255,255,255
|
Text=255,255,255
|
||||||
|
AltTab=255,128,0
|
||||||
|
|
||||||
|
[ApplicationsPaths]
|
||||||
|
End=/sys/END
|
||||||
|
Menu=/sys/@MENU
|
||||||
|
Run=/sys/RUN
|
||||||
|
PrnScr=/sys/SCRSHOOT
|
||||||
|
Clock=/sys/CALENDAR
|
||||||
|
CpuUsage=/sys/GMON
|
||||||
|
MouseEmul=/sys/MOUSEMUL
|
||||||
|
@ -28,3 +28,13 @@ CpuUsageBckgr=255,0,0
|
|||||||
ChangeLang=0,128,255
|
ChangeLang=0,128,255
|
||||||
PageList=255,255,255
|
PageList=255,255,255
|
||||||
Text=255,255,255
|
Text=255,255,255
|
||||||
|
AltTab=255,128,0
|
||||||
|
|
||||||
|
[ApplicationsPaths]
|
||||||
|
End=/sys/END
|
||||||
|
Menu=/sys/@MENU
|
||||||
|
Run=/sys/RUN
|
||||||
|
PrnScr=/sys/SCRSHOOT
|
||||||
|
Clock=/sys/CALENDAR
|
||||||
|
CpuUsage=/sys/GMON
|
||||||
|
MouseEmul=/sys/MOUSEMUL
|
||||||
|
@ -28,3 +28,13 @@ CpuUsageBckgr=255,0,0
|
|||||||
ChangeLang=0,128,255
|
ChangeLang=0,128,255
|
||||||
PageList=255,255,255
|
PageList=255,255,255
|
||||||
Text=255,255,255
|
Text=255,255,255
|
||||||
|
AltTab=255,128,0
|
||||||
|
|
||||||
|
[ApplicationsPaths]
|
||||||
|
End=/sys/END
|
||||||
|
Menu=/sys/@MENU
|
||||||
|
Run=/sys/RUN
|
||||||
|
PrnScr=/sys/SCRSHOOT
|
||||||
|
Clock=/sys/CALENDAR
|
||||||
|
CpuUsage=/sys/GMON
|
||||||
|
MouseEmul=/sys/MOUSEMUL
|
||||||
|
@ -4,6 +4,16 @@
|
|||||||
; ;
|
; ;
|
||||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||||
;------------------------------------------------------------------------------
|
;------------------------------------------------------------------------------
|
||||||
|
; version: 2.2
|
||||||
|
; last update: 19/04/2012
|
||||||
|
; changed by: Marat Zakiyanov aka Mario79, aka Mario
|
||||||
|
; changes: Support PrintScreen for SCRSHOOT.
|
||||||
|
; Path to run applications from the INI file.
|
||||||
|
; Algorithm anti-duplication of applications for run with hotkey.
|
||||||
|
; Added color selection for the Alt+Tab.
|
||||||
|
; Alt+Ctrl+ArrowLeft - Page list next
|
||||||
|
; Alt+Ctrl+ArrowRight - Page list previous
|
||||||
|
;------------------------------------------------------------------------------
|
||||||
; version: 2.1
|
; version: 2.1
|
||||||
; last update: 18/04/2012
|
; last update: 18/04/2012
|
||||||
; changed by: Marat Zakiyanov aka Mario79, aka Mario
|
; changed by: Marat Zakiyanov aka Mario79, aka Mario
|
||||||
@ -147,11 +157,11 @@ end if
|
|||||||
cmp al, 62 ; Alt+F4
|
cmp al, 62 ; Alt+F4
|
||||||
jz kill_active_application
|
jz kill_active_application
|
||||||
|
|
||||||
; cmp al, 71
|
cmp al, 205
|
||||||
; jz page_list_next
|
jz page_list_next
|
||||||
|
|
||||||
; cmp al, 72
|
cmp al, 203
|
||||||
; jz page_list_prev
|
jz page_list_prev
|
||||||
|
|
||||||
cmp al, 69 ; Alt+Shift+NumLock
|
cmp al, 69 ; Alt+Shift+NumLock
|
||||||
jz start_mousemul_application
|
jz start_mousemul_application
|
||||||
@ -161,6 +171,9 @@ end if
|
|||||||
|
|
||||||
cmp al, 32 ; Win+D
|
cmp al, 32 ; Win+D
|
||||||
jz minimize_all_windows
|
jz minimize_all_windows
|
||||||
|
|
||||||
|
cmp al, 55 ; PrintScreen DOWN
|
||||||
|
jz start_PrintScreen_application
|
||||||
;--------------------------------------
|
;--------------------------------------
|
||||||
align 4
|
align 4
|
||||||
prod:
|
prod:
|
||||||
@ -221,12 +234,30 @@ align 4
|
|||||||
;------------------------------------------------------------------------------
|
;------------------------------------------------------------------------------
|
||||||
align 4
|
align 4
|
||||||
start_end_application:
|
start_end_application:
|
||||||
|
mov esi,end_name
|
||||||
|
call algorithm_anti_duplication
|
||||||
|
test eax,eax
|
||||||
|
jz @f
|
||||||
|
ret
|
||||||
|
;--------------------------------------
|
||||||
|
align 4
|
||||||
|
@@:
|
||||||
|
mov ebx, exec_fileinfo
|
||||||
mov dword [ebx+21],end_name
|
mov dword [ebx+21],end_name
|
||||||
mcall 70
|
mcall 70
|
||||||
ret
|
ret
|
||||||
;------------------------------------------------------------------------------
|
;------------------------------------------------------------------------------
|
||||||
align 4
|
align 4
|
||||||
start_mousemul_application:
|
start_mousemul_application:
|
||||||
|
mov esi,mousemul_name
|
||||||
|
call algorithm_anti_duplication
|
||||||
|
test eax,eax
|
||||||
|
jz @f
|
||||||
|
ret
|
||||||
|
;--------------------------------------
|
||||||
|
align 4
|
||||||
|
@@:
|
||||||
|
mov ebx, exec_fileinfo
|
||||||
mov dword [ebx+21],mousemul_name
|
mov dword [ebx+21],mousemul_name
|
||||||
mcall 70
|
mcall 70
|
||||||
ret
|
ret
|
||||||
@ -239,7 +270,6 @@ kill_active_application:
|
|||||||
|
|
||||||
align 4
|
align 4
|
||||||
start_menu_application:
|
start_menu_application:
|
||||||
mov [draw_window_1], 1
|
|
||||||
call menu_handler
|
call menu_handler
|
||||||
jmp begin_1.ret
|
jmp begin_1.ret
|
||||||
;------------------------------------------------------------------------------
|
;------------------------------------------------------------------------------
|
||||||
@ -252,12 +282,37 @@ start_run_application:
|
|||||||
align 4
|
align 4
|
||||||
@@:
|
@@:
|
||||||
mov [start_menu_flag],1
|
mov [start_menu_flag],1
|
||||||
mov [draw_window_1], 1
|
|
||||||
|
mov esi,run_name
|
||||||
|
call algorithm_anti_duplication
|
||||||
|
test eax,eax
|
||||||
|
jz @f
|
||||||
|
ret
|
||||||
|
;--------------------------------------
|
||||||
|
align 4
|
||||||
|
@@:
|
||||||
|
mov ebx, exec_fileinfo
|
||||||
mov dword [ebx+21], run_name
|
mov dword [ebx+21], run_name
|
||||||
mcall 70
|
mcall 70
|
||||||
jmp begin_1.ret
|
jmp begin_1.ret
|
||||||
;------------------------------------------------------------------------------
|
;------------------------------------------------------------------------------
|
||||||
align 4
|
align 4
|
||||||
|
start_PrintScreen_application:
|
||||||
|
mov esi,printscreen_name
|
||||||
|
call algorithm_anti_duplication
|
||||||
|
test eax,eax
|
||||||
|
jz @f
|
||||||
|
ret
|
||||||
|
;--------------------------------------
|
||||||
|
align 4
|
||||||
|
@@:
|
||||||
|
mov ebx, exec_fileinfo
|
||||||
|
mov dword [ebx+21],printscreen_name
|
||||||
|
mov [ebx+8],dword bootparam_printscreen
|
||||||
|
mcall 70
|
||||||
|
jmp begin_1.ret
|
||||||
|
;------------------------------------------------------------------------------
|
||||||
|
align 4
|
||||||
minimize_all_windows:
|
minimize_all_windows:
|
||||||
cmp [win_key_flag],1
|
cmp [win_key_flag],1
|
||||||
je @f
|
je @f
|
||||||
@ -269,25 +324,98 @@ align 4
|
|||||||
call clean_desktop
|
call clean_desktop
|
||||||
ret
|
ret
|
||||||
;------------------------------------------------------------------------------
|
;------------------------------------------------------------------------------
|
||||||
;align 4
|
align 4
|
||||||
;page_list_next:
|
algorithm_anti_duplication:
|
||||||
; cmp [page_list],15
|
cld
|
||||||
; je @f
|
;--------------------------------------
|
||||||
;
|
align 4
|
||||||
; inc [page_list]
|
@@:
|
||||||
; mov [draw_window_1],1
|
lodsb
|
||||||
;@@:
|
test al,al
|
||||||
; jmp begin_1.ret
|
jnz @r
|
||||||
|
;--------------------------------------
|
||||||
|
align 4
|
||||||
|
@@:
|
||||||
|
std
|
||||||
|
lodsb
|
||||||
|
cmp al,'/'
|
||||||
|
jnz @r
|
||||||
|
add esi,2
|
||||||
|
mov edx,esi
|
||||||
|
|
||||||
|
mov edi,1
|
||||||
|
;--------------------------------------
|
||||||
|
align 4
|
||||||
|
@@:
|
||||||
|
inc edi
|
||||||
|
mov ecx,edi
|
||||||
|
mcall 9,procinfo_window_tabs
|
||||||
|
|
||||||
|
cmp edi,eax
|
||||||
|
jg .apply_changes
|
||||||
|
|
||||||
|
; mov eax,[ebx+10]
|
||||||
|
; and eax,not 20202020h
|
||||||
|
; cmp eax,'SCRS'
|
||||||
|
; jz @f
|
||||||
|
|
||||||
|
; mov eax,[ebx+14]
|
||||||
|
; and eax,not 20202020h
|
||||||
|
; cmp eax,'HOOT'
|
||||||
|
; jne @r
|
||||||
|
mov esi,edx
|
||||||
|
mov ecx,11
|
||||||
|
add ebx,9
|
||||||
|
cld
|
||||||
|
;--------------------------------------
|
||||||
|
align 4
|
||||||
|
.loop:
|
||||||
|
lodsb
|
||||||
|
inc ebx
|
||||||
|
cmp al,[ebx]
|
||||||
|
jne @r
|
||||||
|
|
||||||
|
loop .loop
|
||||||
|
|
||||||
|
mov eax,1
|
||||||
|
ret
|
||||||
|
;--------------------------------------
|
||||||
|
align 4
|
||||||
|
.apply_changes:
|
||||||
|
xor eax,eax
|
||||||
|
ret
|
||||||
;------------------------------------------------------------------------------
|
;------------------------------------------------------------------------------
|
||||||
;align 4
|
align 4
|
||||||
;page_list_prev:
|
page_list_next:
|
||||||
; cmp [page_list],0
|
cmp [page_list],50
|
||||||
; je @f
|
je @f
|
||||||
;
|
|
||||||
; dec [page_list]
|
xor eax,eax
|
||||||
; mov [draw_window_1],1
|
cmp [page_list_enable],eax
|
||||||
;@@:
|
je @f
|
||||||
; jmp begin_1.ret
|
|
||||||
|
inc [page_list]
|
||||||
|
mov [redraw_window_flag],1
|
||||||
|
;--------------------------------------
|
||||||
|
align 4
|
||||||
|
@@:
|
||||||
|
jmp begin_1.ret
|
||||||
|
;------------------------------------------------------------------------------
|
||||||
|
align 4
|
||||||
|
page_list_prev:
|
||||||
|
xor eax,eax
|
||||||
|
cmp [page_list],eax
|
||||||
|
je @f
|
||||||
|
|
||||||
|
cmp [page_list_enable],eax
|
||||||
|
je @f
|
||||||
|
|
||||||
|
dec [page_list]
|
||||||
|
mov [redraw_window_flag],1
|
||||||
|
;--------------------------------------
|
||||||
|
align 4
|
||||||
|
@@:
|
||||||
|
jmp begin_1.ret
|
||||||
;------------------------------------------------------------------------------
|
;------------------------------------------------------------------------------
|
||||||
align 4
|
align 4
|
||||||
alt_tab_pressed:
|
alt_tab_pressed:
|
||||||
@ -419,7 +547,6 @@ align 4
|
|||||||
xor edx, edx
|
xor edx, edx
|
||||||
div [max_applications]
|
div [max_applications]
|
||||||
mov [page_list], eax
|
mov [page_list], eax
|
||||||
mov [draw_window_1], 1
|
|
||||||
mov edi, app_list
|
mov edi, app_list
|
||||||
push edi
|
push edi
|
||||||
mov ecx, 20
|
mov ecx, 20
|
||||||
@ -478,6 +605,11 @@ load_libraries l_libs_start,end_l_libs
|
|||||||
mcall 66,4,0,2 ; LShift+RShift
|
mcall 66,4,0,2 ; LShift+RShift
|
||||||
mcall 66,,,11h ; Ctrl+Shift
|
mcall 66,,,11h ; Ctrl+Shift
|
||||||
mcall 66,,88,110h ; Alt+Ctrl+F12
|
mcall 66,,88,110h ; Alt+Ctrl+F12
|
||||||
|
; mcall 66,,75 ; Alt+Ctrl+ArrowLeft DOWN
|
||||||
|
mcall 66,,203 ; Alt+Ctrl+ArrowLeft UP
|
||||||
|
; mcall 66,,77 ; Alt+Ctrl+ArrowRight DOWN
|
||||||
|
mcall 66,,205 ; Alt+Ctrl+ArrowRight UP
|
||||||
|
|
||||||
mcall 66,,91,0h ; RWin DOWN
|
mcall 66,,91,0h ; RWin DOWN
|
||||||
mcall 66,,92 ; LWin DOWN
|
mcall 66,,92 ; LWin DOWN
|
||||||
mcall 66,,219 ; RWin UP
|
mcall 66,,219 ; RWin UP
|
||||||
@ -491,13 +623,15 @@ load_libraries l_libs_start,end_l_libs
|
|||||||
mcall 66,,32,0h ; Win+D DOWN
|
mcall 66,,32,0h ; Win+D DOWN
|
||||||
; mcall 66,,160,0h ; Win+D UP
|
; mcall 66,,160,0h ; Win+D UP
|
||||||
|
|
||||||
|
mcall 66,,55,0h ; PrintScreen DOWN
|
||||||
|
; mcall 66,,183,0h ; PrintScreen UP
|
||||||
|
|
||||||
|
|
||||||
; mcall 66,,91,100h ; Alt+LWin
|
; mcall 66,,91,100h ; Alt+LWin
|
||||||
; mcall 66,,92 ; Alt+RWin
|
; mcall 66,,92 ; Alt+RWin
|
||||||
mcall 66,,62,100h ; Alt+F4
|
mcall 66,,62,100h ; Alt+F4
|
||||||
; mcall 66,,71 ; Alt+Home
|
; mcall 66,,71 ; Alt+Home
|
||||||
; mcall 66,,72 ; Alt+Up
|
; mcall 66,,72 ; Alt+Up
|
||||||
mcall 66,,15 ; Alt+Tab
|
|
||||||
mcall 66,,2 ; Alt+1
|
mcall 66,,2 ; Alt+1
|
||||||
mcall 66,,3 ; Alt+2
|
mcall 66,,3 ; Alt+2
|
||||||
mcall 66,,4 ; Alt+3
|
mcall 66,,4 ; Alt+3
|
||||||
@ -505,7 +639,8 @@ load_libraries l_libs_start,end_l_libs
|
|||||||
mcall 66,,6 ; Alt+5
|
mcall 66,,6 ; Alt+5
|
||||||
mcall 66,,7 ; Alt+6
|
mcall 66,,7 ; Alt+6
|
||||||
mcall 66,,8 ; Alt+7
|
mcall 66,,8 ; Alt+7
|
||||||
mcall 66,,,101h ; Alt+Shift+Tab
|
mcall 66,,15 ; Alt+Tab DOWN
|
||||||
|
mcall 66,,15,101h ; Alt+Shift+Tab DOWN
|
||||||
mcall 66,,69 ; Alt+Shift+NumLock
|
mcall 66,,69 ; Alt+Shift+NumLock
|
||||||
|
|
||||||
if caps_lock_check
|
if caps_lock_check
|
||||||
@ -593,7 +728,10 @@ align 4
|
|||||||
mcall 18,7
|
mcall 18,7
|
||||||
cmp [my_active_slot],eax
|
cmp [my_active_slot],eax
|
||||||
je @f
|
je @f
|
||||||
|
|
||||||
mov [current_active_slot],eax
|
mov [current_active_slot],eax
|
||||||
|
;--------------------------------------
|
||||||
|
align 4
|
||||||
@@:
|
@@:
|
||||||
pop eax
|
pop eax
|
||||||
|
|
||||||
@ -604,7 +742,10 @@ align 4
|
|||||||
mov eax,[redraw_window_flag]
|
mov eax,[redraw_window_flag]
|
||||||
test eax,eax
|
test eax,eax
|
||||||
jz @f
|
jz @f
|
||||||
|
|
||||||
call draw_window
|
call draw_window
|
||||||
|
;--------------------------------------
|
||||||
|
align 4
|
||||||
@@:
|
@@:
|
||||||
pop eax
|
pop eax
|
||||||
|
|
||||||
@ -612,11 +753,15 @@ align 4
|
|||||||
jnz @f
|
jnz @f
|
||||||
call handle_key
|
call handle_key
|
||||||
jmp .key
|
jmp .key
|
||||||
|
;--------------------------------------
|
||||||
|
align 4
|
||||||
@@:
|
@@:
|
||||||
cmp eax,3 ; button ?
|
cmp eax,3 ; button ?
|
||||||
jz button
|
jz button
|
||||||
|
|
||||||
; call handle_key
|
; call handle_key
|
||||||
|
;--------------------------------------
|
||||||
|
align 4
|
||||||
.key:
|
.key:
|
||||||
cmp dword [active_window_changed], 0
|
cmp dword [active_window_changed], 0
|
||||||
jnz red_active
|
jnz red_active
|
||||||
@ -639,7 +784,10 @@ red:
|
|||||||
rol eax,16
|
rol eax,16
|
||||||
cmp [screen_size.width],ax
|
cmp [screen_size.width],ax
|
||||||
je .lp1
|
je .lp1
|
||||||
|
|
||||||
rol eax,16
|
rol eax,16
|
||||||
|
;--------------------------------------
|
||||||
|
align 4
|
||||||
@@:
|
@@:
|
||||||
mov [screen_size],eax
|
mov [screen_size],eax
|
||||||
sub ecx,[height]
|
sub ecx,[height]
|
||||||
@ -678,6 +826,8 @@ button:
|
|||||||
|
|
||||||
cmp ecx,[current_active_slot]
|
cmp ecx,[current_active_slot]
|
||||||
je .turn_off
|
je .turn_off
|
||||||
|
;--------------------------------------
|
||||||
|
align 4
|
||||||
@@:
|
@@:
|
||||||
mcall 18,3,
|
mcall 18,3,
|
||||||
jmp .task_switching
|
jmp .task_switching
|
||||||
@ -686,6 +836,8 @@ align 4
|
|||||||
.turn_off:
|
.turn_off:
|
||||||
mov edx,ecx
|
mov edx,ecx
|
||||||
mcall 18,22,0
|
mcall 18,22,0
|
||||||
|
;--------------------------------------
|
||||||
|
align 4
|
||||||
.task_switching:
|
.task_switching:
|
||||||
mcall 68,1
|
mcall 68,1
|
||||||
jmp still
|
jmp still
|
||||||
@ -747,11 +899,7 @@ no_activate:
|
|||||||
;--------------------------------------
|
;--------------------------------------
|
||||||
align 4
|
align 4
|
||||||
clean_desktop_1:
|
clean_desktop_1:
|
||||||
|
|
||||||
|
|
||||||
call clean_desktop
|
call clean_desktop
|
||||||
|
|
||||||
|
|
||||||
jmp still
|
jmp still
|
||||||
;--------------------------------------
|
;--------------------------------------
|
||||||
align 4
|
align 4
|
||||||
@ -760,6 +908,12 @@ noselect:
|
|||||||
cmp ah,byte 2 ; start calendar
|
cmp ah,byte 2 ; start calendar
|
||||||
jnz noid15 ;noclock
|
jnz noid15 ;noclock
|
||||||
|
|
||||||
|
mov esi,calendar_name
|
||||||
|
call algorithm_anti_duplication
|
||||||
|
test eax,eax
|
||||||
|
jnz still
|
||||||
|
|
||||||
|
mov ebx, exec_fileinfo
|
||||||
mov dword [ebx+21], calendar_name
|
mov dword [ebx+21], calendar_name
|
||||||
mcall 70
|
mcall 70
|
||||||
jmp still
|
jmp still
|
||||||
@ -791,6 +945,12 @@ noid16:
|
|||||||
cmp ah,18
|
cmp ah,18
|
||||||
jne noid18
|
jne noid18
|
||||||
|
|
||||||
|
mov esi,sysmeter_name
|
||||||
|
call algorithm_anti_duplication
|
||||||
|
test eax,eax
|
||||||
|
jnz still
|
||||||
|
|
||||||
|
mov ebx, exec_fileinfo
|
||||||
mov dword [ebx+21], sysmeter_name
|
mov dword [ebx+21], sysmeter_name
|
||||||
mcall 70
|
mcall 70
|
||||||
jmp still
|
jmp still
|
||||||
@ -819,7 +979,7 @@ noid18:
|
|||||||
cmp ah,21
|
cmp ah,21
|
||||||
jnz noid21
|
jnz noid21
|
||||||
|
|
||||||
cmp [page_list], 99
|
cmp [page_list],50
|
||||||
jnc still
|
jnc still
|
||||||
inc [page_list]
|
inc [page_list]
|
||||||
jmp red
|
jmp red
|
||||||
@ -923,6 +1083,8 @@ align 4
|
|||||||
cmp [clean_desktop_minimize],1
|
cmp [clean_desktop_minimize],1
|
||||||
je @f
|
je @f
|
||||||
call restore_desktop
|
call restore_desktop
|
||||||
|
;--------------------------------------
|
||||||
|
align 4
|
||||||
@@:
|
@@:
|
||||||
ret
|
ret
|
||||||
; jmp still
|
; jmp still
|
||||||
@ -1115,21 +1277,6 @@ no_full:
|
|||||||
call menu_handler
|
call menu_handler
|
||||||
jmp small_wait
|
jmp small_wait
|
||||||
;------------------------------------------------------------------------------
|
;------------------------------------------------------------------------------
|
||||||
;align 4
|
|
||||||
;set_variables:
|
|
||||||
; pusha
|
|
||||||
; mov [button_frames],0x0
|
|
||||||
; cmp [buttons],0
|
|
||||||
; jne no_frames
|
|
||||||
|
|
||||||
; mov [button_frames],0x40000000
|
|
||||||
;--------------------------------------
|
|
||||||
;align 4
|
|
||||||
;no_frames:
|
|
||||||
; mcall 48,1,1 ; 3d button look
|
|
||||||
; popa
|
|
||||||
; ret
|
|
||||||
;------------------------------------------------------------------------------
|
|
||||||
include 'libini.inc'
|
include 'libini.inc'
|
||||||
;------------------------------------------------------------------------------
|
;------------------------------------------------------------------------------
|
||||||
include 'dll.inc'
|
include 'dll.inc'
|
||||||
|
@ -100,7 +100,7 @@ draw_ctx_menu:
|
|||||||
add ecx, 60 ; 41
|
add ecx, 60 ; 41
|
||||||
mov esi, [system_colours + 4] ; sc.grab
|
mov esi, [system_colours + 4] ; sc.grab
|
||||||
or esi, 0x81000000
|
or esi, 0x81000000
|
||||||
mcall ,,,[system_colours + 20],[system_colours]
|
mcall ,,,[system_colours + 20],,[system_colours]
|
||||||
|
|
||||||
mcall 8,<0,133>,<22,17>,0x40000001
|
mcall 8,<0,133>,<22,17>,0x40000001
|
||||||
|
|
||||||
|
@ -144,8 +144,6 @@ align 4
|
|||||||
shl ebx,16
|
shl ebx,16
|
||||||
add ebx,TAB_SIZE-2 ;54
|
add ebx,TAB_SIZE-2 ;54
|
||||||
|
|
||||||
call calculate_button_y_coordinate_and_size
|
|
||||||
|
|
||||||
push edi
|
push edi
|
||||||
mov edx,[system_colours.work_button]
|
mov edx,[system_colours.work_button]
|
||||||
xor edi,edi
|
xor edi,edi
|
||||||
@ -165,10 +163,12 @@ align 4
|
|||||||
cmp ecx,[alt_tab_list+esi*8]
|
cmp ecx,[alt_tab_list+esi*8]
|
||||||
jnz @f
|
jnz @f
|
||||||
|
|
||||||
mov edx,0xFF8000 ; current select for ALT+Tab
|
mov edx,[AltTab_color] ;0xFF8000 ; current select for ALT+Tab
|
||||||
;--------------------------------------
|
;--------------------------------------
|
||||||
align 4
|
align 4
|
||||||
@@:
|
@@:
|
||||||
|
call calculate_button_y_coordinate_and_size
|
||||||
|
|
||||||
mov esi,[wcolor]
|
mov esi,[wcolor]
|
||||||
call draw_appl_button
|
call draw_appl_button
|
||||||
pop edi
|
pop edi
|
||||||
|
@ -128,19 +128,28 @@ subtract_color_change_magnitude:
|
|||||||
; edx = processed color
|
; edx = processed color
|
||||||
sub dl,al
|
sub dl,al
|
||||||
jae @f
|
jae @f
|
||||||
|
|
||||||
xor dl,dl
|
xor dl,dl
|
||||||
|
;--------------------------------------
|
||||||
|
align 4
|
||||||
@@:
|
@@:
|
||||||
ror edx,8
|
ror edx,8
|
||||||
ror eax,8
|
ror eax,8
|
||||||
sub dl,al
|
sub dl,al
|
||||||
jae @f
|
jae @f
|
||||||
|
|
||||||
xor dl,dl
|
xor dl,dl
|
||||||
|
;--------------------------------------
|
||||||
|
align 4
|
||||||
@@:
|
@@:
|
||||||
ror edx,8
|
ror edx,8
|
||||||
ror eax,8
|
ror eax,8
|
||||||
sub dl,al
|
sub dl,al
|
||||||
jae @f
|
jae @f
|
||||||
|
|
||||||
xor dl,dl
|
xor dl,dl
|
||||||
|
;--------------------------------------
|
||||||
|
align 4
|
||||||
@@:
|
@@:
|
||||||
rol edx,16
|
rol edx,16
|
||||||
ret
|
ret
|
||||||
@ -154,27 +163,38 @@ add_color_change_magnitude:
|
|||||||
; edx = processed color
|
; edx = processed color
|
||||||
add dl,al
|
add dl,al
|
||||||
jae @f
|
jae @f
|
||||||
|
|
||||||
mov dl,0xff
|
mov dl,0xff
|
||||||
|
;--------------------------------------
|
||||||
|
align 4
|
||||||
@@:
|
@@:
|
||||||
ror edx,8
|
ror edx,8
|
||||||
ror eax,8
|
ror eax,8
|
||||||
add dl,al
|
add dl,al
|
||||||
jae @f
|
jae @f
|
||||||
|
|
||||||
mov dl,0xff
|
mov dl,0xff
|
||||||
|
;--------------------------------------
|
||||||
|
align 4
|
||||||
@@:
|
@@:
|
||||||
ror edx,8
|
ror edx,8
|
||||||
ror eax,8
|
ror eax,8
|
||||||
add dl,al
|
add dl,al
|
||||||
jae @f
|
jae @f
|
||||||
|
|
||||||
mov dl,0xff
|
mov dl,0xff
|
||||||
|
;--------------------------------------
|
||||||
|
align 4
|
||||||
@@:
|
@@:
|
||||||
rol edx,16
|
rol edx,16
|
||||||
ret
|
ret
|
||||||
;------------------------------------------------------------------------------
|
;------------------------------------------------------------------------------
|
||||||
|
align 4
|
||||||
calculate_button_y_coordinate_and_size:
|
calculate_button_y_coordinate_and_size:
|
||||||
mov ecx,[button_top_offset]
|
mov ecx,[button_top_offset]
|
||||||
shl ecx,16
|
shl ecx,16
|
||||||
add ecx,[height]
|
add ecx,[height]
|
||||||
sub ecx,[button_top_offset]
|
sub ecx,[button_top_offset]
|
||||||
sub ecx,[button_bottom_offset]
|
sub ecx,[button_bottom_offset]
|
||||||
ret
|
ret
|
||||||
|
;------------------------------------------------------------------------------
|
||||||
|
@ -2,8 +2,6 @@
|
|||||||
align 4
|
align 4
|
||||||
draw_tray: ; draw cpu usage, time, date etc.
|
draw_tray: ; draw cpu usage, time, date etc.
|
||||||
pusha
|
pusha
|
||||||
; cmp [tray_enable],dword 1
|
|
||||||
; jne no_setup
|
|
||||||
|
|
||||||
call draw_tray_buttons
|
call draw_tray_buttons
|
||||||
call draw_time_skin
|
call draw_time_skin
|
||||||
@ -13,9 +11,7 @@ draw_tray: ; draw cpu usage, time, date etc.
|
|||||||
call draw_flag ; language
|
call draw_flag ; language
|
||||||
|
|
||||||
call draw_list_button
|
call draw_list_button
|
||||||
;--------------------------------------
|
|
||||||
;align 4
|
|
||||||
;no_setup:
|
|
||||||
popa
|
popa
|
||||||
ret
|
ret
|
||||||
;------------------------------------------------------------------------------
|
;------------------------------------------------------------------------------
|
||||||
@ -97,6 +93,7 @@ align 4
|
|||||||
@@:
|
@@:
|
||||||
ret
|
ret
|
||||||
;------------------------------------------------------------------------------
|
;------------------------------------------------------------------------------
|
||||||
|
align 4
|
||||||
draw_time_skin:
|
draw_time_skin:
|
||||||
cmp [clock_enable],dword 0
|
cmp [clock_enable],dword 0
|
||||||
je .exit
|
je .exit
|
||||||
@ -113,6 +110,7 @@ align 4
|
|||||||
.exit:
|
.exit:
|
||||||
ret
|
ret
|
||||||
;------------------------------------------------------------------------------
|
;------------------------------------------------------------------------------
|
||||||
|
align 4
|
||||||
draw_time:
|
draw_time:
|
||||||
cmp [clock_enable],dword 0
|
cmp [clock_enable],dword 0
|
||||||
je .exit
|
je .exit
|
||||||
@ -268,6 +266,8 @@ draw_list_button:
|
|||||||
mov edx,ebx
|
mov edx,ebx
|
||||||
add edx,9 shl 16
|
add edx,9 shl 16
|
||||||
mcall 47,0x20000,[page_list],,[system_colours.work_button_text]
|
mcall 47,0x20000,[page_list],,[system_colours.work_button_text]
|
||||||
|
;--------------------------------------
|
||||||
|
align 4
|
||||||
.exit:
|
.exit:
|
||||||
ret
|
ret
|
||||||
;------------------------------------------------------------------------------
|
;------------------------------------------------------------------------------
|
||||||
@ -330,6 +330,8 @@ align 4
|
|||||||
mcall 13,,,[CpuUsage_color] ;0x44aa44
|
mcall 13,,,[CpuUsage_color] ;0x44aa44
|
||||||
|
|
||||||
popad
|
popad
|
||||||
|
;--------------------------------------
|
||||||
|
align 4
|
||||||
.exit:
|
.exit:
|
||||||
ret
|
ret
|
||||||
;------------------------------------------------------------------------------
|
;------------------------------------------------------------------------------
|
||||||
@ -405,6 +407,8 @@ end if
|
|||||||
mcall 4,,,,2
|
mcall 4,,,,2
|
||||||
popa
|
popa
|
||||||
mov [draw_flag_certainly],0
|
mov [draw_flag_certainly],0
|
||||||
|
;--------------------------------------
|
||||||
|
align 4
|
||||||
.exit:
|
.exit:
|
||||||
ret
|
ret
|
||||||
;------------------------------------------------------------------------------
|
;------------------------------------------------------------------------------
|
||||||
|
@ -116,6 +116,8 @@ no_su:
|
|||||||
mov eax,COLOR_CHANGE_MAGNITUDE_0
|
mov eax,COLOR_CHANGE_MAGNITUDE_0
|
||||||
imul eax,dword [soften_height]
|
imul eax,dword [soften_height]
|
||||||
call subtract_color_change_magnitude
|
call subtract_color_change_magnitude
|
||||||
|
;--------------------------------------
|
||||||
|
align 4
|
||||||
@@:
|
@@:
|
||||||
mov eax,COLOR_CHANGE_MAGNITUDE_0
|
mov eax,COLOR_CHANGE_MAGNITUDE_0
|
||||||
call add_color_change_magnitude
|
call add_color_change_magnitude
|
||||||
@ -348,14 +350,6 @@ draw_application_buttons:
|
|||||||
shr eax,16
|
shr eax,16
|
||||||
|
|
||||||
sub eax,[offset_X]
|
sub eax,[offset_X]
|
||||||
; check for tray enabled
|
|
||||||
; cmp [tray_enable],dword 0
|
|
||||||
; je @f
|
|
||||||
|
|
||||||
; sub eax, TRAY_SIZE
|
|
||||||
;--------------------------------------
|
|
||||||
;align 4
|
|
||||||
;@@:
|
|
||||||
; check for left minimize button enabled
|
; check for left minimize button enabled
|
||||||
cmp [minimize_right],dword 0
|
cmp [minimize_right],dword 0
|
||||||
je @f
|
je @f
|
||||||
|
@ -54,7 +54,6 @@ current_alt_tab_app dd -1
|
|||||||
|
|
||||||
page_list dd 0
|
page_list dd 0
|
||||||
draw_start_position dd 0
|
draw_start_position dd 0
|
||||||
draw_window_1 db 0
|
|
||||||
|
|
||||||
;b_size_y: dd 0x0
|
;b_size_y: dd 0x0
|
||||||
ysi dd 0
|
ysi dd 0
|
||||||
@ -96,37 +95,9 @@ exec_fileinfo:
|
|||||||
db 0
|
db 0
|
||||||
.name dd 0
|
.name dd 0
|
||||||
|
|
||||||
end_name db '/sys/END',0
|
bootparam_printscreen db 'DIRECT',0
|
||||||
menu_name db '/sys/@MENU',0
|
|
||||||
run_name db '/sys/RUN',0
|
|
||||||
calendar_name db '/sys/CALENDAR',0
|
|
||||||
sysmeter_name db '/sys/GMON',0
|
|
||||||
mousemul_name db '/sys/MOUSEMUL',0
|
|
||||||
|
|
||||||
;dat_fileinfo:
|
Path_def_val db 'NONE',0
|
||||||
; dd 0
|
|
||||||
; dd 0
|
|
||||||
; dd 0
|
|
||||||
; dd 1024
|
|
||||||
; dd panel_ini_data_area ;I_END
|
|
||||||
; db '/sys/PANEL.DAT',0
|
|
||||||
|
|
||||||
;m_bmp_fileinfo:
|
|
||||||
; dd 0
|
|
||||||
; dd 0
|
|
||||||
; dd 0
|
|
||||||
; dd 8192
|
|
||||||
; dd image
|
|
||||||
; db '/sys/MENUET.BMP',0
|
|
||||||
|
|
||||||
;iconf_fileinfo:
|
|
||||||
; dd 0
|
|
||||||
; dd 0
|
|
||||||
; dd 0
|
|
||||||
; dd 8192
|
|
||||||
; dd image
|
|
||||||
; db '/sys/'
|
|
||||||
;iconf db 'MBAR_IX.BMP',0
|
|
||||||
|
|
||||||
this_slot dd 0 ; Slot of this process
|
this_slot dd 0 ; Slot of this process
|
||||||
max_slot dd 255
|
max_slot dd 255
|
||||||
@ -179,6 +150,7 @@ CpuUsageBckgr_color dd 0xdd2222 ; Red
|
|||||||
ChangeLang_color dd 0x66cc ; Blue
|
ChangeLang_color dd 0x66cc ; Blue
|
||||||
PageList_color dd 0xffffff ; White
|
PageList_color dd 0xffffff ; White
|
||||||
PanelText_color dd 0xffffff ; White
|
PanelText_color dd 0xffffff ; White
|
||||||
|
AltTab_color dd 0xff8000 ; Orange
|
||||||
;------------------------------------------------------------------------------
|
;------------------------------------------------------------------------------
|
||||||
aVariables db 'Variables',0
|
aVariables db 'Variables',0
|
||||||
aPanelHeight db 'PanelHeight',0
|
aPanelHeight db 'PanelHeight',0
|
||||||
@ -205,6 +177,14 @@ aButtonsStyle db 'ButtonsStyle',0
|
|||||||
aColors db 'Colors',0
|
aColors db 'Colors',0
|
||||||
aCpuUsageBckgr db 'CpuUsageBckgr',0
|
aCpuUsageBckgr db 'CpuUsageBckgr',0
|
||||||
aPanelText db 'Text',0
|
aPanelText db 'Text',0
|
||||||
|
aAltTab db 'AltTab',0
|
||||||
|
;------------------------------------------------------------------------------
|
||||||
|
aApplicationsPaths db 'ApplicationsPaths',0
|
||||||
|
aEnd db 'End',0
|
||||||
|
aMenu db 'Menu',0
|
||||||
|
aRun db 'Run',0
|
||||||
|
aPrnScr db 'PrnScr',0
|
||||||
|
aMouseEmul db 'MouseEmul',0
|
||||||
;------------------------------------------------------------------------------
|
;------------------------------------------------------------------------------
|
||||||
plugins_directory db 0
|
plugins_directory db 0
|
||||||
|
|
||||||
|
@ -183,33 +183,48 @@ Get_ini:
|
|||||||
invoke ini_get_color,library_path,aColors,aPanelText,0xffffff
|
invoke ini_get_color,library_path,aColors,aPanelText,0xffffff
|
||||||
mov [PanelText_color],eax
|
mov [PanelText_color],eax
|
||||||
;--------------------------------------
|
;--------------------------------------
|
||||||
; invoke ini_get_str,library_path,aConvertPlugins,aCP0,plugin_0_name,127,ConvertPlugins_no_key
|
invoke ini_get_color,library_path,aColors,aAltTab,0xff8000
|
||||||
|
mov [AltTab_color],eax
|
||||||
|
;--------------------------------------
|
||||||
|
invoke ini_get_str,library_path,aApplicationsPaths,aEnd,end_name,63,Path_def_val
|
||||||
|
;--------------------------------------
|
||||||
|
invoke ini_get_str,library_path,aApplicationsPaths,aMenu,menu_name,63,Path_def_val
|
||||||
|
;--------------------------------------
|
||||||
|
invoke ini_get_str,library_path,aApplicationsPaths,aRun,run_name,63,Path_def_val
|
||||||
|
;--------------------------------------
|
||||||
|
invoke ini_get_str,library_path,aApplicationsPaths,aPrnScr,printscreen_name,63,Path_def_val
|
||||||
|
;--------------------------------------
|
||||||
|
invoke ini_get_str,library_path,aApplicationsPaths,aClock,calendar_name,63,Path_def_val
|
||||||
|
;--------------------------------------
|
||||||
|
invoke ini_get_str,library_path,aApplicationsPaths,aCpuUsage,sysmeter_name,63,Path_def_val
|
||||||
|
;--------------------------------------
|
||||||
|
invoke ini_get_str,library_path,aApplicationsPaths,aMouseEmul,mousemul_name,63,Path_def_val
|
||||||
|
|
||||||
ret
|
ret
|
||||||
;-----------------------------------------------------------------------------
|
;-----------------------------------------------------------------------------
|
||||||
copy_file_path:
|
copy_file_path:
|
||||||
xor eax,eax
|
xor eax,eax
|
||||||
@@:
|
@@:
|
||||||
cld
|
cld
|
||||||
lodsb
|
lodsb
|
||||||
stosb
|
stosb
|
||||||
test eax,eax
|
test eax,eax
|
||||||
jnz @b
|
jnz @b
|
||||||
mov esi,edi
|
mov esi,edi
|
||||||
dec esi
|
dec esi
|
||||||
@@:
|
@@:
|
||||||
std
|
std
|
||||||
lodsb
|
lodsb
|
||||||
cmp al,'/'
|
cmp al,'/'
|
||||||
jnz @b
|
jnz @b
|
||||||
mov edi,esi
|
mov edi,esi
|
||||||
add edi,2
|
add edi,2
|
||||||
mov esi,ebx
|
mov esi,ebx
|
||||||
@@:
|
@@:
|
||||||
cld
|
cld
|
||||||
lodsb
|
lodsb
|
||||||
stosb
|
stosb
|
||||||
test eax,eax
|
test eax,eax
|
||||||
jnz @b
|
jnz @b
|
||||||
ret
|
ret
|
||||||
;-----------------------------------------------------------------------------
|
;-----------------------------------------------------------------------------
|
@ -28,3 +28,13 @@ CpuUsageBckgr=255,0,0
|
|||||||
ChangeLang=0,128,255
|
ChangeLang=0,128,255
|
||||||
PageList=255,255,255
|
PageList=255,255,255
|
||||||
Text=255,255,255
|
Text=255,255,255
|
||||||
|
AltTab=255,128,0
|
||||||
|
|
||||||
|
[ApplicationsPaths]
|
||||||
|
End=/sys/END
|
||||||
|
Menu=/sys/@MENU
|
||||||
|
Run=/sys/RUN
|
||||||
|
PrnScr=/sys/SCRSHOOT
|
||||||
|
Clock=/sys/CALENDAR
|
||||||
|
CpuUsage=/sys/GMON
|
||||||
|
MouseEmul=/sys/MOUSEMUL
|
||||||
|
@ -68,9 +68,33 @@ align 4
|
|||||||
tictable:
|
tictable:
|
||||||
rd 256
|
rd 256
|
||||||
;------------------------------------------------------------------------------
|
;------------------------------------------------------------------------------
|
||||||
;align 4
|
align 4
|
||||||
;panel_ini_data_area:
|
end_name:
|
||||||
; rb 61
|
rb 64
|
||||||
|
;------------------------------------------------------------------------------
|
||||||
|
align 4
|
||||||
|
menu_name:
|
||||||
|
rb 64
|
||||||
|
;------------------------------------------------------------------------------
|
||||||
|
align 4
|
||||||
|
run_name:
|
||||||
|
rb 64
|
||||||
|
;------------------------------------------------------------------------------
|
||||||
|
align 4
|
||||||
|
printscreen_name:
|
||||||
|
rb 64
|
||||||
|
;------------------------------------------------------------------------------
|
||||||
|
align 4
|
||||||
|
calendar_name:
|
||||||
|
rb 64
|
||||||
|
;------------------------------------------------------------------------------
|
||||||
|
align 4
|
||||||
|
sysmeter_name:
|
||||||
|
rb 64
|
||||||
|
;------------------------------------------------------------------------------
|
||||||
|
align 4
|
||||||
|
mousemul_name:
|
||||||
|
rb 64
|
||||||
;------------------------------------------------------------------------------
|
;------------------------------------------------------------------------------
|
||||||
align 4
|
align 4
|
||||||
rb 256
|
rb 256
|
||||||
|
Loading…
Reference in New Issue
Block a user