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:
Post Comments (Atom)
Featured Post
How to Submit Form Data Dynamically in JavaScript Using FormDataHandler
Form Submission Using FormDataHandler The FormDataHandler class provides various methods to handle form submissions dyn...
-
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...
-
Form level Security:- Form level security used to secure a form, using this form level security we can restrict the Entity form to display...
No comments:
Post a Comment