ConsoleWrite() Doesn't work?

4 posts in this topic

Medallyon 0

This thread has no priority whatsoever. My Script works, I'm just curious as to why my script isn't writing anything to the SciTE console.

Here's my script (which works beautifully):

#RequireAdmin_ToggleSD(); Starts the Function.Func_ToggleSD()$Device=RegRead("HKCU","PlaybackDevices"); Checks which device is currently enabled.ConsoleWrite("The device has been read. ID is "&$Device&@CRLF)If$Device=1ThenShellExecute("C:\ProgramData\Microsoft\Windows\Start Menu\Programs\SSD\SSD - Speakers.lnk"); Enables SpeakersConsoleWrite("Playback Device has been changed to Speakers"&@CRLF)RegWrite("HKCU","PlaybackDevices","REG_SZ",2); Overwrites Registry Key to SpeakersConsoleWrite("Registry Key has been overwritten. It is now"&$Device&@CRLF)ElseIf$Device=2ThenShellExecute("C:\ProgramData\Microsoft\Windows\Start Menu\Programs\SSD\SSD - Headphones.lnk"); Enables HeadphonesConsoleWrite("Playback Device has been changed to Headphones"&@CRLF)RegWrite("HKCU","PlaybackDevices","REG_SZ",1); Overwrites Registry Key to HeadphonesConsoleWrite("Registry Key has been overwritten. It is now"&$Device&@CRLF)EndIfEndFuncExit