Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Delay Toolbar autoshrink action
#1
I've searched for this and thought about how to go about it, but came up empty and dumb. Does anyone no a way to slow down the autoexpand/autoshrink feature on QM toolbars. I have a large launch TB with dozens of programs on it I keep at the top of my screen with autoshrink enabled. Its very easy to inadvertently expand it. I need it to wait for me to hover over it for a few milliseconds before expanding.

Thanks,
Matt B
Matt B
#2
Function tb_delay_expanding
Code:
Copy      Help
;/
function# hWnd message wParam lParam

sel message
,case WM_SETCURSOR
,int+ g_tbdelexp
,if(g_tbdelexp=0)
,,SetTimer hWnd 9678 500 0 ;;expand after 500 ms of not moving mouse
,,ret 1
,
,case WM_TIMER
,if(wParam=9678)
,,if(win(mouse)=hWnd) g_tbdelexp=1; mou+ 1 0; mou+ -1 0
,,else g_tbdelexp=0; KillTimer hWnd 9678

Example toolbar
Code:
Copy      Help
;/hook tb_delay_expanding
notepad :run "notepad.exe"
#3
Works great! Thanks Gintaras. I'm not sure how you find the time.
Matt B


Forum Jump:


Users browsing this thread: 2 Guest(s)