Jump to content

Any way to close a balloon tip


ampandey77
 Share

Recommended Posts

Anyone have any ideas on how to close a balloon tip that is not created via AutoIT? I don't want to disable them out-right and the AutoIT Window Info can't pick it up.

Thanks!

I think balloon tips are windows with titles the same as the balloon text, so you could try WinClose($BalloonText).

Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script.
Link to comment
Share on other sites

#include <GUIToolTip.au3>

AdlibEnable("_Test", 2000)
TrayTip("Title", "Text", 10, 1)
Sleep(7000)
Exit

Func _Test()
    AdlibDisable()
    Local $hToolTip, $aToolTips
    
    $hToolTip = 0
    $aToolTips = WinList("[CLASS:tooltips_class32]")
    
    If IsArray($aToolTips) Then
        For $i = 1 To $aToolTips[0][0]
            If BitAND(WinGetState($aToolTips[$i][1]), 2) Then
                $hToolTip = $aToolTips[$i][1]
                _GUIToolTip_Activate($hToolTip, False)
                ExitLoop
            EndIf
        Next
    EndIf
    
    If $hToolTip Then _GUIToolTip_Activate($hToolTip)
EndFunc

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...