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:
Posts (Atom)
Featured Post
Nifty50 & Bank Nifty Impact – Tariffs, Fraud Case, AGR Update (Aug 26, 2025)
NIFTY50 IMPACT ANALYSIS Major Negative Pressures: Trump's 50% Tariff Bomb – Tariffs effective August 27, 2025 on Indian goods; 66%...
-
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...
-
GAC (Global Assembly Cache):- Plugin stored in GAC does not support Dynamics 365 Online. Plugin does not backed up with d...