AlexanderPro / SmartSystemMenu

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

CLI not working since 2.20 release #95

Open 0x546F6D opened 1 year ago

0x546F6D commented 1 year ago

I just discovered SSM in order to startup programs with transparency and downloaded it with scoop. I could not make the CLI work with the provided version "2.21.1" but found out that CLI was available since 2.13.0 so I decided to try out this release and it worked. I then tested the most recent releases of SSM with this command: .\SmartSystemMenu.exe --title "SpeedCrunch" -a topleft

The most recent release of SSM that could successfully move that window to the topleft corner was 2.19.3. I tried different parameters (--handle --ProcessId, --titleContains, etc.. ) with the latest 2.20 and 2.21 releases but could not get it to work.

Thank you for this awesome tool btw :)

AlexanderPro commented 1 year ago

Hi 0x546F6D,

Thank you for finding the error. Please, try version 2.21.2

0x546F6D commented 1 year ago

Hi AlexanderPro, Thanks for the fast update. CLI works fine now.

On a similar subject, I do not know if it would be interesting for you to include this functionality into SSM but here is just a thought. My current powershell script to start programs with transparency can basically be reduced to 3 lines:

param([String]$progName='')
iex "$progName"
iex "smartsystemmenu --title '$progName' --transparency 10"

And in Start Menu\Programs, I have a shortcut with the target defined as below: powershell.exe -NoProfile -NoLogo -WindowStyle Hidden -File "Path\to\startTransparent.ps1" SpeedCrunch

This works fine, with a short flashing powershell terminal, for programs whose title is the same as their filename. However, as SSM is already capable of starting programs with parameters, would it be possible to get rid of the script entirely and to direct the target of the shortcut directly to SSM with some parameters? For example: SmartSystemMenu.exe --run "SpeedCrunch" --transparency 10

The program we want to run through SSM could need to be defined 1st in settings/Menu(Start Program) if necessary. Again, just a thought not related to this issue, you can definitely close this issue. Thanks for the great work.