WildByDesign Posted September 17 Posted September 17 (edited) As per the title, all tooltips created with _GUIToolTip_AddTool (GUIToolTip.au3) stopped working in AutoIt v3.3.18.0. I'm not sure exactly how to begin troubleshooting this. I removed all traces of AutoIt before installing the new version to ensure a fresh start. The examples (https://www.autoitscript.com/autoit3/docs/libfunctions/_GUIToolTip_AddTool.htm) also fail. I don't see any missing include files. There is the following error from the example: @@ Debug(13) : $hToolTip = 0x000000000005056E >Error code: 0 Extended code: 0 (0x00000000) Thank you for any assistance in tracking this problem down. Edited September 17 by WildByDesign
water Posted September 17 Posted September 17 It works for me after i changed ; #include "Extras\HelpFileInternals.au3" to #include "C:\Program Files (x86)\AutoIt3\Examples\Helpfile\Extras\HelpFileInternals.au3" My UDFs and Tutorials: Spoiler UDFs: Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki
WildByDesign Posted September 17 Author Posted September 17 Thanks @water but I am pretty sure that include is only needed for _MemoSetHandleInProcess and _MemoResetHandleInProcess within the example. I had initially just commented them out. I tried the example again without commenting those out and fixed the include line as you suggest, but unfortunately the tooltip still does not show on the button for me. I am running latest AutoIt v3.3.18.0 with latest Windows 11 stable channel 24H2 (build 26100.6584).
water Posted September 17 Posted September 17 Quote I am running latest AutoIt v3.3.18.0 with latest Windows 11 stable channel 24H2 (build 26100.6584). Same here. I tested example 1 and 2. My UDFs and Tutorials: Spoiler UDFs: Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki
WildByDesign Posted September 17 Author Posted September 17 3 minutes ago, water said: Same here. I tested example 1 and 2. So this is really interesting because example 1 wont show any tooltips for me at all. It uses the same methods as most of my GUI programs and they are all failing to show tooltips right now with latest AutoIt. Yet, example 2 does show tooltips for me. The only difference that I notice is $TTF_SUBCLASS in the _GUIToolTip_AddTool functions.
Solution WildByDesign Posted September 17 Author Solution Posted September 17 I ran a diff of GuiToolTip.au3 from v3.3.16.1 and v3.3.18.0 and there are a lot of changes in there. Example 1 was not showing any tooltips for me at all. So I had to switch: _GUIToolTip_AddTool($hToolTip, $iGUI * $hGUI, "This is a ToolTip", $hButton) _GUIToolTip_AddTool($hToolTip, $iGUI * $hGUI, "This is a ToolTip for the non another ctrl's", $hGUI) To: _GUIToolTip_AddTool($hToolTip, $hGUI, "This is a ToolTip", $hButton) _GUIToolTip_AddTool($hToolTip, $hGUI, "This is a ToolTip for the non another ctrl's", $hGUI) And with that change, the tooltips show for me now. With the changes from the diff, I also understand now why all of my GUI tooltips are failing. All of mine used previous example from the forum that worked up until v3.3.18.0 such as: _GUIToolTip_AddTool($hToolTip, 0, "Example tooltip", GUICtrlGetHandle($ExampleButton)) All of the examples that I followed (from the forum, not the docs) had 0 for the second part of the function. Or maybe the old docs used to have 0 and that was updated, I am not sure. Anyway, that used to always work but not anymore in v3.3.18.0. So I simply have to change all of my tooltips to the following: _GUIToolTip_AddTool($hToolTip, $hGUI, "Example tooltip", GUICtrlGetHandle($ExampleButton)) I just have to adapt to the updated UDF. All good now.
WildByDesign Posted September 17 Author Posted September 17 Actually I just went back over the previous version of the docs and sure enough they did have 0 for all of the examples. So I was not going crazy. So in that case, those were certainly script breaking changes. I've got like 5 or 6 GUI projects to restore tooltips for. That does not sound fun. I may have to end up making another version of the _GUIToolTip_AddTool function just to save time.
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