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 

FEED_WKEYBOARD@ usage and limitations

 
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> ClearWin+
View previous topic :: View next topic  
Author Message
wahorger



Joined: 13 Oct 2014
Posts: 1217
Location: Morrison, CO, USA

PostPosted: Mon Jun 01, 2015 4:09 pm    Post subject: FEED_WKEYBOARD@ usage and limitations Reply with quote

I've been using FEED_WKEYBOARD@ successfully to feed in a <CR> into the keyboard buffer so my using program could take internal action on it.

Because the <CR> is sucked up by the ClearWin+ functions, the ENTER trap is useful to detect the usage, then take action. I use the key trap [winio@("%ac[Enter]&",enter_key)] to trap the usage, then feed the carriage return back [CALL FEED_WKEYBOARD@(13,ICODE)] for the using program to interpret it. Works great!

I now have a function called from the active ClearWin+ window, but the FEED_WKEYBOARD@ call has no apparent effect. I have also tried a couple of other keycodes that perform specific functions when detected, and they do not appear to be sensed as well. Indeed, it appears to confuse the key press message processing, causing the program to be unable to interpret any key press information.

I was wondering if the use of this function has restrictions, such as only being used when the current message being processed in ClearWin+ is key press message?
Back to top
View user's profile Send private message Visit poster's website
PaulLaidler
Site Admin


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

PostPosted: Mon Jun 01, 2015 4:56 pm    Post subject: Reply with quote

The main limitation with FEED_WKEYBOARD@ is that it can only be used with a ClearWin window. This is NOT the same as a ClearWin+ window.

ClearWin predates ClearWin+ and in ClearWin+ it is represented by %cw.
Back to top
View user's profile Send private message AIM Address
wahorger



Joined: 13 Oct 2014
Posts: 1217
Location: Morrison, CO, USA

PostPosted: Mon Jun 01, 2015 8:01 pm    Post subject: Reply with quote

Thanks, Paul.

This may help me "fix" the issue, or just move onward!!
Back to top
View user's profile Send private message Visit poster's website
LitusSaxonicum



Joined: 23 Aug 2005
Posts: 2388
Location: Yateley, Hants, UK

PostPosted: Thu Jun 04, 2015 4:25 pm    Post subject: Reply with quote

Might ADD_KEYBOARD_MONITOR@ be of some help?
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> ClearWin+ 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