08-11-2007, 05:44 PM
why doesn't qm show up on one of my taskbars ?
found the problem, there is no new line after -
how to use newline in a multiline variable ?
str s tb1 tb2 title cls exe; int hwnd htb1 htb2
ARRAY(int) handles
GetWindowList 0 "" 0 0 0 handles
tb1=
;;/hook _taskbar_hook /ini taskbar1.ini
;Close :clo win(mouse) *close.ico
;-
tb2=
;;/hook _taskbar_hook /ini taskbar2.ini
;Close :clo win(mouse) *close.ico
;-
for(int'i 0 handles.len)
,hwnd=handles[i]
,if(!IsWindowVisible(hwnd)) continue ;;exclude hidden
,if(GetWinStyle(hwnd 1)&WS_EX_TOOLWINDOW) continue
,exe.getwinexe(hwnd 1)
,title.getwintext(hwnd)
,cls.getwinclass(hwnd)
,title.findreplace(":" " ") ;;escape :
,title.escape(1) ;;escape "
,if taskbar_splitter(hwnd)==1
,,tb1.formata("%s :_taskbars_func(1 %i); err * %s[]" title hwnd exe)
,else
,,tb2.formata("%s :_taskbars_func(1 %i); err * %s[]" title hwnd exe)
,
,
htb1=win("TASKBAR_1" "QM_Toolbar")
htb2=win("TASKBAR_2" "QM_Toolbar")
if(htb1) tb1.setmacro("\2 taskbars\toolbars\taskbar_1")
else htb1=DynamicToolbar(tb1 "\2 taskbars\toolbars\taskbar_1")
if(htb2) tb2.setmacro("\2 taskbars\toolbars\taskbar_2")
else htb2=DynamicToolbar(tb2 "\2 taskbars\toolbars\taskbar_2")
found the problem, there is no new line after -
how to use newline in a multiline variable ?