English Amiga Board


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

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

Hello,

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, 22:28   #2
Daedalus
Registered User

Daedalus's Avatar
 
Join Date: Jun 2009
Location: Dublin, then Glasgow
Posts: 5,986
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, 22:43   #3
DisasterIncarna
Registered User

DisasterIncarna's Avatar
 
Join Date: Oct 2021
Location: England
Posts: 737
https://www.asciitable.com/

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 11:27
Amiga 4000 Right mouse Button always pressed esel support.Hardware 3 13 June 2019 03:12
Alfa Data trackball cursor won't move if button is pressed? fubsan support.Hardware 4 25 July 2015 11:33
Launch asl requester when button is pressed tolkien Coders. System 0 14 July 2015 14:36
WinUAE x64 2.2 & 2.3 closing when "Add HardDrive" button is pressed Thom87 support.WinUAE 4 26 September 2010 17: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 22:39.


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