AlexanderPro / SmartSystemMenu

SmartSystemMenu extends system menu of all windows in the system
MIT License
1.96k stars 110 forks source link

[Suggest] Custom Menu Entry #50

Closed jean3x7 closed 2 years ago

jean3x7 commented 2 years ago

Please add an option to create custom menu/submenu item with window parameters ex:

"Force Kill": taskkill /f /im %process_name% "Force Kill PID": taskkill /f /PID %process_id% "Search Web (Windows Title)": chrome.exe "https://www.google.com/search?q=%window_title%" "Search Web (Process Name)": chrome.exe "https://www.google.com/search?q=%process_name%"

Checkbox option to choose if want to run hidden

thanks.

AlexanderPro commented 2 years ago

Hi jean3x7,

Please, try version 2.15.0

I have added new menu items with parameters:

jean3x7 commented 2 years ago

Thanks for reply, i tried 2.15.0 version, works, but it prompt to input information. I suggest to run commands with current window paramentes, ex:

If i created a custom entry to "Force Kill": taskkill /f /im %process_name%

If I open notepad.exe, then click on the menu to "Force delete", the command I run should be: "taskkill /f /im notepad.exe"

SmartSystemMenu will replace %process_name% with "notepad.exe" (current window)

image

AlexanderPro commented 2 years ago

Why would you like to have two menu items "Force Kill" and "Force Kill PID", not one? Do you intend to kill several processes by name (e.g. notepad.exe)?

jean3x7 commented 2 years ago

Why would you like to have two menu items "Force Kill" and "Force Kill PID", not one? Do you intend to kill several processes by name (e.g. notepad.exe)?

Whatever, just an example, my suggestion is to create custom menu entry with configurable command using current window parameters like window title, process name, process id, etc.

AlexanderPro commented 2 years ago

Try version 2.15.1

I have added three parameters process_id, process_name, window_title and new menu item Start Program | Kill This Process. If you would like to add menu items "Search Web (Windows Title)" or "Search Web (Process Name)", use this configuration file: SmartSystemMenu.xml.zip

jean3x7 commented 2 years ago

Thanks, this will be enough to extend the functionality for any situation.