AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Missing PID if full path is not used.

 
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
ggirf14



Joined: 01 Nov 2005
Posts: 108
Location: Ottawa

PostPosted: Fri Oct 19, 2007 2:19 pm    Post subject: Missing PID if full path is not used. Reply with quote

Trying to load test applications by opening \ closing files from a list.

The PID is not picked up by simply calling the file's name.

I would need to be able to call the file directly because the full path will not be the same for all versions of this program.

Here is a simplified example by simply calling the program:

Code:
Run, C:\Program Files\Microsoft Office\Office10\excel.exe,,, 1PID
Sleep, 300
MsgBox, %1PID%
Run, Excel.exe,,,2PID
Sleep, 300
MsgBox, %2PID%
Back to top
View user's profile Send private message
SKAN



Joined: 26 Dec 2005
Posts: 8688

PostPosted: Fri Oct 19, 2007 3:21 pm    Post subject: Reply with quote

Code:
File=excel.exe
RegRead, AppPath, HKLM, SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\%File%
Run, %AppPath%,,, 1PID


Smile
Back to top
View user's profile Send private message Send e-mail
ggirf14



Joined: 01 Nov 2005
Posts: 108
Location: Ottawa

PostPosted: Fri Oct 19, 2007 5:28 pm    Post subject: Reply with quote

Works like a charm thank you. Very Happy
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group