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 

ADD_KEYBOARD_MONITOR@

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



Joined: 20 Jun 2007
Posts: 15

PostPosted: Tue Aug 21, 2007 10:20 pm    Post subject: ADD_KEYBOARD_MONITOR@ Reply with quote

Dear all,

I wrote a program to output a key code by calling ADD_KEYBOARD_MONITOR@, but it is not working as expected, please help!

Code:


      PROGRAM KEYBDKEY
      INCLUDE <windows.ins>
     INTEGER key
      COMMON key
     EXTERNAL cb_func
      INTEGER cb_func
      key=0
     call ADD_KEYBOARD_MONITOR@(cb_func)
1     if(key.eq.0)then
         goto 1
      else
        goto 2
      endif
2     call print_hex2@(key)
     PRINT *,key
     END


      INTEGER FUNCTION cb_func()
      INCLUDE <windows.ins>
      INTEGER key     
      COMMON key
      key = clearwin_info@('KEYBOARD_KEY')
      cb_func = 1
      END

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 -> Support 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