EliTe_ThuT Posted April 24, 2008 Share Posted April 24, 2008 (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 April 24, 2008 by EliTe_ThuT Link to comment Share on other sites More sharing options...
monoceres Posted April 24, 2008 Share Posted April 24, 2008 (edited) Edit: Sorry misread your post Edited April 24, 2008 by monoceres Broken link? PM me and I'll send you the file! Link to comment Share on other sites More sharing options...
monoceres Posted April 24, 2008 Share Posted April 24, 2008 (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 April 24, 2008 by monoceres Broken link? PM me and I'll send you the file! Link to comment Share on other sites More sharing options...
EliTe_ThuT Posted April 24, 2008 Author Share Posted April 24, 2008 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 I'll have a look at this...thx Link to comment Share on other sites More sharing options...
EliTe_ThuT Posted April 24, 2008 Author Share Posted April 24, 2008 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... Link to comment Share on other sites More sharing options...
TomZ Posted April 24, 2008 Share Posted April 24, 2008 (edited) $string = $string & " " or $string &= " " Edited April 24, 2008 by TomZ Link to comment Share on other sites More sharing options...
monoceres Posted April 24, 2008 Share Posted April 24, 2008 (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&=" " Edited April 24, 2008 by monoceres Broken link? PM me and I'll send you the file! Link to comment Share on other sites More sharing options...
EliTe_ThuT Posted April 24, 2008 Author Share Posted April 24, 2008 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 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