Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Remove window from taskbar
#7
perfect !!!!

i trigger it with middle click on taskbar button.

function name: middleclick
trigger: #Mh1 //middleclick



Code:
Copy      Help
;\
function# iid FILTER&f
ClearOutput
str cla.getwinclass(f.hwnd)    
str childclass.getwinclass(f.hwnd2)    
if(!f.hwnd2) ret -2

sel _s.getwinexe(f.hwnd) 1
,case "explorer"
,,;out childclass
,,;if(wintest(f.hwnd "" "ExploreWClass")) mac "explorer_get_file"
,,;if(wintest(f.hwnd "" "Progman")) mac "desktop"
,,if(wintest(f.hwnd "" "Shell_TrayWnd"))
,,,;if(childtest(f.hwnd2 "Quick Launch" "ToolbarWindow32" f.hwnd))
,,,,;Acc a=acc(mouse); err ret
,,,,;if(!a.elem) ret ;;not on button
,,,,;str s=a.Name
,,,,;mac "quicklaunch" s
,,,,;ret -1
,,,if(childtest(f.hwnd2 "Ausgeführte Anwendungen" "ToolbarWindow32" f.hwnd))
,,,,Acc a=acc(mouse); err ret
,,,,if(!a.elem) ret ;;not on button
,,,,int mhwnd=win(a.Name)
,,,,TaskbarButton 2 mhwnd

,,,,ret -1
,,
,case "qm"
,,if(wintest(f.hwnd "" "QM_Editor"))
,,,sel GetWinId(f.hwnd2)
,,,,case 2202 mac "qm2202"
,,,,case 2201 ClearOutput
,,,,case 2203 mac "qm_find"
,,,,case 2200 mac "qm_macro_trigger"
,,if _s.getwinclass(f.hwnd)="HH Parent"
,,,mac "_help"        
,,if(wintest(f.hwnd "Find"))
,,,mac "get_macroname"

,,if(wintest(f.hwnd "" "QM_toolbar"))
,,,if(_s.getwintext(f.hwnd)=="DESKBAR")
,,,,mac "qm_deskbar_middle"
,,,;if(_s.getwintext(f.hwnd)=="BBCODE_BAR")
,,,,;_bbcode(2)
,case else ret -2 ;;default action in other programs


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)