Download the free trial version
Basic4android Video
Features
Tutorials and manuals
Showcase
Screenshots

Go Back   Android Development Forum - Basic4android > Basic4ppc (Windows Mobile) > Questions (Windows Mobile)
Documentation Wiki Register Members List B4P Search Today's Posts Mark Forums Read

Questions (Windows Mobile) Post any question regarding Basic4ppc.

Trapping Other Keys

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-10-2008, 12:36 AM
Senior Member
 
Join Date: May 2007
Posts: 125
Default Trapping Other Keys

Hi. How can I trap keys like letters, numbers, and symbols using the Hardware library? E.G. If I press the letter a how can the lib catch this and fire the HardKeyPressed event? Thanks.
Reply With Quote
  #2 (permalink)  
Old 05-10-2008, 06:07 AM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 15,733
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

You should first change the form's KeyPreview property using the Door library (first example here):
http://www.basic4ppc.com/forum/offic...l-library.html

Afterwards use the form's KeyPress event to catch all keys.
Reply With Quote
  #3 (permalink)  
Old 05-10-2008, 06:35 AM
Senior Member
 
Join Date: May 2007
Posts: 125
Default

Hi Erel, Thanks for your quick reply. Is there a way to do this if the program's form doesn't have the focus, like the Hardware library let's you do with the HardKeys and arrows? Thanks.
Reply With Quote
  #4 (permalink)  
Old 05-10-2008, 07:20 AM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 15,733
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

Not that I can think of.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
ide and arrow keys dennishea Questions (Windows Mobile) 0 09-22-2008 09:45 PM
detect shift, alt and ctrl keys micro Questions (Windows Mobile) 7 07-30-2008 08:05 AM
Game and keys pmu5757 Questions (Windows Mobile) 13 06-01-2008 03:56 PM
Reading Registry Keys - Bug or Mistake? Raytracer Questions (Windows Mobile) 1 04-18-2008 04:31 PM
Using hw keys in MS Smartphone TomasNM Questions (Windows Mobile) 4 02-25-2008 03:30 PM


All times are GMT. The time now is 09:25 AM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0