Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Taskbar elements as menuItems
#2
Macro Macro2659
Code:
Copy      Help
;Shows dynamically created menu of windows.

ARRAY(int) aw; GetMainWindows aw
ARRAY(__Hicon) ai.create(aw.len)
str s t
int i h w c
for i 0 aw.len
,w=aw[i]
,h=GetWindowIcon(w)
,ai[i]=h
,t.getwintext(w)
,t.findreplace(" :" " [91]58]") ;;escape :
,t.escape(1) ;;escape " etc
,s+F"{t} :act {w}; err * {ai[i]}[]"
;out s

i=DynamicMenu(s "" 1)
if(i) outw aw[i-1]


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)