the_lord_mephy Posted September 29, 2004 Share Posted September 29, 2004 HotKeySet( "{esc}", "quit" ) Func quit( ) Exit EndFunc SplashTextOn("WinClassNames", "Click on the window you wish to get ClassNames for.") While 1 $text = WinGetTitle("") $class = WinGetClassList($text) ControlSetText("WinClassNames", "Click on the window you wish to get ClassNames for.", "Static1", "Class Name for " & $text & ":"& @LF & $class) Wend It doesnt update the class names every time i click on a new window My site for HTML Help :)[quote name='Valik' date='Oct 15 2004, 12:29 PM']Maybe nobody is an "elite uber-coder" like me because thinking is a capital offense in today's online-world?[right][snapback]36427[/snapback][/right][/quote] Link to comment Share on other sites More sharing options...
ZeDMIN Posted September 29, 2004 Share Posted September 29, 2004 just a guess: Maybe AutoIT doesn't not refresh the "most recent window" list? It looks like AutoIT looks at startup whats the most recent (active) window and then always refers to that, when you call a function with title="". Greetings, ZeD Link to comment Share on other sites More sharing options...
KnowledgeSponge Posted September 29, 2004 Share Posted September 29, 2004 (edited) This works for me though one of the other guys here can probly make it cleaner. HotKeySet( "{esc}", "quit") $TEXT = "" While 1 $CHECKNEW = WinGetTitle("") If $TEXT <> $CHECKNEW Then $TEXT = WinGetTitle("") $CLASS = WinGetClassList($TEXT) $SPLASH = SplashTextOn("WinClassNames", "Class names for " & $TEXT & ":" & @LF & $CLASS) EndIf Sleep(100); Wend Func quit() Exit EndFunc Edited September 30, 2004 by KnowledgeSponge 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