<p><strong>Meilleure méthode pour Windows sans Python</strong></p>
<p>Copiez le code ci-dessous et enregistrez le fichier avec l’extension <strong>.ps1</strong></p>
<p>Après avoir enregistré le fichier, faites un clic droit dessus et sélectionnez <strong>Exécuter avec PowerShell</strong></p>
<pre><code class="lang-auto">Clear-Host
Echo "toggling scroll lock"
$WShell = New-Object -com "Wscript.Shell"
while ($true) {
$WShell.sendkeys("{SCROLLLOCK}")
Start-Sleep -Milliseconds 200
$WShell.sendkeys("{SCROLLLOCK}")
Start-Sleep -Seconds 350
}
</code></pre>