07-02-2005, 09:19 AM
No, but you can escape : and ", and use DynamicMenu.
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)
,
,arr[i].escape(1) ;;escape "
,arr[i].findreplace(":" "[91]58]") ;;escape :
,arr[i].formata(" : * %s" exe)
,
titles=arr
int p=DynamicMenu(titles "" 1)
if(p) act handles[p-1]
;This is not perfect. Should get icon with GetWindowIcon instead, but icon handles are not supported in menus (until QM 2.1.8).