Close Menu
Computing.net
    Facebook X (Twitter) Instagram
    Computing.netComputing.net
    • News
      1. AI
      2. Crypto
      3. Gaming
      4. Hardware
      5. Security
      6. Software
      7. View All

      Anthropic’s COBOL Automation Tool Triggers IBM Stock Plunge and Crypto Market Decline

      February 24, 2026

      AI Trading Bot Loses $441K in Crypto After Decimal Point Mistake

      February 23, 2026

      Tesla (TSLA) Stock: Goodbye Sedans, Hello Robots in Dramatic Production Shift

      January 29, 2026

      Palantir Technologies (PLTR) Stock: Why Bears May Be Wrong About Valuation Concerns

      January 29, 2026

      SUI Token Rallies 40% Following Major Staking Event and CME Futures Announcement

      May 12, 2026

      Chainlink (LINK) Surges to $10.40 as Network Activity Hits Eight-Month Peak

      May 12, 2026

      Dogecoin Whales Ramp Up Accumulation as DOGE Eyes Critical Breakout Levels

      May 12, 2026

      Bitcoin Holds $81K While Burry Flags Nasdaq Bubble and Oil Surges Past $105

      May 12, 2026

      Hamster Kombat: Unraveling TON’s Gaming Phenomenon

      August 7, 2024

      W-Coin: Exploring the Latest Telegram Tap-to-Earn Phenomenon

      August 7, 2024

      Hamster Kombat: 300 Million Players & Counting, HMSTR Token Airdrop Soon!

      July 31, 2024

      Hamster Kombat Developers Work with TON Team on Airdrop Solution

      July 30, 2024

      Nothing Expands Product Line with New AI Feature & Phone Update

      July 31, 2024

      Security Audit Reveals Concerns in Atari’s Blockchain Game on Base

      August 6, 2024

      SideWinder Group Targets Maritime Facilities in New Cyber Espionage Campaign

      July 30, 2024

      OAuth Implementation Flaw Exposes Millions of Websites to XSS Attacks

      July 30, 2024

      Hamster Kombat Players Face Growing Cybersecurity Threats

      July 25, 2024

      Anthropic’s COBOL Automation Tool Triggers IBM Stock Plunge and Crypto Market Decline

      February 24, 2026

      Cookie Crumble: Google Halts Plans to Eliminate Third-Party Cookies in Chrome

      July 23, 2024

      Big Brother is Watching: Apple’s Creepy New Ad Urges iPhone Users to Ditch Chrome

      July 23, 2024

      Nvidia Stock Soars to New Record at $219.44 Ahead of May 20 Earnings

      May 12, 2026

      Rocket Lab Shares Surge Past $120 Following Wave of Analyst Upgrades

      May 12, 2026

      GM Shares Decline Following 600 IT Layoffs Amid Strategic AI Workforce Transformation

      May 12, 2026

      SES Delivers €847M Q1 Performance as Intelsat Integration and Aviation Deals Fuel Expansion

      May 12, 2026
    • How To

      Batch Files: Tokens and Delimiters (FOR Loops)

      July 31, 2024

      Types of Ethernet Cabling & Electrical Low Voltage Wiring

      July 9, 2024

      What You Should Know About .JSON File Extension

      January 10, 2023

      Bkup File Extension

      November 19, 2022

      HEIC File Extension

      November 19, 2022
    • Office
      1. Excel
      2. Google Sheets
      3. View All

      How to Convert Column List to Comma Separated List in Excel

      July 24, 2024

      How to Find the Last Monday of the Month in Excel

      July 24, 2024

      Convert Bytes to MB or GB in Excel: 3 Methods!

      July 24, 2024

      How to Remove Characters from Right in Excel

      July 30, 2023

      How to Subtract in Google Sheets: Complete Guide

      July 31, 2024

      Bullet Points in Google Sheets

      January 20, 2022

      Sort by Date in Google Sheets

      January 18, 2022

      Google Sheets Timestamp

      January 17, 2022

      How to Subtract in Google Sheets: Complete Guide

      July 31, 2024

      How to Convert Column List to Comma Separated List in Excel

      July 24, 2024

      How to Find the Last Monday of the Month in Excel

      July 24, 2024

      Convert Bytes to MB or GB in Excel: 3 Methods!

      July 24, 2024
    • Answers
    • About
    • Contact
    Facebook X (Twitter)
    Computing.net
    How To

    [VBS] How to listen to a radio station in live with a vbscript

    Computing StaffBy Computing StaffOctober 5, 2021
    Twitter LinkedIn Email Telegram
    Twitter LinkedIn Email Telegram

    Here is a cool vbscript that let you listen to a radio station in live (DJ Buzz Radio).

    1. The script check if you are connected or not to the internet; if yes, it ask you, if you want to listen to this radio station, and create a shortcut on your desktop.
    2. If you want to stop it;  just click on it again to show you a popup message,and you should choose NO.

    For any update of this script, just check this link : https://pastebin.com/L4WBCsVA

    DJ Buzz Radio.vbs

    Option Explicit
    Dim Title,MyScriptPath,DJBuzzRadio,MyLoop,strComputer,objPing,objStatus,FSO,FolderScript,Icon
    Title = “Radio DJ Buzz Live by © Hackoo 2018 ”
    MyScriptPath = WScript.ScriptFullName
    Set FSO = Createobject(“Scripting.FileSystemObject”)
    ‘Path of the folder where the Vbscript is located
    FolderScript = FSO.GetParentFolderName(MyScriptPath)
    DJBuzzRadio = ChrW(104)&ChrW(116)&ChrW(116)&ChrW(112)&ChrW(58)&ChrW(47)&_
    ChrW(47)&ChrW(119)&ChrW(119)&ChrW(119)&ChrW(46)&ChrW(99)&ChrW(104)&ChrW(111)&_
    ChrW(99)&ChrW(114)&ChrW(97)&ChrW(100)&ChrW(105)&ChrW(111)&ChrW(115)&ChrW(46)&_
    ChrW(99)&ChrW(104)&ChrW(47)&ChrW(100)&ChrW(106)&ChrW(98)&ChrW(117)&ChrW(122)&ChrW(122)&_
    ChrW(114)&ChrW(97)&ChrW(100)&ChrW(105)&ChrW(111)&ChrW(95)&ChrW(119)&ChrW(105)&ChrW(110)&_
    ChrW(100)&ChrW(111)&ChrW(119)&ChrW(115)&ChrW(46)&ChrW(109)&ChrW(112)&ChrW(51)&ChrW(46)&_
    ChrW(97)&ChrW(115)&ChrW(120)
    ‘To create a shortcut of this vbscript on your desktop
    Call Shortcut(MyScriptPath,”DJ Buzz Radio”)
    MyLoop = True
    If CheckConnection = True Then Call AskQuestion()
    ‘***************************************************************************
    Function CheckConnection()
    CheckConnection = False
    While MyLoop = True
    strComputer = “smtp.gmail.com”
    Set objPing = GetObject(“winmgmts:{impersonationLevel=impersonate}!\\”).ExecQuery _
    (“select * from Win32_PingStatus where address = ‘” & strComputer & “‘”)
    For Each objStatus in objPing
    If objStatus.Statuscode = 0 Then
    MyLoop = False
    CheckConnection = True
    Exit Function
    End If
    Next
    Pause(10) ‘To sleep for 10 secondes
    Wend
    End Function
    ‘***************************************************************************
    Sub Play(URL)
    Dim Sound
    Set Sound = CreateObject(“WMPlayer.OCX”)
    Sound.URL = URL
    Sound.settings.volume = 100
    Sound.Controls.play
    do while Sound.currentmedia.duration = 0
    wscript.sleep 100
    loop
    wscript.sleep (int(Sound.currentmedia.duration)+1)*1000
    End Sub
    ‘***************************************************************************
    Sub Shortcut(Application_Path,ShortcutName)
    Dim objShell,fso,DesktopPath,objShortCut,MyTab,strCurDir
    Set objShell = CreateObject(“WScript.Shell”)
    Set fso = CreateObject(“Scripting.FileSystemObject”)
    strCurDir = fso.GetParentFolderName(WScript.ScriptFullName)
    MyTab = Split(Application_Path,”\”)
    If ShortcutName = “” Then
    ShortcutName = MyTab(UBound(MyTab))
    End if
    DesktopPath = objShell.SpecialFolders(“Desktop”)
    Set objShortCut = objShell.CreateShortcut(DesktopPath & “\” & ShortcutName & “.lnk”)
    objShortCut.TargetPath = Dblquote(Application_Path)
    ObjShortCut.IconLocation = “%SystemRoot%\system32\shell32.dll,138”
    objShortCut.Save
    End Sub
    ‘*****************************************************************************
    ‘Function to add double quotes in a variable
    Function DblQuote(Str)
    DblQuote = Chr(34) & Str & Chr(34)
    End Function
    ‘*****************************************************************************
    Function AppPrevInstance()
    With GetObject(“winmgmts:” & “{impersonationLevel=impersonate}!\\.\root\cimv2”)
    With .ExecQuery(“SELECT * FROM Win32_Process WHERE CommandLine LIKE ” & CommandLineLike(WScript.ScriptFullName) & _
    ” AND CommandLine LIKE ‘%WScript%’ OR CommandLine LIKE ‘%cscript%'”)
    AppPrevInstance = (.Count > 1)
    End With
    End With
    End Function
    ‘******************************************************************************
    Function CommandLineLike(ProcessPath)
    ProcessPath = Replace(ProcessPath, “\”, “\\”)
    CommandLineLike = “‘%” & ProcessPath & “%'”
    End Function
    ‘******************************************************************************
    Sub Pause(NSeconds)
    Wscript.Sleep(NSeconds*1000)
    End Sub
    ‘******************************************************************************
    Sub AskQuestion()
    Dim Question,MsgAR,MsgFR,MsgEN
    MsgFR = “Voulez-vous écouter DJ Buzz Radio en direct ?” & vbcr &_
    “Oui = Pour écouter la radio” & vbcr & “Non = Pour arrêter la radio” & vbcr & String(50,”*”)
    MsgEN = “Did you want to listen to the Radio DJ Buzz Live ?” & vbcr &_
    “Yes = To Listen to the Radio” & vbcr &_
    “No = To Stop the Radio” & vbcr & String(50,”*”)
    MsgAR = ChrW(1607)&ChrW(1604)&ChrW(32)&ChrW(1578)&ChrW(1585)&ChrW(1610)&ChrW(1583)&_
    ChrW(32)&ChrW(1571)&ChrW(1606)&ChrW(32)&ChrW(1578)&ChrW(1587)&ChrW(1605)&ChrW(1593)&ChrW(32)&_
    ChrW(32)&ChrW(1604)&ChrW(1575)&ChrW(1610)&ChrW(1601)&ChrW(32)&ChrW(1585)&ChrW(1575)&ChrW(1583)&_
    ChrW(1610)&ChrW(1608)&ChrW(32)&ChrW(68)&ChrW(74)&ChrW(32)&ChrW(66)&ChrW(117)&ChrW(122)&ChrW(122)&_
    ChrW(32)&ChrW(82)&ChrW(97)&ChrW(100)&ChrW(105)&ChrW(111)&ChrW(32)&ChrW(63) & vbcr & ChrW(1606)&ChrW(1593)&_
    ChrW(1605)&ChrW(32)&ChrW(61)&ChrW(32)&ChrW(1604)&ChrW(1575)&ChrW(1587)&ChrW(1578)&ChrW(1605)&ChrW(1575)&ChrW(1593) & vbcr &_
    ChrW(1604)&ChrW(1575)&ChrW(32)&ChrW(61)&ChrW(32)&ChrW(1604)&ChrW(1608)&ChrW(1602)&ChrW(1601) & vbcr & String(50,”*”)
    Question = MsgBox(MsgFR & vbcr & MsgEN & vbcr & MsgAR,vbYesNO+vbQuestion+vbSystemModal,Title)
    If Question = VbYes And Not AppPrevInstance() Then
    Call Play(DJBuzzRadio)
    End If
    If Question = VbYes And AppPrevInstance() Then
    MsgBox “There is another instance in execution !” & VbCrLF &_
    “Il y a une autre instance en cours d’exécution !”& VbcrLF &_
    ChrW(1607)&ChrW(1606)&ChrW(1575)&ChrW(1603)&ChrW(32)&ChrW(1605)&_
    ChrW(1579)&ChrW(1575)&ChrW(1604)&ChrW(32)&ChrW(1570)&ChrW(1582)&_
    ChrW(1585)&ChrW(32)&ChrW(1601)&ChrW(1610)&ChrW(32)&ChrW(1575)&_
    ChrW(1604)&ChrW(1578)&ChrW(1606)&ChrW(1601)&ChrW(1610)&ChrW(1584)& VbcrLF &_
    CommandLineLike(WScript.ScriptName),VbExclamation+vbSystemModal,Title
    WScript.Quit()
    End If
    If Question = VbNo And Not AppPrevInstance() Then
    Call Kill(“wscript.exe”)
    End If
    If Question = VbNo And AppPrevInstance() Then
    Call Kill(“wscript.exe”)
    End If
    End Sub
    ‘******************************************************************************
    Sub Kill(MyProcess)
    Dim Titre,colItems,objItem,Processus,Question
    Titre = ” Processus “& DblQuote(MyProcess) &” en cours d’exécution ”
    Set colItems = GetObject(“winmgmts:”).ExecQuery(“Select * from Win32_Process ” _
    & “Where Name like ‘%”& MyProcess &”%’ AND commandline like ” & CommandLineLike(WScript.ScriptFullName) & “”,,48)
    For Each objItem in colItems
    objItem.Terminate(0)’Kill this process
    Next
    End Sub
    ‘******************************************************************************

    Share. Twitter LinkedIn Email Telegram
    Avatar photo
    Computing Staff
    • Website

    Related Posts

    Batch Files: Tokens and Delimiters (FOR Loops)

    July 31, 2024

    Types of Ethernet Cabling & Electrical Low Voltage Wiring

    July 9, 2024

    What You Should Know About .JSON File Extension

    January 10, 2023

    Bkup File Extension

    November 19, 2022

    HEIC File Extension

    November 19, 2022

    Working with Batch variables and For loops

    October 6, 2021
    Add A Comment

    Comments are closed.

    Latest

    Nvidia Stock Soars to New Record at $219.44 Ahead of May 20 Earnings

    May 12, 2026

    Rocket Lab Shares Surge Past $120 Following Wave of Analyst Upgrades

    May 12, 2026

    GM Shares Decline Following 600 IT Layoffs Amid Strategic AI Workforce Transformation

    May 12, 2026

    SES Delivers €847M Q1 Performance as Intelsat Integration and Aviation Deals Fuel Expansion

    May 12, 2026

    Trump Dismisses Iran Peace Proposal — Oil Markets React as Hormuz Remains Restricted

    May 12, 2026
    • Facebook
    • Twitter

    Latest Reviews

    Meta Platforms Shares Tumble 8% Despite Strong Q1 Performance Amid AI Investment Surge

    April 30, 2026

    Flush.com Review: Casino & Sportsbook With 275% Welcome Bonus

    March 7, 2026

    Katsubet Review: Crypto Casino With 300% Welcome Bonus & Free Spins

    March 7, 2026

    7Bit Review: Crypto Casino With 325% Bonus & 250 FS

    March 7, 2026

    Mega Dice Review: Crypto Casino With 200% Bonus & 50 Free Spins, Legit?

    March 7, 2026


    Home / Privacy Policy / Terms & Conditions

    Computing.net © 1996 - 2026 Kooc Media Ltd. All rights reserved. Registered Company No.05695741

    Type above and press Enter to search. Press Esc to cancel.