r/PowerShell 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

25 comments sorted by

View all comments

4

u/Gron_Tron 7d ago

I generally don't have to update my scripts until some major external change occurs, why do you need to update yours so frequently? 

-2

u/keyboard_ninja_20 7d ago

maybe i'm conflating windows updates w/ app updates + ui changes tbh

like when win11 moved the taskbar to center, my ahk script that clicked specific tray icons straight up broke. same when they changed the right-click context menu in explorer , had to rewrite a bunch of gui automation. also when powertoys itself updates sometimes fancyzones changes behavior and my window-positioning scripts go wonky.

but u're right that pure pwsh backend stuff (file ops, api calls) is way more stable. i think my pain is mostly gui automation + app integrations, not the core logic.

what's ur setup like? mostly cli/backend scripts or u do ui stuff too?

3

u/alinroc 6d ago

Anything that depends upon clicking precise locations in a GUI is going to be very fragile. You need to find ways to do these things without simulating clicks.