OhReally? Posted May 13, 2006 Share Posted May 13, 2006 How do you test for a window title? i.e. if you want to know if FireFox(webbrowser) has the title "Mozzila Firefox" so the code would be if FUNCTIONX_TELLMETITLE("process firefox") == "Mozzila Firefox" Then etc... so what is the "FUNCTIONX_TELLMETITLE" function? also how do you close all other running applications? thanks in advance. Link to comment Share on other sites More sharing options...
Simucal Posted May 13, 2006 Share Posted May 13, 2006 (edited) also how do you close all other running applications? Open up your handy helpfile and look up "WinList()" and "WinKill()" . How do you test for a window title? i.e. if you want to know if FireFox(webbrowser) has the title "Mozzila Firefox" so the code would be if FUNCTIONX_TELLMETITLE("process firefox") == "Mozzila Firefox" Then etc... WinGetTitle() So, as an example if you wanted to see if a window had the title "Mozzila Firefox" then you would: $title = WinGetTitle("Mozzila Firefox") If $title = 0 Then MsgBox(0,"Not Found", "Window with Mozzila Firefox not found!") Else MsgBox(0,"Found", "There is a window with the title Mozzila Firefox") EndIf Something else that is of note is the WinGetTitleMatchMode option. Look it up in the helpfile also. EDIT: And welcome to the forums! Edited May 13, 2006 by Simucal AutoIt Scripts:Aimbot: Proof of Concept - PixelSearching Aimbot with several search/autoshoot/lock-on techniques.Sliding Toolbar - Add a nice Sliding Toolbar to your next script. Click the link to see an animation of it in action!FontInfo UDF - Get list of system fonts, or search to see if a particular font is installed.Get Extended Property UDF - Retrieve a files extended properties (e.g., video/image dimensions, file version, bitrate of song/video, etc) Link to comment Share on other sites More sharing options...
OhReally? Posted May 13, 2006 Author Share Posted May 13, 2006 thanks, i see you are a mass spammer. lol 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