Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
2 taskbars
#2
why doesn't qm show up on one of my taskbars ?


Code:
Copy      Help
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 -

Code:
Copy      Help
tb1=
;;/hook _taskbar_hook /ini taskbar1.ini
;Close :clo win(mouse) *close.ico
;-

how to use newline in a multiline variable ?
pi


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)