kosamja Posted August 7, 2016 Share Posted August 7, 2016 Is it possible to hide all tooltips from any window or control? I tried this, but it doesnt hide all tooltips: ; autohotkey.com/board/topic/89920-temporarily-disable-and-change-tooltips/ ; www.autoitscript.com/forum/topic/49170-how-to-increase-a-tooltip-visible-time/ #NoTrayIcon #include <misc.au3> #include <SendMessage.au3> Opt("WinWaitDelay", 0) While 1 Sleep(10) Local $tiphandles, $i $tiphandles=WinList('[CLASS:tooltips_class32]') for $i=1 to $tiphandles[0][0] _SendMessage($tiphandles[$i][1],0x0401,False,0) WinKill($tiphandles[$i][1], "") Next WEnd Link to comment Share on other sites More sharing options...
l3ill Posted August 7, 2016 Share Posted August 7, 2016 $iCheckbox = GUICtrlCreateCheckbox("Tool Tips Off", 600, 305, 185, 25) Case $iCheckbox If _IsChecked($iCheckbox) Then _GUIToolTip_Deactivate($hToolTip) Else _GUIToolTip_Activate($hToolTip) EndIf I had this issue with my SnippetBrowser (see sig) This a CCP of the code used to turn them on and off... My Contributions... SnippetBrowser NewSciTE PathFinder Text File Manipulation FTP Connection Tester / INI File - Read, Write, Save & Load Example Link to comment Share on other sites More sharing options...
l3ill Posted August 7, 2016 Share Posted August 7, 2016 an example of a tooltip: $openSelected = GUICtrlCreateButton("Open in SciTE", 290, 305, 81, 25) $openSelectedTip = GUICtrlGetHandle($openSelected) _GUIToolTip_AddTool($hToolTip, 0, "Open Selected Path in SciTE", $openSelectedTip) My Contributions... SnippetBrowser NewSciTE PathFinder Text File Manipulation FTP Connection Tester / INI File - Read, Write, Save & Load Example Link to comment Share on other sites More sharing options...
kosamja Posted August 7, 2016 Author Share Posted August 7, 2016 (edited) Isnt _GUIToolTip_Deactivate($hToolTip) only for tooltips created by autoit? I was thinking of something like killtt (http://www.codeproject.com/Articles/11781/KillTT-No-More-Tooltips) that will hide every tooltip (cant use killtt because it has problems on windows 10 and it doesnt hide tooltips in 64 bit programs) Edited August 7, 2016 by kosamja Link to comment Share on other sites More sharing options...
l3ill Posted August 7, 2016 Share Posted August 7, 2016 Yes this is only for autoit GUI. Sorry , misunderstood your post My Contributions... SnippetBrowser NewSciTE PathFinder Text File Manipulation FTP Connection Tester / INI File - Read, Write, Save & Load Example Link to comment Share on other sites More sharing options...
l3ill Posted August 7, 2016 Share Posted August 7, 2016 Probably a registry hack somewhere that could handle it... My Contributions... SnippetBrowser NewSciTE PathFinder Text File Manipulation FTP Connection Tester / INI File - Read, Write, Save & Load Example Link to comment Share on other sites More sharing options...
kosamja Posted August 7, 2016 Author Share Posted August 7, 2016 (edited) I disabled this in registry: [HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced] "ShowInfoTip"=dword:00000000 "EnableBalloonTips"=dword:00000000 "StartButtonBalloonTip"=dword:00000000 (doesnt work) "FolderContentsInfoTip"=dword:00000000 [HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\Explorer] "NoBalloonFeatureAdvertisements"=dword:00000001 But there still remains minimize, maximize and close button tooltips, start button tooltips, pinned taskbar items tooltips... Killtt hides them all but has problems with windows 10. Thats why I was asking if any solution with autoit is possible (that would detect tooltip creation and send message to deactivate tooltip before it becomes visible on screen. The loop I currently use doesnt always hide tooltips before they apperar and misses some tooltips) Edited August 7, 2016 by kosamja Link to comment Share on other sites More sharing options...
l3ill Posted August 7, 2016 Share Posted August 7, 2016 Have you tried running in compatibility mode? My Contributions... SnippetBrowser NewSciTE PathFinder Text File Manipulation FTP Connection Tester / INI File - Read, Write, Save & Load Example Link to comment Share on other sites More sharing options...
kosamja Posted August 7, 2016 Author Share Posted August 7, 2016 I tried but it has 2 problems: 1) msi installers will fail to start 2) tooltips in 64 bit programs are not removed Link to comment Share on other sites More sharing options...
kosamja Posted August 12, 2016 Author Share Posted August 12, 2016 bump... Just to check is this only way without using dll? ; autohotkey.com/board/topic/89920-temporarily-disable-and-change-tooltips/ ; www.autoitscript.com/forum/topic/49170-how-to-increase-a-tooltip-visible-time/ #NoTrayIcon #include <SendMessage.au3> Opt("WinWaitDelay", 0) Opt("MouseClickDelay", 0) Opt("MouseClickDownDelay", 0) Opt("MouseClickDragDelay", 0) Opt("SendKeyDelay", 0) Opt("SendKeyDownDelay", 0) Opt("WinTitleMatchMode", 3) While 1 Sleep(10) If WinExists('[CLASS:tooltips_class32]') Then $tiphandles=WinList('[CLASS:tooltips_class32]') for $i=1 to $tiphandles[0][0] _SendMessage($tiphandles[$i][1], 0x0401, False, 0) WinKill($tiphandles[$i][1], "") Next EndIf WEnd Link to comment Share on other sites More sharing options...
BrewManNH Posted August 12, 2016 Share Posted August 12, 2016 What makes you think that _SendMessage isn't using a DLL? If I posted any code, assume that code was written using the latest release version unless stated otherwise. Also, if it doesn't work on XP I can't help with that because I don't have access to XP, and I'm not going to.Give a programmer the correct code and he can do his work for a day. Teach a programmer to debug and he can do his work for a lifetime - by Chirag GudeHow to ask questions the smart way! I hereby grant any person the right to use any code I post, that I am the original author of, on the autoitscript.com forums, unless I've specifically stated otherwise in the code or the thread post. If you do use my code all I ask, as a courtesy, is to make note of where you got it from. Back up and restore Windows user files _Array.au3 - Modified array functions that include support for 2D arrays. - ColorChooser - An add-on for SciTE that pops up a color dialog so you can select and paste a color code into a script. - Customizable Splashscreen GUI w/Progress Bar - Create a custom "splash screen" GUI with a progress bar and custom label. - _FileGetProperty - Retrieve the properties of a file - SciTE Toolbar - A toolbar demo for use with the SciTE editor - GUIRegisterMsg demo - Demo script to show how to use the Windows messages to interact with controls and your GUI. - Latin Square password generator Link to comment Share on other sites More sharing options...
kosamja Posted August 12, 2016 Author Share Posted August 12, 2016 By using dll I meant on killtt (attaches dll to prevent tooltips). Link to comment Share on other sites More sharing options...
Danyfirex Posted August 12, 2016 Share Posted August 12, 2016 I think the best way to can use is detect the event creation/changes(Adding an Window Event Hook) and deactivate the tooltip. Saludos Danysys.com AutoIt... UDFs: VirusTotal API 2.0 UDF - libZPlay UDF - Apps: Guitar Tab Tester - VirusTotal Hash Checker Examples: Text-to-Speech ISpVoice Interface - Get installed applications - Enable/Disable Network connection PrintHookProc - WINTRUST - Mute Microphone Level - Get Connected NetWorks - Create NetWork Connection ShortCut Link to comment Share on other sites More sharing options...
kosamja Posted August 12, 2016 Author Share Posted August 12, 2016 (edited) I first tried with event hook, but it only works after tooltip becomes visible on screen. Loop works before tooltip is visible on screen (most of the time). So except loop and event hook is there no other way this could be done better (without dlll way like killtt use)? #NoTrayIcon #include<WinAPI.au3> #include<WinAPISys.au3> #include <SendMessage.au3> Opt("WinWaitDelay", 0) Opt("MouseClickDelay", 0) Opt("MouseClickDownDelay", 0) Opt("MouseClickDragDelay", 0) Opt("SendKeyDelay", 0) Opt("SendKeyDownDelay", 0) Opt("WinTitleMatchMode", 3) $hHookFunc = DllCallbackRegister('_WinEventProc', 'none', 'ptr;uint;hwnd;int;int;uint;uint') $hWinHook = _WinAPI_SetWinEventHook($EVENT_OBJECT_SHOW, $EVENT_OBJECT_SHOW, DllCallbackGetPtr($hHookFunc)) While 1 Sleep(10) WEnd Func _WinEventProc($hHook, $iEvent, $hWnd, $iObjectID, $iChildID, $iEventThread, $imsEventTime) If _WinAPI_GetClassName($hWnd) = 'tooltips_class32' Then _SendMessage($hWnd, 0x0401, False, 0) WinKill($hWnd) EndIf EndFunc Edited August 12, 2016 by kosamja 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