Jump to content

Recommended Posts

Posted

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

Posted

Yea it does, could i just use that?

Posted

Check out my http://www.autoitscript.com/fileman/users/Helge/udfs.htm#processgethwnd, which does exactly what you want ! :D

Posted

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

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
  • Recently Browsing   0 members

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