kerol2r20 / Windows-terminal-context-menu

📃 This is a simple script to add right click context menu for your best Windows terminal ❤
418 stars 37 forks source link

Run-As window flashes during execution #40

Open MolotovCherry opened 3 years ago

MolotovCherry commented 3 years ago

As is probably already known, the powershell run as command for admin flashes windows during execution, and because of that it kinda looks janky.

This led me to look for a solution. I found that nearly all script solutions were just unreliable and/or too cumbersome. So I fixed it in a simpler way, using an executable designed to hide all windows + run as admin. Much easier.

I would issue a pull request, however I'm not sure whether this addition will be welcome.

Please check out my latest 2 commits in the repo to see what I did if you like it. I'd love to submit it as a PR if it's acceptable. https://github.com/cherryleafroad/Windows-terminal-context-menu

P.S. I'm sure you're probably thinking, "but what's in the exe?". No worries, I got you covered! Check my other repo to see the code https://github.com/cherryleafroad/run-hidden https://github.com/cherryleafroad/run-hidden/blob/master/Program.cs

In fact, there is a benefit towards my solution. It is MUCH FASTER at startup than the previous solution, and more stable and reliable (from a aesthetic pov)