本帖最后由 lanfengc 于 2015-1-16 19:19 编辑
回复 10# 李岸
回复 1# deaph
直接使用
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
$Form1 = GUICreate("Link", 279, 92, 192, 124)
$Label1 = GUICtrlCreateLabel("My Blog:", 40, 40, 64, 17)
$Label2 = GUICtrlCreateLabel("http://www.baidu.com", 112, 40, 111, 17)
GUICtrlSetFont(-1, 8, 400, 4, "MS Sans Serif")
GUICtrlSetCursor(-1,0)
GUICtrlSetColor(-1, 0x0000FF)
GUISetState(@SW_SHOW)
Do
Local $controlID=GUIGetCursorInfo($Form1)
If $controlID[4]=$Label2 Then
ToolTip("this is my blog..")
Else
ToolTip("")
EndIf
Until GUIGetMsg() = -3
就好了. |