APPLICATIONSDIVERS ★ RSX PUTKEY (AMSTRAD ACTION) ★

RSX PutKey (Amstrad Action)Applications Divers
★ Ce texte vous est présenté dans sa version originale ★ 
 ★ This text is presented to you in its original version ★ 
 ★ Este texto se presenta en su versión original ★ 
 ★ Dieser Text wird in seiner Originalfassung präsentiert ★ 

RSX of the mouth!

This month's entry for your toolbox is a simple command called |PUTKEY. It harnesses a feature of the Amstrad which you can't normally access from BASIC - the ability to pretend that you've pressed a key (you can only use it once before you read a key again, mind you).

I found this very useful recently while writing a database. I tested for keys being pressed with INKEY$ (CTRL-S to save, CTRL-L to load, that sort of thing), and if the key was a character between A and Z, the program had to jump straight into the field editing mode, as this was the character to be put in the field.

Problem: the A-Z key had already been read, and so the consequent INPUT command wouldn't pick it up. Solution: use this command to pretend the key had been pressed again.

The syntax is elementary; if a$ contains the character you want to put back, use |PUTKEY,@a$. Enjoy.

By the way, if you've got any toolbox routines, you can send them along to Forum or, if they'd be of value to those learning assembly, you could send them to Assembly Line.

AA

★ PUBLISHER: Amstrad Action
★ YEAR: 1994
★ CONFIG: 64K + AMSDOS
★ LANGUAGE:
★ LiCENCE: LISTING
★ AUTHOR(S): ???
 

★ AMSTRAD CPC ★ DOWNLOAD ★

Type-in/Listing:
» RSX-PutKey    (Amstrad  Action)    ENGLISHDATE: 2023-12-12
DL: 47
TYPE: ZIP
SiZE: 3Ko
NOTE: Supplied by www.cpcwiki.eu ; 40 tracks
.DSK: √

★ AMSTRAD CPC ★ A voir aussi sur CPCrulez , les sujets suivants pourront vous intéresser...

Lien(s):
» Applications » RSX Keywords
» Applications » RSX Function Key Lister (Popular Computing Weekly)
» Applications » RSX Key-Arrow
Je participe au site:
» Vous avez des infos personnel ?
» Vous avez remarqué une erreur dans ce texte ?
» Aidez-nous à améliorer cette page : en nous contactant via le forum ou par email.

CPCrulez[Content Management System] v8.7-desktop/c
Page créée en 519 millisecondes et consultée 1254 fois

L'Amstrad CPC est une machine 8 bits à base d'un Z80 à 4MHz. Le premier de la gamme fut le CPC 464 en 1984, équipé d'un lecteur de cassettes intégré il se plaçait en concurrent  du Commodore C64 beaucoup plus compliqué à utiliser et plus cher. Ce fut un réel succès et sorti cette même années le CPC 664 équipé d'un lecteur de disquettes trois pouces intégré. Sa vie fut de courte durée puisqu'en 1985 il fut remplacé par le CPC 6128 qui était plus compact, plus soigné et surtout qui avait 128Ko de RAM au lieu de 64Ko.