07-13-2005, 08:47 PM
can you show me how to deal with a dynamic toolbar with using something like this script:
how do i update the bar ?
ClearOutput
str titles exe
ARRAY(int) handles
GetWindowList &titles "" 1|2|4 0 0 handles
ARRAY(str) arr = titles
for(int'i 0 arr.len)
,int hwnd=handles[i]
,exe.getwinexe(hwnd 1)
,if _s.getfilename(exe 0)=="blackbox"
,,exe = "explorer.exe *1"
,if arr[i]=="QM Help"
,,exe = "c:\windows\hh.exe *0"
,arr[i].findreplace(":" " ") ;;escape :
,arr[i].escape(1) ;;escape "
,arr[i].formata(" : * %s" exe)
,
titles=arr
int p=DynamicMenu(titles "" 1)
if(p) act handles[p-1]
str s = arr
s.setfile("C:\Programme\gui4cli\pi\windowlist.txt")
;out hwnd
act arr[p-1];errhow do i update the bar ?
