Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CLI not working since 2.20 release #95

Open
0x546F6D opened this issue Dec 15, 2022 · 2 comments
Open

CLI not working since 2.20 release #95

0x546F6D opened this issue Dec 15, 2022 · 2 comments

Comments

@0x546F6D
Copy link

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
Copy link
Owner

Hi 0x546F6D,

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

@0x546F6D
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants