Jump to content

Ways of getting a Windowname


Recommended Posts

Because the program I'm dealing with has it's name change alot. Could I use the PID from the Run command to get the window name?

IE:

$pid=Run ( "notepad.exe" )

Getwindowname ( $pid )

Func Getwindowname ( $pid )

;;

;;

;;

EndFunc

What would go in the ;;

Link to comment
Share on other sites

Yea it does, could i just use that?

Link to comment
Share on other sites

I used

AutoItSetOption("WinTitleMatchMode", 4)

$windowname = WinGetTitle("ClassName=Diablo II","")

And I now have the hwnd, pid, process name and window title.

TY you can close

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...