#singleinstance force CoordMode, ToolTip, screen CoordMode, Mouse, screen return ;======== show the information from a single tooltip ========= F1:: ControlGetText, tooltip2,,ahk_class tooltips_class32 ;tooltip, ******************`n%tooltip2%`n******************, 1300, 300 ;sleep, 1000 ;tooltip msgbox, %tooltip2% return ;======== show the information from a multiple tooltips ========= F2:: WinGet, ID, LIST,ahk_class tooltips_class32 tt_text= Loop, %id% { this_id := id%A_Index% ControlGetText, tooltip2,,ahk_id %this_id% tt_text.= "******************`n" tooltip2 "`n******************`n" } ;tooltip, %tt_text%, 300, 300 msgbox, %tt_text% ;sleep, 3000 ;tooltip return
2013年1月21日 星期一
ControlGetText example
reference
Labels:
Autohotkey

訂閱:
張貼留言 (Atom)
沒有留言:
張貼留言