Sign in to follow this  
Followers 0
Evgenych

How can I get

9 posts in this topic

How can I get full path to exe of the window?

Share this post


Link to post
Share on other sites

How can I get full path to exe of the window?

<{POST_SNAPBACK}>

u can use @WorkingDir .... check out the HELPFILE

Share this post


Link to post
Share on other sites

I meant path to exe (application) which have created particular window.

Share this post


Link to post
Share on other sites

In the beta version, there is a function called WinGetProcess or something similar.


Who else would I be?

Share this post


Link to post
Share on other sites

Retrieves the Process ID (PID) associated with a window.

WinGetProcess ( "title" [, "text"])

Parameters

title The title of the window to read.

text [optional] The text of the window to read.

Return Value

Success: Returns a numeric Process ID (PID).

Failure: Returns -1.

If I know PID is it possible to determine exe full path?

Share this post


Link to post
Share on other sites

Well you can search for it, but that's very crude and may come up with multiples :idiot:


"I thoroughly disapprove of duels. If a man should challenge me, I would take him kindly and forgivingly by the hand and lead him to a quiet place and kill him." - Mark TwainPatient: "It hurts when I do $var_"Doctor: "Don't do $var_" - Lar.

Share this post


Link to post
Share on other sites

PowerPro plugin win.dll has exported function:

exepath(cl) returns full path to exe of first visible window matching cl

(How) Can I use it in AutoIt script?

Share this post


Link to post
Share on other sites

If you know the exact sintax and it is compatible with Autoit's DllCall command you should have no problems.

Share this post


Link to post
Share on other sites

Yes it should be added somewhere just for the sake of not having to muck with it anymore. Although little use for it I hate messing with it when it comes up.

Without a third party .dll or external program you have to use GetWindowThreadProcessID or an autoit alternative then DLLcall with PSAPI for win2k, xp, or 2003

some toying around has also been done here.

for win 9x/nt however you need GetWindowTHreadProcessID and use DLLcall with toolhelp more than likely. Probably better off with third party or chanting for this to be coded up. It is really more headache than it is worth although I do see some small uses for it.

If your wanting legit process info then get a third party, or grab an external .dll , maybe even the one Larry has going might takle this, at least for the time being. If its for a game trainer (blah) your better off looking offsit. Who knows, should it be done?

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