English Amiga Board

Go Back   English Amiga Board > Coders > Coders. Language > Coders. Blitz Basic

Thread Tools
Old 27 November 2022, 19:20   #1
Registered User
Join Date: Dec 2012
Location: Vancouver/Canada
Posts: 621
How to check a DEL button is pressed


I am using AmiBlitz3. My code is like this retVAL$=Inkey$(1) where the key value is returned to variable retVAL$.

How do I take this variable retVAL$ and use it to compare if a person pressed the ESC key? Thanks in advance.
xboxown is offline  
Old 27 November 2022, 21:28   #2
Registered User

Daedalus's Avatar
Join Date: Jun 2009
Location: Dublin, then Glasgow
Posts: 6,082
You can look at the ASCII code of retVAL$ using Asc(retVAL$). This will give you the ASCII character code for non-printable characters such as escape, arrow keys, backspace and so on.
Daedalus is offline  
Old 27 November 2022, 21:43   #3
Registered User

DisasterIncarna's Avatar
Join Date: Oct 2021
Location: England
Posts: 804

ESC = 27
DisasterIncarna is offline  

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to check if Xfire is NOT pressed Brick Nash Coders. AMOS 6 22 July 2020 10:27
Amiga 4000 Right mouse Button always pressed esel support.Hardware 3 13 June 2019 02:12
Alfa Data trackball cursor won't move if button is pressed? fubsan support.Hardware 4 25 July 2015 10:33
Launch asl requester when button is pressed tolkien Coders. System 0 14 July 2015 13:36
WinUAE x64 2.2 & 2.3 closing when "Add HardDrive" button is pressed Thom87 support.WinUAE 4 26 September 2010 16:37

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT +2. The time now is 01:54.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2023, vBulletin Solutions Inc.
Page generated in 0.09375 seconds with 13 queries