Scheduling Periodic Messages to WhatsApp Desktop with Powershell
Posted: Thu Apr 21, 2022 10:19 pm
Objective: I want use powershell to automate periodic well-formatted messages to WhatsApp chat groups called "Safety Meeting Agenda" without having to pay for complex software that uses the WhatsApp API.
Pre-Conditions:
1. TypeItIn is installed in the usual directory.
2. WhatsApp desktop is installed on your machine and it is launched.
3. You have a group named "SafetyMeetings"
4. You have a button named "SafetyAgenda"
{Activate WhatsApp}
{App WhatsApp.exe}
{Ctrl f}SafetyMeetings{Enter}{Delay 500}
*Safety Agenda Update: {DateTime dd-mmm-yyyy hh:mm}*
{Shift {Enter}}{enter}
Setup your "Windows Scheduler" with the following powershell script to run periodically:
Start-Process -FilePath “TypeItIn.exe" -ArgumentList "SafetyMeetings SafetyAgenda” -WorkingDirectory “C:\Program Files (x86)\TypeItIn\”
Pre-Conditions:
1. TypeItIn is installed in the usual directory.
2. WhatsApp desktop is installed on your machine and it is launched.
3. You have a group named "SafetyMeetings"
4. You have a button named "SafetyAgenda"
{Activate WhatsApp}
{App WhatsApp.exe}
{Ctrl f}SafetyMeetings{Enter}{Delay 500}
*Safety Agenda Update: {DateTime dd-mmm-yyyy hh:mm}*
{Shift {Enter}}{enter}
Setup your "Windows Scheduler" with the following powershell script to run periodically:
Start-Process -FilePath “TypeItIn.exe" -ArgumentList "SafetyMeetings SafetyAgenda” -WorkingDirectory “C:\Program Files (x86)\TypeItIn\”