Hi there. Just want to enquiry something.
Is it possible to limit the number of times of Portable Apps.exe?
Example is that each time I click on the PortableAppsMenu.exe, it will jus keep on launching and launching in the system tray icon.
Thus if I accidentally click it 10times, there will be 10 tray icons there. And 10 applications of POrtableAppsMenu running in the Task Manager.
Is there a way to limit the number of the Portable APps menu to just once?
Regards,
I have this added in my PAM mod here:https://portableapps.com/node/4844
It's not in John's official version(that I know of...)
Nobody should start to undertake a large project. You start with a small _trivial_ project, and you should never expect it to get large. If you do, you'll just overdesign and generally think it is more important than it likely is at that stage. Or worse,
Sorry but I cant find which part of the codes am I supposed to look for.
Can u show me where is it?
Thanks.
Regards,
Do you want code or .exe? The exe is at the link i gave, the code is there too, but the snipit is:
begin
messID := RegisterWindowMessage('UniqueAppName');
try
handle := CreateMutex(nil, true, 'UniqueKeyName' );
if GetLastError = ERROR_ALREADY_EXISTS then begin
PostMessage(HWND_BROADCAST, messID, 0, 0);
end else begin
Application.Initialize;
Application.Title := 'PortableApps Menu';
Application.CreateForm(TfrmMenu, frmMenu);
Application.CreateForm(TfrmAbout, frmAbout);
Application.CreateForm(TfrmAddApp, frmAddApp);
Application.Run;
end;
finally
if handle 0 then CloseHandle(handle);
end;
Nobody should start to undertake a large project. You start with a small _trivial_ project, and you should never expect it to get large. If you do, you'll just overdesign and generally think it is more important than it likely is at that stage. Or worse,
Thanks for the reply!