windows:script_captures_ecran_vers_jpeg
Différences
Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
windows:script_captures_ecran_vers_jpeg [2018/03/03 17:16] – 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)] | [Parameter(Mandatory=$True)] | ||
Ligne 55: | 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.1520093776.txt.gz · Dernière modification : 2018/03/03 17:16 de luc