how to access the call and end call button - Windows Mobile Development and Hacking General

how do you access the call and end call buttons? Using the GAPI when i go for A and B it gets the buttons up top which sucks for programming a game... any ideas?

i also am interested it doing this, any one have any insight? Possibly C# code, or C++?

If it helps the button codes i get from Pikup button is "114" and Hangup is "115"

use game api gx.dll
Danny-B- said:
If it helps the button codes i get from Pikup button is "114" and Hangup is "115"
Click to expand...
Click to collapse
hello
some keys on a wm device are always catched by the OS, see winuserm.h. To get these keys visible in your app you have to use the game api. Simply add gx.h to your c++ code and at the start of your app use GXOpenInput(). Before your app quits, use GXCloseInput. Aslong as your app runs in foreground, all keys will be delivered to your app. BTW: the phone keys are F1 and F2.
regards
josef
see also w*w.hjgode.de/dev/newsletter

Related

Keycodes

I'm trying to set up Duke Nukem 3D on the Wizard and can't find the key names or codes for various keys, like the camera, call, hang up, backlight etc...
Any ideas?
I think most of the hardware keys are in the normal range of F1, F2 etc.
Eg I think the hangup key is like F4.
Check here:
http://www.vijay555.com/index.php?Releases:VJKeyPress:Key_List
V
Aren't the pickup and hangup keys hard-bound in Windows Mobile to the phone options, and the nagup key is always set to hangup the phone call, or kill the current app? I've always found that I can minimise ANY running app by hitting the hangup key. Which has its uses, but is wholly impractical for mapping keys to functions in games and stuff.
christopherwoods: no the hard keys aren't mapped to the phone. Well, in a way they are, but not internally. Basically, if the phone app, cprog.exe, is working, it will intercept keys F3 and F4 and interpret those as dial/hangup keys. So using my program VJKeyPress you can simulate red and green with VJKeyPress 114 or 115
However, if you redefine the function of those keys, eg using a program like AE Button Plus, if you then simulate pressing F3 or F4, then it will perform the function chosen in AEButtonPlus. So, the keys can be overriden. Using VJKeyPress 114 will not simulate the phone key etc.
I've always found that I can minimise ANY running app by hitting the hangup key. Which has its uses, but is wholly impractical for mapping keys to functions in games and stuff
Click to expand...
Click to collapse
In normal use the red button doesn't minimse windows, it just jumps to the today screen I think. It certainly doesn't close windows. To close windows with the hangup key, check out my program VJOkButt.
Most programs written with GAPI will override the hardware key settings. However, if your game doesn't, use AE Button Plus to remap it to any other key press (perhaps by using my VJKeyPress). Then your game won't have fits when you press it.
V
Yeah, when I said minimise I meant that it shows the Today screen, and apps behave in the same way as if they're closed using the X - they don't really close, I know that for certain because... Well, that's how Windows Mobile (stupidly) behaves, and Switch shows them as still open.
I'd forgotten about your programs which can intercept keypresses and remap stuff... I must check those out sometime.
Does anyone know what I actually put into the config file, as in, the number or the words from that list or what?
mrsnoopy: I've never tried your game. Quote a few of the settings here and it should be easy to guess. I'd imagine the number though, not the words. Eg escape should always be 27 (or 1B if it's in hex).
V
awesome game in its day
used to play it on my 486 with 1 meg vga ram , yea !
Does it still have the taunts when u used to press an F key (in LAN multiplayer) come get some 2: who wants some 3:what are you some bottm beating scum sucking alge eater 4:it hurts to be you 5: your going to pay for that 6: wasted
cant think of any more .
much better in multiplayer , that work on the phone?

Hardware Ok/Close actually closes the app

Hell folks, I have a bit of a challenge for you all. I know that there are alot of programs out there like magic button that will actually close an application, rather than minimize it, when you hit the X button in the top right. Unfortunately, I can't seem to find any app that provides this functionality to a hardware button mapped to the ok/close function.
Does anyone know of a registry tweak or an add-on that makes an ok/close hardware button actually close an app?
Thanks.
In SPB Pocket plus is an close application/link what you can assign to a key.
ajpprc: VJOkButt.
Major new release hopefully coming tonight as well It took me "bally" ages...
V
RE
You can use Vito TaskSwitcher, however, you'll need Vito ButtoMapper too in order to map :lol:
Xbar can do that. And it doesn't take up a button because it uses the "enter" button of your D-pad. Very clever!
Wouter

Program assign to button

Hi, I am using Atom, I would like to know is there any tweak which can modify the button about the END PHONE (i.e. messaging) to another program I want, example the Calendar, or Pocket Informant. Thanks
AEButton
Has anyone been sucessful with remapping the start button (right button under the phone green button) :?:
no. it's impossible. Remaping programs doesn't see the start button
AEButton Plus 2.4.1
taiseer999
Well about remapping the Start Menu button--AEB+ allows you to add buttons so you can change this button this way, but I've not been able to get it fully functional. When you remap it, it displays the start menu for a fraction of a second then does the appropriately assigned action. It works, but w/this weird glitch.
I hope this helps!
Re: AEButton Plus 2.4.1
pelicantacos said:
taiseer999
Well about remapping the Start Menu button--AEB+ allows you to add buttons so you can change this button this way, but I've not been able to get it fully functional. When you remap it, it displays the start menu for a fraction of a second then does the appropriately assigned action. It works, but w/this weird glitch.
I hope this helps!
Click to expand...
Click to collapse
pelicantacos
Thats exactly what I have been seeing and no success in preveting the start funtion from not appearing :?

Need dev help with reading volume up/down keys

Hi !
I'm writing an app (which i will post here for free ofc) and i'm trying to read the volume up/down keys. I also need to stop them from displaying the volume slider and changing volume while my app is running, i.e. inhibit default behaviour. And since my app will run in the background i want the rest of the keys to function as normal.
If you can help, please post here.
I would really like concise answers, not something like : "try to hook the keyboard driver and see what you get".
Don't ask what my app will do, i won't tell until it's ready (a beta will be available as soon as i can read the keys, i got the rest of it ready).
Thanks,
RPG
Sorry I will give you a "try to hook the keyboard driver and see what you get" like answer ;-) but did you get that keys were hardware specific ?
Sometimes those keys are mapped to Up and Down.
I have no problem in asking the user: press volume up key, press volume down key, so that it works on any machine (or maybe he wants to use different keys). The problem is that GetASyncKeyState for example has no idea those keys are pressed. And even when it works for some other keys (GetAsyncKeyState reads them), those keys still go to the system and stuff happens (like i said, i want to inhibit default behaviour).
Don't post if you don't know what GetASyncKeyState does
RPG0 said:
I have no problem in asking the user: press volume up key, press volume down key, so that it works on any machine (or maybe he wants to use different keys). The problem is that GetASyncKeyState for example has no idea those keys are pressed. And even when it works for some other keys (GetAsyncKeyState reads them), those keys still go to the system and stuff happens (like i said, i want to inhibit default behaviour).
Don't post if you don't know what GetASyncKeyState does
Click to expand...
Click to collapse
I'm guessing C++, which I have no knowledge in, however, briefly looking at the MSDN article on GetASyncKeyState, I'd guess the list on vijay555s site for VJKeyPress uses the same key codes...
So,
Code:
VK_VOLUME_DOWN 174
VK_VOLUME_UP 173
from here
l3v5y said:
I'm guessing C++, which I have no knowledge in, however, briefly looking at the MSDN article on GetASyncKeyState, I'd guess the list on vijay555s site for VJKeyPress uses the same key codes...
So,
Code:
VK_VOLUME_DOWN 174
VK_VOLUME_UP 173
from here
Click to expand...
Click to collapse
Like i said, i already tried that. Doesn't work.
RPG0 said:
Like i said, i already tried that. Doesn't work.
Click to expand...
Click to collapse
Then, I'm sorry, but I'm clueless
bump !
I'm really close, i just need the way to read the keys
RPG0 said:
bump !
I'm really close, i just need the way to read the keys
Click to expand...
Click to collapse
Do you need them within your program, or to be redirected to your program (as in, the volume keys open your program)? In the Diamond volume control app, there are some reg keys for opening that program rather than the WM volume control applet...
I need them in my program.
Right now i do have them redirected to run my prog, for tests, but it's not the way i want it.
What i do need is a way to know in my prog when that key is pressed and when it is released. Again, my app will run in the background, so i need the rest of the keys untouched.

