Sign in to follow this  
Followers 0
EliTe_ThuT

Window name from Process name

8 posts in this topic

#1 ·  Posted (edited)

Hi, I have a program that always has the same process name...but changes PID and Window name everytime it's lunched...is there any way to search for the pid of the process "X" and then get this PID window name ?

Thx

Edited by EliTe_ThuT

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

Edit: Sorry misread your post

Edited by monoceres

Broken link? PM me and I'll send you the file!

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

Here's my real idea:

#include <Process.au3>
$windows = WinList()
For $i=1 To $windows[0][0]
    $pid=WinGetProcess($windows[$i][0])
    If _ProcessGetName ( $pid )="exename.exe" Then MsgBox(0,"",$windows[$i][0])
Next
Edited by monoceres

Broken link? PM me and I'll send you the file!

Share this post


Link to post
Share on other sites

at the same time...anyone know how to add a space at the end of a string ? It seams simple but I can't seam to get it to work...

Share this post


Link to post
Share on other sites

#6 ·  Posted (edited)

$string = $string & " "

or

$string &= " "

Edited by TomZ

Share this post


Link to post
Share on other sites

#7 ·  Posted (edited)

at the same time...anyone know how to add a space at the end of a string ? It seams simple but I can't seam to get it to work...

Hmm that one is trickie *sarcasm*

$string&=" " :D

Edited by monoceres

Broken link? PM me and I'll send you the file!

Share this post


Link to post
Share on other sites

at the same time...anyone know how to add a space at the end of a string ? It seams simple but I can't seam to get it to work...

Lol...I feel kinda stupid now XD I knew it was something simple :D

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  
Followers 0