Use this script to dial with XLITE.
Add-Type -AssemblyName Microsoft.VisualBasic
Add-Type -AssemblyName System.Windows.Forms
$LocalAppData = [System.Environment]::GetFolderPath("LocalApplicationData");
$PSI = New-Object System.Diagnostics.ProcessStartInfo
$PSI.FileName = "$($LocalAppData)\CounterPath\X-Lite\Current\X-Lite.exe"
$Process = [System.Diagnostics.Process]::Start($PSI)
$Process.WaitForExit()
# [System.Threading.Thread]::Sleep(3000)
Add-Type -AssemblyName Microsoft.VisualBasic
Add-Type -AssemblyName System.Windows.Forms
[Microsoft.VisualBasic.Interaction]::AppActivate("x-lite")
$Backspace = "{BS}"
$KeysToSend = "";
for($i = 0; $i -lt 10; $i++){
$KeysToSend = $KeysToSend + $Backspace
}
$KeysToSend += $PhoneNumber
$KeysToSend += "{ENTER}";
[System.Windows.Forms.SendKeys]::SendWait($KeysToSend)
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article