Thread View: alt.lang.basic
4 messages
4 total messages
Started by Peter G. Millard
Wed, 05 Aug 1992 16:36
Easy way to trap all arrow keys?
Author: Peter G. Millard
Date: Wed, 05 Aug 1992 16:36
Date: Wed, 05 Aug 1992 16:36
14 lines
1136 bytes
1136 bytes
In quickbasic 4.5, is there an easy way to trap all of the arrow key combinations? By this I mean, all the combinations when the Num-Lock and the Caps-Lock is down, for instance. Normally, this would entail constructing seperate user-defined keys, then trapping them. This would work, but in order to trap all of the combinations, there are not enough user definable keys left :)... Any help in this matter would be appreciated. -- ****************************************************************************** Peter G. Millard * INTERNET: v057n5um@ubvms.cc.buffalo.edu SUNY @ Buffalo * : millard@acsu.buffalo.edu *****************************************************************************
Re: Easy way to trap all arrow keys?
Author: Phillip Cooper
Date: Thu, 06 Aug 1992 18:01
Date: Thu, 06 Aug 1992 18:01
23 lines
1631 bytes
1631 bytes
In article <BsIrHC.A78@acsu.buffalo.edu> millard@acsu.buffalo.edu (Peter G. Millard) writes: >In quickbasic 4.5, is there an easy way to trap all of the arrow key >combinations? By this I mean, all the combinations when the Num-Lock and >the Caps-Lock is down, for instance. Normally, this would entail constructing >seperate user-defined keys, then trapping them. This would work, but in order >to trap all of the combinations, there are not enough user definable keys >left :)... > >Any help in this matter would be appreciated. > >-- There is no easy way to do this. The only way to get this effect is to set up a polling loop using the inkey$ function, and look at the extended keycode returned by the arrow key. The only problem is that you cannot distinguish between the arrow key on the numeric keypad and the dedicated arrow keys. Normally, this would not be a problem because you would expect both keys to behave identically anyway. If you are a registered QuickBasic owner, you can call our programming support line (900)896-9999 for example code on this process. Alternatively, you can access the entire Microsoft knowledgebase on Compuserve by typing "Go MDKB" at any prompt. Query on "inkey$ trap quickbasic". Phil Cooper
1-900 number support
Author: ST21519
Date: Mon, 10 Aug 1992 03:29
Date: Mon, 10 Aug 1992 03:29
11 lines
1025 bytes
1025 bytes
>arrow keys. Normally, this would not be a problem because you would >expect both keys to behave identically anyway. If you are a registered >QuickBasic owner, you can call our programming support line (900)896-9999 >for example code on this process. Alternatively, you can access the >entire Microsoft knowledgebase on Compuserve by typing "Go MDKB" at >any prompt. Query on "inkey$ trap quickbasic". What information do we need to be prepared to offer when dialing this number? And what is the charge for this access? (1-900 number) Thanks!
Re: 1-900 number support
Author: Phillip Cooper
Date: Tue, 11 Aug 1992 18:10
Date: Tue, 11 Aug 1992 18:10
23 lines
1577 bytes
1577 bytes
In article <1683E12E4F.ST21519@VM.CC.LATECH.EDU> ST21519@VM.CC.LATECH.EDU writes: >>arrow keys. Normally, this would not be a problem because you would >>expect both keys to behave identically anyway. If you are a registered >>QuickBasic owner, you can call our programming support line (900)896-9999 >>for example code on this process. Alternatively, you can access the >>entire Microsoft knowledgebase on Compuserve by typing "Go MDKB" at >>any prompt. Query on "inkey$ trap quickbasic". > >What information do we need to be prepared to offer when dialing this number? >And what is the charge for this access? (1-900 number) > >Thanks! At this time, you do not need anything. No registration number, etc. That may change in the near future, however. The charge is $2.00/minute with the first minute free. If you are blocked from calling 900 numbers, there is a credit card line available where you are charged a flat fee of $20.00 for the call. That number is (206)646-5102. Again, this is for programming consulting services. Not simple startup or installation problems. For those issues, you can call (206)646-5101. Phil Cooper
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads