Read Phone Keys pressed

Developers that are using Visual Basic or C# can open new topics here.
[CF development]

Moderator: Teksoft

Read Phone Keys pressed

Postby roadster » Mon Mar 01, 2010 8:51 pm

Hi everybody.

I am using visual studio 2005 and want to write an vb application for my htc kaiser on windows mobile 6.1 professional.

when I double click on the designers telephone button I get the following:

Private Sub Form1_KeyDown(ByVal sender As System.Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles MyBase.KeyDown
If (e.KeyCode = System.Windows.Forms.Keys.Up) Then
'Up
MsgBox("Up")
End If
If (e.KeyCode = System.Windows.Forms.Keys.Down) Then
'Down
End If
If (e.KeyCode = System.Windows.Forms.Keys.Left) Then
'Left
End If
If (e.KeyCode = System.Windows.Forms.Keys.Right) Then
'Right
End If
If (e.KeyCode = System.Windows.Forms.Keys.Enter) Then
'Enter
End If
End Sub

But what if I want to create an action on pressing the phone button or hangup button?

Do they have names I can use?

Is there a process in the background that prevents my application reading those keys? nothing happens what key I press...
roadster
TEK-Seeker
 
Posts: 15
Joined: Fri Mar 14, 2008 8:40 pm

Postby Teksoft » Mon Mar 01, 2010 9:29 pm

are you trying to intercept the hardware keys or ar you talking about your own application with some phone buttons?
Best regards,
Teksoft
www.teksoftco.com
Teksoft
Editors
 
Posts: 416
Joined: Wed Dec 10, 2008 10:26 am

Postby roadster » Tue Mar 02, 2010 10:31 am

I am writing an own application with your dyntapi.dll

I am going to kill the process cprogr.exe so I can use the red and green telephone keys.
are those keys hardware keys?
Is it possible to use them for own applications?
if not I could also use own buttons on my form but it would be cool to use these buttons
roadster
TEK-Seeker
 
Posts: 15
Joined: Fri Mar 14, 2008 8:40 pm

Re: Read Phone Keys pressed

Postby drewdoms11 » Wed Sep 22, 2010 8:01 am

It seems like you are trying to intercept with the phones applications. I am not sure if that is a wise idea because it might cause jamming on your other phones application. If I were you, I will just try to create my own codes if you want an animated buttons.
Last edited by drewdoms11 on Wed Oct 20, 2010 12:53 pm, edited 1 time in total.
drewdoms11
TEK-Newbie
TEK-Newbie
 
Posts: 1
Joined: Tue Sep 21, 2010 7:24 am

Re: Read Phone Keys pressed

Postby roadster » Wed Sep 22, 2010 10:30 am

Hi
I am working in health & social sector. For every contact I have a limited amount of time every month, so I wrote an app to measure time for each of my clients. If I am called or do have to make a call my app automatically measures time of using the phone with each client. My app warns me when I am spending too much time for specific clients.
I don´t get more payment, it´s a kind of fixed price... So spending too much time results in unpayed work. That´s why I wrote it... Of course it´s not for public use, only for me in private
roadster
TEK-Seeker
 
Posts: 15
Joined: Fri Mar 14, 2008 8:40 pm


Return to .NET Compact Framework

Who is online

Users browsing this forum: No registered users and 1 guest


cron