473,326 Members | 2,108 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

How get click event of hardware button of device ?

i am trying to get and fire some action on click of back button of device " <--" . but i can not able to get click event of device hardware button. please give me idea to get click event of device button.I am able to capture the key presses of virtual keyboard ..but not able to capture the hard keys.
please give me solution of this thread how i catch event of hardware button.
i am used HTC touch diamond 2 to run my application. and framework that i am used is VS 2005, sdk 6.0 with c#.
Nov 30 '09 #1
2 2467
RedSon
5,000 Expert 4TB
You are probably looking for some kind of WM_HOTKEY message that will either be from VK_TBACK or some other soft button like VK_TSOFT1 or VK_TSOFT2 this is all implemented by your device manufacturer, so you have two options:

Option 1: Implement a keypress reporter and everytime a button is pressed on the device it will report to you what the programmatic name of the key is.

Option 2: Contact HTC and ask them how they implemented their keyborad driver and how it reports back button presses.

Otherwise you can hunt around in MSDN until WM 8 comes out and you may not find an answer.
Dec 1 '09 #2
markmcgookin
648 Expert 512MB
I think if in the emulator if you hit a hardware key you will get a list of events for when a direction key is pressed... I THINK .... you might be able to capture keyboard input on this.. stick a breakpoint on that method and see if it fires and is ignored when a keyboard key is struck... you might then just need to get the ID/Index of that key.
Dec 3 '09 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

32
by: theodp | last post by:
Not to be outdone by Amazon's 1-Click patent, Microsoft snagged a patent from the USPTO Tuesday for a 'Time based hardware button for application launch', which covers causing different actions to...
21
by: news.btinternnet.com | last post by:
I can do this in IE myLink.click(); //Invoking the handler as if the user had clicked on the link themselves. I need to be able to do the same in Netscape Navigator, can anyone help ?
11
by: CW | last post by:
I have message entry screen that's causing me a bit of an issue. At the moment, there are 2 buttons, one is used to send message to another user (btnSend) and another is used to send messages to...
1
by: pmclinn | last post by:
The code below is generated by an application that allows you to put a Microsoft assistant on a webpage. I'm having a heck of a time trying to get this script to launch on a server side button...
41
by: JohnR | last post by:
In it's simplest form, assume that I have created a usercontrol, WSToolBarButton that contains a button. I would like to eventually create copies of WSToolBarButton dynamically at run time based...
0
by: Demetri | last post by:
I have created a web control that can be rendered as either a linkbutton or a button. It is a ConfirmButton control that allows a developer to force a user to confirm if they intended to click it...
110
by: alf | last post by:
Hi, is it possible that due to OS crash or mysql itself crash or some e.g. SCSI failure to lose all the data stored in the table (let's say million of 1KB rows). In other words what is the worst...
0
by: Shival | last post by:
Hi, I have a Device that will be used by dentist to take their paitient teaath pics. this Device is having a click button from which the device takes pics. The Device is configured to my OS...
7
by: Ben | last post by:
Hi I'm trying to setup a project that uses events. I'm creating a windows forms based application. The application interfaces to a DLL that controls a piece of external hardware, whenever an...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.