How dows one add/change a hardkey?

Hi, I did a lot of searching for this but I can't come up with any solution (which is odd as it strikes me to be a problem).
I bought voice commander yesterday as I'm on the road for my company a lot and all that works perfectly. So then I tried assigning it to a hardkey (is that the right word?) on my Touch HD (uk).
Apparently some incompetent interaction designer must have thought that it was a brilliant idea to only have one hardkey and bind that hard to making calls as well. Result? Me accidentally dialling 6 people out of the 7 times that I tried using it. I can only imagine what a horror it must be when I'm driving.
So here is the question; how do I add hardkeys to the buttons menu in the settings so I can assign stuff to those buttons? Any button really, preferably the 'hang up' button. Currently there is only 'button 1' but there must be a way of tapping into those other buttons.
I'm not shy of reg editing (it has to be a key or something in the registry) or anything like that but I can't seem to find a regeditor.
I'd try the HTC helpdesk but they don't know anything really beyond the standard questions (at least not the last 3 times I tried).
Zeus2.0 said:
Hi, I did a lot of searching for this but I can't come up with any solution (which is odd as it strikes me to be a problem).
I bought voice commander yesterday as I'm on the road for my company a lot and all that works perfectly. So then I tried assigning it to a hardkey (is that the right word?) on my Touch HD (uk).
Apparently some incompetent interaction designer must have thought that it was a brilliant idea to only have one hardkey and bind that hard to making calls as well. Result? Me accidentally dialling 6 people out of the 7 times that I tried using it. I can only imagine what a horror it must be when I'm driving.
So here is the question; how do I add hardkeys to the buttons menu in the settings so I can assign stuff to those buttons? Any button really, preferably the 'hang up' button. Currently there is only 'button 1' but there must be a way of tapping into those other buttons.
I'm not shy of reg editing (it has to be a key or something in the registry) or anything like that but I can't seem to find a regeditor.
I'd try the HTC helpdesk but they don't know anything really beyond the standard questions (at least not the last 3 times I tried).
Click to expand...
Click to collapse
Have you tried AEBPlus?
That requires me to run the program in the memory constantly doesn't it (and it's not freeware iirc)?
Zeus2.0 said:
That requires me to run the program in the memory constantly doesn't it (and it's not freeware iirc)?
Click to expand...
Click to collapse
Yes, it does takes some resources, but it gives a lot more functionality and improves the phone greatly.
For example,
You could ingle press to forward/repeat songs or change channel in FM radio, and long press to change volume.
You could single press the green button to either do nothing or start your VOIP phone if you have one, and double press to run the regular phone. (this prevents accidental dialing the last number)
Double press the back key to close active application
etc.
Hmmm, it's a last option solution for me. It's more a matter of principle. When I buy a phone like this, I expect to be able to have access to all buttons, not just one. It's a bit stupid that I need to run an extra app to actually use my phone properly. I mean; didn't anyone at htc think that just having one button is stupid and then assigning it to the dial button is just braindead thinking?
Right, gave that program a go but it doesn't seem to be working for me.
Zeus2.0 said:
Right, gave that program a go but it doesn't seem to be working for me.
Click to expand...
Click to collapse
That's because you're not familiar with how to use it yet, I think.
This is how yo use that software:
Say, you want to reassign the up volume button. First you might note that the initial defaultsetting is "do not touch button".
press and HOLD the up volume entry until
the screen for altering the setting appear.
Once that happens, the rest should be intuitively enough.
Remember later to save and exit. No need to soft reset.

Categories

Resources