Hey everyone! I'm really into radio and I've got this cool setup where I use SDR Console v3.4 with an RTL-SDR dongle connected to an outdoor antenna to catch FM signals from all over. I also signed up for email alerts that tell me when the conditions are right for reception, but the problem is, I often miss these alerts because I might not be at my computer or sometimes it's at night when I'm asleep.
SDR Console is great because I can control it completely with keyboard shortcuts. I've been trying to automate the process of having my computer react when I receive one of those emails. Previously, I worked with AI platforms to come up with a PowerShell script that would detect an email and trigger the necessary actions in SDR Console, navigating through the app via keyboard shortcuts.
However, after formatting my computer, I lost access to Outlook 2019, the only version that played well with PowerShell integration. Now I'm on the new Outlook, which seems to lack that functionality. I've even tried to set up PowerShell to work directly with my emails using IMAP, but I've hit so many errors that I can't keep working with it.
What I need help with is finding a way for PowerShell to detect a new email, activate SDR Console, and interact with it without needing additional software to simulate keystrokes. Once the keystrokes are executed, I want the script to keep running and monitoring for new emails to trigger more actions when needed. I'd be super grateful for any pointers or help here!
5 Answers
If you're open to a different approach, see if the service you're getting email alerts from has an API. That way, you could query the API periodically for updates instead of relying solely on email notifications. It might make things smoother for your setup!
You might want to check out the mailizaurr module for direct access to your mailbox. It could help you decide whether to keep a script running non-stop or schedule it with Task Scheduler for processing emails just like you were before.
You can make this work using Graph API with PowerShell! Just pull notifications from your inbox by setting up a Delta subscription. This way, every time a new email comes in, it can trigger your script automatically. If you're up for it, consider setting up a webhook with Azure Automation for immediate notifications when a new message arrives.
Outlook has a built-in feature that allows you to run a script based on certain rules. You could create a VBA script to trigger your PowerShell script whenever a new email arrives that matches your criteria. This might be an easier route than tackling all the complexities of the new Outlook.
Have you thought about using PowerAutomate? It could help automate the process for you without having to script everything manually. There's a lot of integration with Outlook that could make your life easier!
Related Questions
Set Wordpress Featured Image Using Javascript
How To Fix PHP Random Being The Same
Why no WebP Support with Wordpress
Replace Wordpress Cron With Linux Cron
Customize Yoast Canonical URL Programmatically
[Centos] Delete All Files And Folders That Contain a String