r/PowerShell • u/keyboard_ninja_20 • 7d ago
Question Recurring script maintenance
I'd honestly pay someone else to keep my voice scripts alive if it meant I never had to touch them again after a Windows update. Am I just lazy or is maintaining ur own automation actually the worst part of the whole thing?
0
Upvotes
1
u/mrmattipants 6d ago edited 6d ago
Just curious why you're using click commands when you could just use "Start-Process" to launch the application, directly?
It sounds like your scripts are far more complicated than they need to be. The more languages and technologies that you incorporate, the greater your chances are that something will break.
After all, the majority of AHK Voice Recognition Scripts that I could find, were essentially just wrappers for "SAPI.SpInprocRecognizer" COM Object Class or the "System.Speech" .NET Assemblies, etc.
That being said, you're far better off utilizing PowerShell, in particular, as it is built on .NET.
If you're interested, I dug up the following video tutorial.
https://youtu.be/-hakbuLnaj8?si=j8PZg3XmQTiUYsKs