r/PowerShell • u/keyboard_ninja_20 • Sep 03 '26
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
9
u/BetrayedMilk Sep 03 '26
I think I’ve had to update a script like once or twice due to windows updates. Other apps updating, sure. But what are you doing where you’re constantly having to make changes to keep up with updates?
4
u/Gron_Tron Sep 03 '26
I generally don't have to update my scripts until some major external change occurs, why do you need to update yours so frequently?
28
u/LongTatas Sep 03 '26
I have automation I haven’t touched in years. Me thinks you are missing something.
6
u/BlackV Sep 04 '26
your voice scripts ?
Edit: looks like this isn't a powershell issue, this is a random application and gui issue
3
u/pigers1986 Sep 04 '26
what is VOICE SCRIPT , kinda lost in powershell context ?
3
u/WasSubZero-NowPlain0 Sep 04 '26
Sorry what? I'd never use AHK for long term automation.
2
u/purplemonkeymad Sep 04 '26
Mine tend to die when an external api changes. Most of local steps don't end up causing maintenance. Unless you are relying on something sensitive to ui changes like SendKeys?
1
u/Agile_Seer Sep 04 '26
How much are you paying?
1
u/mrmattipants Sep 05 '26 edited Sep 05 '26
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
1
u/badteeth3000 Sep 07 '26
Your’e not lazy at all & there’s a wide community of folks that have done what you’re doing: it is usersripting in the browser, desktop automation, macros. Software-wise if you put desktop automation or auto hotkey into a website like alternativeto.net it’ll give you a wide range of commercial & open source options. Most of the big ai groups also have a desktop app that can handle voice commands . There’s also hardware like the elgato stream deck or large keyboard macro pads. As far as powershell goes it can get window elements quite well but like ahk there’s always possible conflict due to other software..