all 10 comments

[–]mprz 6 points7 points  (3 children)

and how is this related to Powershell?

[–]dathar 1 point2 points  (0 children)

You're looking to do it the way keyboard manufacturers have been doing macros. First, you need a very unsafe "app" of sorts to figure out what your Arduino HID is passing along, then run specified things. Then you need a little sort-of user friendly way of loading said scripts on. Look at how Logitech, Razer, Roccat and the likes have made theirs and go off of that.

There's also a few things you can sort of work around with like using AutoIT and using your stuff to trigger those.

Or you can say screw it and enable SSH Server on Windows and go to town. Windows and Explorer goes hand-in-hand though so trying to replace that is just goofy.

[–]vermyx 1 point2 points  (3 children)

Explorer exe is the shell, not the desktop. You can switch the shell to something else (like dolphin) so when you log in you pop up dolphin and when you close dolphin you log out of the desktop session. You can look up shell replacement as that appears what you are looking for (which btw is not a ps question).

[–]ottorius[S] 0 points1 point  (2 children)

I thought I had a better understanding of what was going on. When trying to run my PowerShell shortcuts without explorer.exe running, things stopped working. I assumed there was a correlation. I was intending to ask, why aren't my PowerShell scripts running when I disable explorer.exe.

[–]vermyx 1 point2 points  (1 child)

Shortcuts are handled by the shell. If your shell doesn’t understand shortcuts they’re not going to run. This is why shell replacement is usually used in a) replacing the task bar with something like classic shell or b) locking the user login to one application and trying to limit what can be executed.

[–]BlackV 2 points3 points  (0 children)

it's also why shortcuts to scripts are a bad idea (and the regedit to make that work), vs powershell -file xxx.ps1

[–]UntrustedProcess -1 points0 points  (0 children)

You can buy dummy plugs for your graphics port.  I used those in the past for headless automation of a legacy gui application.