Sign in to follow this  
Followers 0
ampandey77

Any way to close a balloon tip

3 posts in this topic

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!

Share this post


Link to post
Share on other sites



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.

Share this post


Link to post
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

Share this post


Link to post
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
Sign in to follow this  
Followers 0