Hi George, On 22/01/11 10:22, gdgqler wrote: > I think you have to test at the start of the hit routine ahit0 what key was > pressed. Any key at all pressed while the pointer is in the application > window will cause the hit routine to be called. D2 will contain the > uppercased keystroke with SPACE, ($20), converted to 1 and ENTER ($0A), > converted to 2. So, if you wanted pressing "M" to do add to the count of hits > you should check that D2.L = $4D. I'm not bothered by which key causes the counter to go up by one - it's a simple demo to show an application sub-window in action. I just found it odd that certain things causes a HIT while others seemed to cause two.
I may, if I can be bothered, adapt the code to dump the registers on the first and second hit and print them out to screen on the subsequent ones - just to see the contents of the registers on entry to the "mysterious" hits. On the other hand, I may not! ;-) Cheers, Norman. -- Norman Dunbar Dunbar IT Consultants Ltd Registered address: Thorpe House 61 Richardshaw Lane Pudsey West Yorkshire United Kingdom LS28 7EL Company Number: 05132767 _______________________________________________ QL-Users Mailing List http://www.q-v-d.demon.co.uk/smsqe.htm
