windows:script_captures_ecran_vers_jpeg
Différences
Ci-dessous, les différences entre deux révisions de la page.
| Prochaine révision | Révision précédente | ||
| windows:script_captures_ecran_vers_jpeg [2018/03/03 17:15] – créée luc | windows:script_captures_ecran_vers_jpeg [2018/05/23 15:59] (Version actuelle) – luc | ||
|---|---|---|---|
| Ligne 2: | Ligne 2: | ||
| ====== Script pour automatiser des captures d' | ====== Script pour automatiser des captures d' | ||
| - | Ce script PowerShell permet d' | + | Ce script PowerShell permet d' |
| - | <code PowerShell> | + | |
| + | <sxh powershell> | ||
| [CmdletBinding()] Param( | [CmdletBinding()] Param( | ||
| - | [Parameter(Mandatory=$True)] | ||
| - | [String] $OutputFilename, | ||
| - | |||
| [Parameter(Mandatory=$True)] | [Parameter(Mandatory=$True)] | ||
| [Int32] $NumberOfPages | [Int32] $NumberOfPages | ||
| Ligne 58: | Ligne 56: | ||
| Start-Sleep -Milliseconds 300 | Start-Sleep -Milliseconds 300 | ||
| } | } | ||
| - | </code> | + | </sxh> |
| + | |||
| + | Les fichiers JPEG sont enregistrés dans le répertoire du script. | ||
| + | <sxh powershell; first-line: 8> | ||
| + | [String] $repertoire = (Get-Item -Path " | ||
| + | </ | ||
| + | |||
| + | Les lignes suivantes permettent de définir l' | ||
| + | <sxh powershell; first-line: 9> | ||
| + | [Int32] $origineX = 210 | ||
| + | [Int32] $origineY = 128 | ||
| + | [Int32] $largeurCapture = 1245 | ||
| + | [Int32] $hauteurCapture = 880 | ||
| + | </sxh> | ||
windows/script_captures_ecran_vers_jpeg.1520093756.txt.gz · Dernière modification : 2018/03/03 17:15 de luc
