mrflibblehat Posted December 23, 2013 Share Posted December 23, 2013 I have read many forum posts about this and tried many things but still cannot get this working Basically my AMD Driver crashes now and again and I want to write to console when it does. This is what I have so far. While 1 Sleep(100) If WinExists("[CLASS:tooltips_class32]", "Display driver AMD driver stopped responding and has successfully recovered.") Then ConsoleWrite("AMD Driver Has Crashed") Sleep(30000) ;~ for the tooltip to go away EndIf WEnd This however does not work.. Window Summary >>>> Window <<<< Title: Display driver AMD driver stopped responding and has successfully recovered. Class: tooltips_class32 Position: 1302, 970 Size: 453, 91 Style: 0x940006C3 ExStyle: 0x00080088 Handle: 0x000100D2 >>>> Control <<<< Class: Instance: ClassnameNN: Name: Advanced (Class): ID: Text: Position: Size: ControlClick Coords: Style: ExStyle: Handle: >>>> Mouse <<<< Position: 1415, 999 Cursor ID: 0 Color: 0xFFFFFF >>>> StatusBar <<<< >>>> ToolsBar <<<< >>>> Visible Text <<<< >>>> Hidden Text <<<< Thanks for any help you can provide [font="'courier new', courier, monospace;"]Pastebin UDF | Prowl UDF[/font] Link to comment Share on other sites More sharing options...
MilesAhead Posted December 23, 2013 Share Posted December 23, 2013 (edited) Edit: looking at your info again it looks like the "text" is coming through as the title. So I would do something like:If WinExists("[CLASS:tooltips_class32]","") then $title = WinGetTitle("[CLASS:tooltips_class32]","") If $title = "yadda yadda" then ; do something EndIf EndIf Edited December 23, 2013 by MilesAhead My Freeware Page Link to comment Share on other sites More sharing options...
mrflibblehat Posted December 23, 2013 Author Share Posted December 23, 2013 Good Thinking, Tried it out but weirdly enough it didn't show anything when the traytip displayed just a blank msgbox [font="'courier new', courier, monospace;"]Pastebin UDF | Prowl UDF[/font] Link to comment Share on other sites More sharing options...
MilesAhead Posted December 23, 2013 Share Posted December 23, 2013 Good Thinking, Tried it out but weirdly enough it didn't show anything when the traytip displayed just a blank msgboxThat's because I assumed the text you wanted to match would come through as the text. I saw later by your info the text comes through as Title. I already edited my post after I noticed. My Freeware Page Link to comment Share on other sites More sharing options...
mrflibblehat Posted December 23, 2013 Author Share Posted December 23, 2013 I still cant seem to match ANY text coming from the traytip or any traytips even ones I invoke myself. [font="'courier new', courier, monospace;"]Pastebin UDF | Prowl UDF[/font] Link to comment Share on other sites More sharing options...
BrewManNH Posted December 23, 2013 Share Posted December 23, 2013 Try using _GUIToolTip_GetTitleText from the latest release version (3.3.10.0) of AutoIt. The help file has an example of how to use it. Although, the second example script from _GUIToolTip_GetText might give you a better idea of how to do it with tooltips that aren't created by you. 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...
Solution mrflibblehat Posted December 23, 2013 Author Solution Share Posted December 23, 2013 (edited) I managed to fix this by reading the system event log, I will post the code when i'm done Thank you for your suggestions Edited December 23, 2013 by mrflibblehat [font="'courier new', courier, monospace;"]Pastebin UDF | Prowl UDF[/font] 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