Bell (BEL) CTRL + H = CHR$(8) ◘ (BSP)CTRL + I = CHR$(9) ○ Horiz.Tab CTRL + J = CHR$(10) ◙ LineFeed(printer) (LF)CTRL + K = CHR$(11) ♂ Vert. INKEY$ will return Control + letter key press combinations as the equivalent control characters or bold function keys listed below:CTRL + A = CHR$(1) ☺ StartHeader (SOH) CTRL + B = CHR$(2) ☻ StartText (STX)CTRL + C = CHR$(3) ♥ EndText (ETX) CTRL + D = CHR$(4) ♦ EndOfTransmit (EOT)CTRL + E = CHR$(5) ♣ Enquiry (ENQ) CTRL + F = CHR$(6) ♠ Acknowledge (ACK) Some browsers may handle this character differently More information about ASCII Control CharactersUnicode Character Table Control Characters ** Control characters 8 to 13 and 28 to 31 can move text formatting when printed and do not display *** NBSP is a Non-breaking Space used to indent text.Character 7 will create a BEEP sound when printed in QB64 or an error sound in QBasic using a SCREEN 0 window. Useful for making file names harder to delete too. Characters 0(NULL) and 255(NBSP) can also be used to print spaces( 32). _CONTROLCHR OFF can also be used in QB64 to allow control characters to be printed without formatting the text. Control characters 1 to 26 can be used to simulate Ctrl + letter key shortcuts in Windows programs using _SCREENPRINT. _PRINTSTRING can print in QB64 Character 12 acts like CLS when printed. Character 11 vertical tabs the cursor back to top left position of page or screen. Character 10 moves the cursor or "line feeds" the printer head down one row. Character 9 will Tab space the cursor 8 column spaces when printed. Characters 9 thru 13 and 28 thru 31 can affect screen or file text placements and do not display the character when printed: Character 28 designates a File Separator. Returned when Enter key pressed. Character 13 is the cursor or typing "carriage return" to the start of the line on left side.
Ascii Control Characters Keyboard Map Code Character TableMoves the print cursor one row up. Character 30 designates a Record Separator. Moves the print cursor one space left. Character 29 designates a Group Separator. Novena to st joseph 9 dayCharacter 17, Device Control 1, is used with COM ports to mark the start of a transmission as "XON". Character 16, the data link escape(DLE) character, can designate that a control character is being sent from a COM port. Crlf$ = CHR$(13) + CHR$(10). Characters 13 and 10 can be combined to create the CrLf carriage return used in files or printing. QB64 can display all of the control characters without formatting the text using _PRINTSTRING. Moves the print cursor one row down. Character 27 ← is returned when the Escape key is pressed.Control character PRINT actions can be controlled using _CONTROLCHR OFF or ON in QB64.COLOR 14: PRINT "Press Control + letter key combinations."' * 90 88 67 86 66 78 77 60 62 63 * +72 +79 +80 +81 e' 122 120 99 118 98 110 109 44 46 47 49 50 51 r' Ctrl Win Alt Spacebar Alt Win Menu Ctrl ◄- ▼ -► 0Ins. Character 26 can be used to designate the end of a file. The character is NOT read. Don't read empty string values! In QB64 only, ASC(keypress$, 2) can return the second byte code. Warning: ASC cannot read empty INKEY$ string values! If the character returned is a two byte code, ASC will return 0. The second byte = RIGHT$(keypress$, 1) INKEY$ returns both bytes when two byte keys or key combinations are pressed.
0 Comments
Leave a Reply. |
AuthorGautam ArchivesCategories |