AutoHotkey Community

It is currently May 25th, 2012, 7:53 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: October 19th, 2007, 3:19 pm 
Offline

Joined: November 1st, 2005, 6:38 pm
Posts: 114
Location: Ottawa
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%


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 19th, 2007, 4:21 pm 
Offline
User avatar

Joined: December 26th, 2005, 4:40 pm
Posts: 8775
Code:
File=excel.exe
RegRead, AppPath, HKLM, SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\%File%
Run, %AppPath%,,, 1PID


:)


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 19th, 2007, 6:28 pm 
Offline

Joined: November 1st, 2005, 6:38 pm
Posts: 114
Location: Ottawa
Works like a charm thank you. :D


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: dra, engunneer, krthornton, tomL, vsub and 3 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group