forums.silverfrost.com Forum Index forums.silverfrost.com
Welcome to the Silverfrost forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

keyboard

 
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> General
View previous topic :: View next topic  
Author Message
yujsg



Joined: 20 Jun 2007
Posts: 15

PostPosted: Tue Sep 04, 2007 10:49 pm    Post subject: keyboard Reply with quote

Dear all,

I am trying to write a subroutine in Clearwin FTN95, which can return the same two-byte keycode (scan code + ASCII code) as "GET_EXTENDED_CHAR@" in FTN77 for DOS. I am trying to use "ADD_KEYBOARD_MONITOR@" with call-back functions containing CLEARWIN_INFO@('KEYBOARD_KEY'). But it returns either a scan code (if high byte is 1) or an ASCII code (if high byte is 0). Is there a way that I could get both key codes at the same time? Then I can combine them together.

For the routine "FEED_WKEYBOARD@(KEY,ERROR)", it takes only the ASCII code for the key to be inserted. But for function keys, their ASCII codes are 0, how can we feed them into the keyboard buffer? Thanks.
Back to top
View user's profile Send private message
PaulLaidler
Site Admin


Joined: 21 Feb 2005
Posts: 7925
Location: Salford, UK

PostPosted: Wed Sep 05, 2007 8:59 am    Post subject: Reply with quote

There is no quick and easy answer to this question.

The recommended approach is to provide keyboard input via winio@ and %rd or %rf or %rs etc.

It is possible to mirror the old DOS approach but it can be very tricky (others may have more experience of this). Are you sure you have to go down this route?

I think I have already listed the available functions in this forum. Try a search in this forum using the name of one of the DOS routines.
Back to top
View user's profile Send private message AIM Address
Display posts from previous:   
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> General All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group