-----------------------------------------------------------------------------------
Download
Alternate Console from
My PureBasic Stuff-----------------------------------------------------------------------------------
Tricks 'n' TipsPureBasic Interface to OpenCVPureBasic Interface to WinDivertPureBasic Interface to WinRARPureBasic Interface to 7-ZipPureBasic Interface to ImDiskWindows Services & Other StuffInvading Space AliensDeath Star vs AsteroidsGIF ToolkitLSB Image SteganographySpider Web DrawingDeform Image: MLSVideo Snipping ToolStitch Images: SIFTImage Waves: LUTYouTube Player & DownloaderMP4 Player & DownloaderBarcode GeneratorGoogle Translate ServiceEmbed JS into PureBasicGeolocation: Google MapsBook & Viewer & MagnifyVideo for Windows: VfWAlternate ConsoleNetwork Share Management-----------------------------------------------------------------------------------
ShowConsole(State = 1)- defaults to showing Console in Normal Mode (1)
- sets state for both AltConsole or CmdConsole (0 = hidden, 1 = Normal, 2 = Minimized, 3 = Maximized)
BringToTop(hConsole)- not called directly
- brings AltConsole or a visible CmdConsole to the foreground on open
GetColors(CharacterColor, BackgroundColor)- not called directly
- sets colors for both AltConsole or CmdConsole
HandlerRoutine(dwCtrlType)- not called directly
- callback to catch AltConsole or CmdConsole closing
-----------------------------------------------------------------------------------
altOpenConsole(State = 1, Title.s = "Alternative Console", xColumn = 80, yRow = 300)- defaults to showing Console in Normal Mode (1) with "Alternative Console" for Title and Console Width (80) Height (300)
- opens in various states (0 = hidden, 1 = Normal, 2 = Minimized, 3 = Maximized)
- resizes the Console width/height
- opens a new Console with specified Title
altConsoleTitle(State = 1, Title.s = "Alternative Console")- defaults "Alternative Console" for new Title
- changes current Console's Title
altPrint(Text.s = " ", nRepeat = 1)- defaults one space
- option to repeat Text n times
altPrintN(Text.s = #Null$, nRepeat = 1)- defaults one newline
- option to repeat Text/Newline n times
altFillChar(Character, nLength = 1)- fills ascii Character n length
altFillColor(CharacterColor = 7, BackgroundColor = 0, nLength = 1)- defaults one character length of the deafult colors
- fills n character length to chosen colors (color codes same as PureBasic)
altConsoleColor(CharacterColor = 7, BackgroundColor = 0, Mode = 0)- default colors for new text (Mode 0) old text remains the same
- Mode 0: changes colors for new text / old text remains the same (color codes same as PureBasic)
- Mode 1: changes entire Console to chosen colors (color codes same as PureBasic)
altConsoleLocate(xColumn, yRow)- moves the cursor to the new x/y location
altReadConsoleData(xColumn = 0, yRow = 0, nLength = 0)- defaults reading the entire Console text
- reads the console text from x/y n length
altClearConsole(xColumn = 0, yRow = 0, nLength = 0)- defaults clearing the entire Console's text and colors
- clears the Console text from x/y n length
altNewConsole(State = 99, Title.s = #Null$)- defaults to showing Console in State from previous Console with Title from previous Console
- closes previous Console
- opens new Console with optional new State
- opens new Console with optional new Title
altInkey()- captures ascii key strokes showing the character key value
altRawKey()- shows the raw key code for ascii and non-ascii keys
altConsoleImage(ImageName.s = #Null$, nDelay = 1000)- defaults with an OpenFileRequester prompt and a transition Delay of 1000ms
- optional ImageName can be either path or path\filename
- translates the pixels from a *.jpg | *.png | *.bmp file to console characters
- nDelay is used to pause n milliseconds between images
altConsoleAnimate(hImage)- translates the pixels from a *.png file to console characters
- requires a sprite sheet with equally spaced x/y images or an animated GIF
altInput(Text.s = #Null$)- defaults a pause waiting for the Enter key to be pressed
- reads text written after the input (pause) location
- allows for Text to be included with the pause
- dispalys optional Text in bottom/left of visible Console
-----------------------------------------------------------------------------------
cmdOpenConsole(State = 1, Title.s = "Command Console")- defaults to showing Console in Normal Mode (1) with "Command Console" for Title
- opens in various states (0 = hidden, 1 = Normal, 2 = Minimized, 3 = Maximized)
- opens a new Command Console with specified Title
cmdChangeColor(CharacterColor = 7, BackgroundColor = 0)- defaults the Command Console to default colors
- changes the Command Console to chosen colors (color codes same as PureBasic)
cmdAddAlias(Source.s, Target.s, ExeName.s = "cmd.exe")- defaults alias commands to cmd.exe
- allows multiple commands to be combined then called using an alias
- alias commands can be used with any executable
cmdRunScript(Text.s, RunAndWait = #False)- defaults to passing commands without waiting for them to finish
- runs commands passed by Text with an option to wait for them to finish
cmdRunBatch(FileName.s = #Null$, RunAndWait = #False)- defaults with an OpenFileRequester prompt
- reads a .bat or .txt file line by line and runs the commands
- optional run and wait (will be applied to each command)
cmdReadConsole(nLeft = 0, nTop = 0, nRight = 0, nBottom = 0, nDelay = 0)- defaults reading the entire Command Console text
- reads the Command Console text from the left/top/right/bottom location
- delay the reading until the console is fully populated
cmdCloseConsole()- closes the Command Console
- this should always be called with a hidden Command Console
-----------------------------------------------------------------------------------
NOTE (Windows 10):If the animations show in full-screen:
- delete the Registry key:
HKEY_CURRENT_USER\Console-- the Console key will be recreated when changes are made to a console's properties
- set
cmd.exe (Command Console) to legacy mode from properties
-- don't set this option from the console created by the program
-- this option may not be available in earlier versions of Windows