Skip to content
⌘ NSIS Forum Archive

Open program

13 posts

Gluck#

Open program

Hi,

I use an adblocker ADMUNCH and it works fine.
I use also INDEX YOUR FILE to find files in the computer and LAN.

AdMunch is in conflict with Index Your File (resize windows content dimensions), so I have planned, in the IYF launcher to close AM before launch IYF and reopen it on closing.

For close AM I can use KillProcess, and reopening it what is the correct command?
I have found this:



Is the right one?

Thanks.
Gluck#
I was thinking...
I have another problem too.

I don't know the path of AdMunch, so i have to discover it before close (to open it again).

Is possible know the path? How?
Anders#
If Admuncher is closing something that is not a browser popup then that sound like a bug and you should contact the author.
Gluck#
No, AdMuncher doesn't close any window.

When it's opened, the ListBox in IndexYourFile doesn't resize with the window resizing...
(stays at fixed size).

Is possible know the path of a process?
Gluck#
I have read that page yesterday, but I haven't undestood how to use it...

Could you help me with an example, please?
Nutzzz#
Sorry! Though it works for me, that header is actually not a good suggestion for your use case. Maybe ProcFunc instead, which has a ${GetProcessPath} macro, e.g.:

${GetProcessPath} "explorer.exe" $0
${If} $0 != 0
; check path here
MessageBox MB_OK "Explorer path:$\r$\n$0"
${Else}
MessageBox MB_OK "Process does not exist."
${EndIf}
Anders#
Killing processes should be your last resort. Have you tried contacting the authors of these programs?
Gluck#
"Have you tried contacting the authors of these programs?".

No, I haven't.
It's difficult to explain, (may it be caused by a conflict with other program, or my computer (W7) too old.
And Index Your File has last release in 2012...

Thanks to Nutzzz. I'll try his code soon (next week).
Gluck#
I've tryed the code, but...

In compiling: Invalid command: "${GetProcessPath}"

So I've tryed to download ProcFunc from:

Well this little project of mine has grown. The code's pretty long now, so it's available as a download. More macros available - [See full code at end of post] ${ProcessExists} Determines if a given process exists by name or PID, and returns the Process ID (PID). ${GetProcessPath} Determines first if a process exists, and returns the full path by name or PID. WARNING: This


But return the message:

Not Found
The requested URL /dld/download.php was not found on this server.

I've looked for it in Google, but I'haven't found the resource.
Any idea?
Nutzzz#
Nutzzz#
Originally Posted by Gluck View Post
Can I copy/paste the code in a .txt file and change extension?
Nothing else?
Ostensibly (as I don't personally use ProcFunc.nsh) that's correct.