Jump to content
Sign in to follow this  
OhReally?

Title And Other Applications

Recommended Posts

OhReally?

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. :)

Share this post


Link to post
Share on other sites
Simucal

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 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)

Share this post


Link to post
Share on other sites
OhReally?

thanks, i see you are a mass spammer. lol

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.