Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
minimal taskbar toolbar
#5
can you show me how to deal with a dynamic toolbar with using something like this script:

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

how do i update the bar ?
pi


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)