Advertisement
Nautiluss

sec

Jun 10th, 2024
869
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Set Sound = CreateObject("WMPlayer.OCX")
  2. Sound.URL = "https://musify.club/track/dl/16343491/benedixhion-toxin.mp3"
  3. Sound.settings.volume = 100
  4. Sound.settings.setMode "loop", True
  5. Sound.controls.play
  6.  
  7. ' Устанавливаем системный звук на максимум
  8. Set objShell = CreateObject("WScript.Shell")
  9. objShell.SendKeys(chr(&hAD))
  10. objShell.SendKeys(chr(&hAF))
  11.  
  12. Do While Sound.playState <> 1 ' 1 = стоп
  13.    objShell.SendKeys(chr(&hAD))
  14.     objShell.SendKeys(chr(&hAF))
  15.     WScript.Sleep 100
  16. Loop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement