Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Get toolbar button tooltip text
#1
The code below gets the visible text of toolbar buttons, but how to get tooltip text from buttons?

Toolbar
Code:
Copy      Help
Visible Text : out "visible"
,Tooltip Text : out "invisible"

Code:
Copy      Help
,,,int i n=SendMessage(id(9999 hWnd) TB_BUTTONCOUNT 0 0)
,,,if(!n) ret
,,,TBBUTTON* bq=share
,,,TBBUTTON* be=share(id(9999 hWnd))
,,,word* tq=bq+sizeof(TBBUTTON)
,,,word* te=be+sizeof(TBBUTTON)
,,,
,,,for i 0 n
,,,,if(!SendMessage(id(9999 hWnd) TB_GETBUTTON i be)) continue
,,,,if(SendMessage(id(9999 hWnd) TB_GETBUTTONTEXTW bq.idCommand te)<0) continue
,,,,out _s.ansi(tq)
#2
In both cases you can get text with acc.
Macro
Code:
Copy      Help
Acc a=acc("" "TOOLBAR" win("TOOLBAR15" "QM_toolbar") "ToolbarWindow32" "" 0x1000)
for a.elem 1 1000000000
,str s=a.Name; err break
,out s
,


Forum Jump:


Users browsing this thread: 1 Guest(s)