 |
AutoHotkey Community Let's help each other out
|
| View previous topic :: View next topic |
| Author |
Message |
ggirf14
Joined: 01 Nov 2005 Posts: 108 Location: Ottawa
|
Posted: Fri Oct 19, 2007 2:19 pm Post subject: Missing PID if full path is not used. |
|
|
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 |
|
 |
SKAN
Joined: 26 Dec 2005 Posts: 8688
|
Posted: Fri Oct 19, 2007 3:21 pm Post subject: |
|
|
| Code: | File=excel.exe
RegRead, AppPath, HKLM, SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\%File%
Run, %AppPath%,,, 1PID |
 |
|
| Back to top |
|
 |
ggirf14
Joined: 01 Nov 2005 Posts: 108 Location: Ottawa
|
Posted: Fri Oct 19, 2007 5:28 pm Post subject: |
|
|
Works like a charm thank you.  |
|
| Back to top |
|
 |
|
|
You can post new topics in this forum You can reply to topics in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|