Wednesday, August 2, 2023
Post to send whatsapp messages
[void][System.Reflection.Assembly]::LoadWithPartialName('System.Windows.Forms')
Import-Csv C:\Users\ersan\OneDrive\Documents\SamplePS.csv |
foreach {
$_.File
[system.Diagnostics.Process]::Start("chrome","https://wa.me/"+$_.Url+"?text=JSRM")
Start-Sleep -Seconds 10
[System.Windows.Forms.SendKeys]::SendWait("{BACKSPACE}")
[System.Windows.Forms.SendKeys]::SendWait("{BACKSPACE}")
[System.Windows.Forms.SendKeys]::SendWait("{BACKSPACE}")
[System.Windows.Forms.SendKeys]::SendWait("{BACKSPACE}")
Start-Sleep -Seconds 1
[System.Windows.Forms.SendKeys]::SendWait("+{TAB}")
[System.Windows.Forms.SendKeys]::SendWait("{ENTER}")
Start-Sleep -Seconds 1
[System.Windows.Forms.SendKeys]::SendWait("{DOWN}")
[System.Windows.Forms.SendKeys]::SendWait("{ENTER}")
Start-Sleep -Seconds 2
[System.Windows.Forms.SendKeys]::SendWait("C:\Users\ersan\Downloads\ilovepdf_extracted-pages1\"+$_.File)
Start-Sleep -Seconds 2
[System.Windows.Forms.SendKeys]::SendWait("{ENTER}")
Start-Sleep -Seconds 4
[System.Windows.Forms.SendKeys]::SendWait("{TAB}")
[System.Windows.Forms.SendKeys]::SendWait("{TAB}")
[System.Windows.Forms.SendKeys]::SendWait("{TAB}")
[System.Windows.Forms.SendKeys]::SendWait("{ENTER}")
}
Subscribe to:
Comments (Atom)
Featured Post
questions for improvement
using ExamTopics; using Newtonsoft.Json; using Microsoft.Web.WebView2.WinForms; using System; using System.Collections.Generic; using System...
-
GST Questions and Answers Q51) How do you handle ITC on goods sent for job work? ...
-
Plugin Interview Questions: 1. Explain in details about the event execution pipeline. 2. When do we register a plugin in a...
-
When we created a new entity in CRM, we have to option for “ownership” as “User or Team” and “Organization”. Below are the main differences ...