#include <GUIStatusBar.au3>
#include <GUIConstants.au3>
#include <WindowsConstants.au3>
$hGUI = GUICreate("Test", 400, 300)
GUICtrlCreateLabel("www.google.cn", 4, 4, 200, 20)
GUICtrlSetFont(-1, 9, 400, 4, "Verdana")
$hFont = _SendMessage(GUICtrlGetHandle(-1), $WM_GETFONT, 0, 0)
Local $aText[2] = ["www.google.cn", ""], $aPart[2] = [400 / 1.5, -1]
$hStatusBar = _GUICtrlStatusBar_Create($hGUI, $aPart, $aText)
_SendMessage($hStatusBar, $WM_SETFONT, $hFont, 1, 0, "wparam", "int")
GUICtrlSetState(-1, $GUI_HIDE)
$hLibrary = _WinAPI_LoadLibrary("Shell32.dll")
$hCursor = _LoadCursor($hLibrary, 1002)
_WinAPI_FreeLibrary($hLibrary)
$hSTC = DllCallbackRegister("_StatusBarProcedure", "int", "hWnd;uint;wparam;lparam")
$hOSTC = _WinAPI_SetWindowLong($hStatusBar, -4, DllCallbackGetPtr($hSTC))
Func _StatusBarProcedure($hWnd, $iMsg, $iwParam, $ilParam)
Local $iX, $iY
If (($iMsg = $WM_MOUSEMOVE) Or ($iMsg = $WM_LBUTTONDOWN) Or _
($iMsg = $WM_LBUTTONUP) Or ($iMsg = $WM_LBUTTONDBLCLK)) Then
$iX = bitAnd($ilParam, 0xFFFF)
$iY = bitShift($ilParam, 0x10)
If ($iX > 0 And $iX < 100) And ($iY > 0 And $iY < 21) Then
_SetCursor($hCursor)
If ($iMsg = $WM_LBUTTONDBLCLK) Then
ShellExecute("www.google.cn")
EndIf
EndIf
EndIf
Return _WinAPI_CallWindowProc($hOSTC, $hWnd, $iMsg, $iwParam, $ilParam)
EndFunc ;==>_StatusBarProcedure
GUISetState()
Do
Until GUIGetMsg() = -3
Opt("TrayIconHide", 1)
ProcessClose(@AutoItPid)
Func _LoadCursor($hInstance, $iCursorId)
Local $iResult
$iResult = DllCall("User32.dll", "hWnd", "LoadCursor", "hWnd", $hInstance, "int", $iCursorId)
Return $iResult[0]
EndFunc ;==>_LoadCursor
Func _SetCursor($hCursor)
Local $iResult = DllCall("User32.dll", "int", "SetCursor", "hWnd", $hCursor)
Return $iResult[0]
EndFunc ;==>_SetCursor
双击打开GOOGLE。