GooG Posted April 30, 2008 Share Posted April 30, 2008 Is it possible to show a message when clicking a balloon? Something like this, but working: $Balloon = TrayTip("Title", "Random Text", "", 1) While 1 $msg = TrayGetMsg() If $msg = $Balloon Then MsgBox(0,"Show this","") WEnd Link to comment Share on other sites More sharing options...
rasim Posted April 30, 2008 Share Posted April 30, 2008 This is a trick: #include <WinAPI.au3> #include <Misc.au3> $DllHandle = DllOpen("user32.dll") TrayTip("Tip Title", "TipText", 30) $hWnd = _WinAPI_FindWindow("tooltips_class32", "") $aWinPos = WinGetPos($hWnd) While 1 If _IsPressed("01", $DllHandle) Then $aMousePos = MouseGetPos() If ($aMousePos[0] >= $aWinPos[0]) And ($aMousePos[0] <= $aWinPos[0] + $aWinPos[2]) And _ ($aMousePos[1] >= $aWinPos[1]) And ($aMousePos[1] <= $aWinPos[1] + $aWinPos[3]) Then ConsoleWrite("Clicked on baloon" & @LF) TrayTip("Tip Title", "TipText", 30) EndIf EndIf Sleep(100) WEnd DllClose($DllHandle) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now