Hi all,
im trying to hook the volume up and down keys using the SetWindowsHook API.
im having some problems with getting the vk codes of the keys, on a couple of different states on the machine:
1. when I try to get the code when the camera window is up - i get a same code for volume up and down.
2. when i try to do the same with camera windows is not up - i get a different code for each button and different then the event i got in section 1.
does anybody has a solution for me?
thanks.
IIRC I think that the keyboard driver has special case handling for the volume keys - I remember dissecting the driver with IDA some time back.
Try having a pick through the disassembly to see if you can find the codes and handling directly in there.
It was possible to hook right into the driver, but it's messy.
V
Related
PLEASE...
This is a request from a newbie! But not only me but many others, could some one please point me in the direction for a KEYBOARD DRIVER for the universal which will allow simultaneous key to be pressed at one. (For example two of the directional keys pressed at the same time to go diagonally in an emulator)
...Is there any one who could create a Driver :?: :?:
There are others, including myself that are willing to donate money to the creator(s)
See the multiple posts within this thread:
http://forum.xda-developers.com/viewtopic.php?t=54028&highlight=keyboard
I want to find some things in the registry and perhaps run a clone of the device itself on the PC so that I can test some things out. I understand there is a way to emulate a device on the PC. Is that correct? How?
Also, I need a way to export the MDA registry so that it can be opened and searched within Windows XP. Is this possible?
Things I want to find initially in the MDA in the registry.
mapping for the green phone key among other keys
backlight for phone keys and keyboard keys.
Use a good registry editor or Visual Studio.
I use Kilmist. I understand Total Commander is good.
Export registry in standard PC format and then copy to pc, browse in notepad. Just DON'T import it by accident onto pc.
You can't just copy a registry into the emulator - they are based on different hardware designs. Most stuff will work, some is likely to screw up emulator. No permanent damage, but bare it in mind.
What device are you looking for these keys on?
I can tell you that the settings for backlight for green and red key and keyboard backlight aren't settled in the registry. Some settings there, but not all.. at least AFAIK.
V
vijay555 said:
Use a good registry editor or Visual Studio.
I use Kilmist. I understand Total Commander is good.
Export registry in standard PC format and then copy to pc, browse in notepad. Just DON'T import it by accident onto pc.
You can't just copy a registry into the emulator - they are based on different hardware designs. Most stuff will work, some is likely to screw up emulator. No permanent damage, but bare it in mind.
What device are you looking for these keys on?
I can tell you that the settings for backlight for green and red key and keyboard backlight aren't settled in the registry. Some settings there, but not all.. at least AFAIK.
V
Click to expand...
Click to collapse
IC... No wonder nobody had found a way to map them. However there is software that maps hardware keys for other devices. If not settled in the registry then where/what/how is the software changing them?
Hi all, where can I found a full descriptions of every single registry key & function/purpose of those key. Now I become interested to play with this setting. I know that are VERY DANGEROUS thing. Appreciate for help
zaidam said:
Hi all, where can I found a full descriptions of every single registry key & function/purpose of those key. Now I become interested to play with this setting. I know that are VERY DANGEROUS thing. Appreciate for help
Click to expand...
Click to collapse
And it's frowned upon by T-Mobile. Watch out for the phone police .
Now now, lets not scare any one.
Playing with registry on windows mobile device is only dangerous if you care about whats on that device and don't want to hard reset. Otherwise you can go ahead an experiment as hard reset will restore original reg settings.
Oh and as for the phone police, well they don't carry real guns do they?
But seriously there is no list of every reg key. Registry is a general settings database for the whole windows mobile OS and the apps on it. It was designed to replace a hoard of ini files.
Documentation of relevant settings is usually attached to documentation of what ever they control (if there is any such documentation) and since any app can write to the registry there may be settings no one ever documented (there certainly are undocumented settings for the system it self like NeverDorkMemory).
Guys, you should know what you're doing when playing with the registry. But it's always best to make a backup. You'll find it hard to irrepairably damage your phone (which is always fixable by a hardreset or rom flash) in the registy, but a backup is safer.
zaidam - seriously man, what do you think we do here? If microsoft gave us a list of every registy setting, a lot of guys would be out of a job, it'd be too easy! If you're brave enough, experiment with the registry and discover a new hack. If not, just browse around and see what's possible through the registry hacks.
trpenner - you answered your own question with a different answer. The keyboard can be remapped, quite easily. Some of it can be done though the registy, some requires apps like AE Button Plus. AEBP doesn't use the registy (I presume) because it requires a lower level of programming not exposed by the registry.
However, the red and green key are not mappable (AFAIK) through the registry alone.
V
vijay555 said:
Guys, you should know what you're doing when playing with the registry. But it's always best to make a backup. You'll find it hard to irrepairably damage your phone (which is always fixable by a hardreset or rom flash) in the registy, but a backup is safer.
zaidam - seriously man, what do you think we do here? If microsoft gave us a list of every registy setting, a lot of guys would be out of a job, it'd be too easy! If you're brave enough, experiment with the registry and discover a new hack. If not, just browse around and see what's possible through the registry hacks.
trpenner - you answered your own question with a different answer. The keyboard can be remapped, quite easily. Some of it can be done though the registy, some requires apps like AE Button Plus. AEBP doesn't use the registy (I presume) because it requires a lower level of programming not exposed by the registry.
However, the red and green key are not mappable (AFAIK) through the registry alone.
V
Click to expand...
Click to collapse
It's the red/green keys I am after. Maybe one day we someone smarter than I will be willing to take up the challenge.
As I said, they can certainly be reassigned through code, fairly easily, but not through the registry alone I believe.
V
trpenner said:
It's the red/green keys I am after. Maybe one day we someone smarter than I will be willing to take up the challenge.
Click to expand...
Click to collapse
Red and green buttons are mappable using the third party softs like AE button Plus. I am using it and I have mapped the red button to close (not minimise) the running application when pressed twice. You can also try...
c_shekhar said:
Red and green buttons are mappable using the third party softs like AE button Plus. I am using it and I have mapped the red button to close (not minimise) the running application when pressed twice. You can also try...
Click to expand...
Click to collapse
AE button plus.... THAT's hopefully what I was looking for. I'll check it out. Thank you SO much! What's the best checkbook app?
Hi there! Maybe somebody asked this already but I could not find it:
Is it possible to copy, cut and paste with HW keyboard shortcuts? I am used to have a CTRL key from another model but on the WIZARD I only can do it via the Software Keypad by tabbing on CTRL followed by "c", "v" or "x" ... - is there any trick or solution?
there are a few programs that allow you to do that the only one that I can recall that was free is from the same makers of magic button (transcreative).
unfortunately, I'm blocked from work due to websense...and its restriction from software downloading sites...but you cango to www.transcreative.com and look through their software. it's some sort of keyboard that will connect through an IP. I've tried it in the past and it works over wireless lan too.
Hey,
I'm an irssi junkie and that's one of the main reasons I wanted to get the X1.
I found that PocketPuTTy was the best SSH-client for Windows Mobile and it works pretty well. But I can't find a way to use pageup and pagedown in it.
In other Windows mobiles the keys are found at Fn+up/down arrow, but since there aren't arrowkeys in X1, it's a no go. Anybody have an idea how to get those functions available?
Another biggie was that the versions of the mobile that arrived to Finland are UK versions. That naturally means we don't have the äöå -buttons. There was a fix around to make the öäå available from áü-button, but the button doesn't seem to work in Opera nor in Irssi. Any way to fix that?
(And sorry if there have been posts about these matters before. I tried searching before posting new topics but couldn't find anything relevant)
You might use the arrow keys around the dpad for PgUp/Down, etc.
Doesn't work. I get the numbers 2,4,6,8 from the dpad
hey, how do you jump between channel/query windows in [email protected]? there's no alt/esc button so i dont know how to do that..
Hello,
I got a Sony Ericsson X1 Xperia. I must say I really like the platform.
I use PQzII (http://nicque.com/PQz/PQzII.htm) to bind the vol up / vol down keys to ctrl and alt. Then when I connect to my irssi screen I can cycle the querys using Ctrl + N (next window) and Ctrl + P (previous window). I haven't gotten the alt meta key to work yet tough :-(
So for now I just have an alias in irssi /alias g window goto.
So I can type /g X where X is the window number I want to jump to.
Anyone know how to get the pgup/pgdown keys?
Hi.
I have the same problem, can't send "alt + <digit>" combinations nor pgup/pgdown buttons.
Anyone can help us out here?
Bushman
I'm also interested in finding the page up and down! *subscribes to thread*
What do you guys use PuTTy for btw? I use it for MUD.
Please help us test it out and report bugs/issues. Thanks
Just search "adosbox" in Google, I am not allowed to post external URL here.
Any kinds of help are welcome
Hi, i downloaded this last night for one reason and one reason only (for now anyway) - to play championship manager and i managed to get it start a new game it took over an hour to do it and then simple things like changing pages takes over a min so it esentially unplayable.
Other that great work and i wish i could be of more help but im afraid ive never done any software programming in my life
Wow, this is perfect so far. I just tried cyberdogs on it and it ran amazing. The program is really easy to get running. Is there a way to mount hard keyboards to the controls?
Just tried it. works like a charm.
Yep, works awesome.
Sent from my GT-I9000 using XDA Premium App
I am really enjoying adosbox right now on my Transformer, but lack of 3.1 mouse support has saddened me to the point where I compiled from source myself. I have it working sort of (on the java end), but because the build screen size doesn't match with the actual screen size, I am having issues with the mouse not following perfectly. I would like to get mouse support working better for 3.1 devices (and probably better emulation going for pre 3.1 devices), but I need to edit some of the C files for that. Unfortunately I have not done much native code on Android, so I am running into problems compiling. The ndk-build script seems to fail on me with an error of "missing separator" in the SDL-1.2 make file. Sadly I have never used make so I don't know how to correct it.
Today I saw the build_instructions.txt in jni/application/dosbox/. Are you building through this instead of the ndk (do I need to get gcc ARM cross compiling installed on my linux box)? In either case where does the dosbox-0.74-cfg-pelyaSDL.tar.gz come from?
Any help you could give me in getting the native part to build would be appreciated. Then I can focus on getting some usability stuff working and throw patches your way.
P.S. The feedback page is broken.
Hi. That's great news.
I love dosbox an I appreciate your work.
If you don't mind I will post some issues here.
I've installed adosbox 0.2.5 on my Desire Z.
I've tried to run some apps and games.
Dos Navigaror: Usable.
1. Mouse trackpad emulation works quite well, however it only moves in x,y axis separately. No intermediate directions (I suppose the hardware does not allow it). Any possibilities to solve this?
2. Touch screen mouse movement works quite well - however with delay.
2a. Well, sometimes there is no mouse. I swing on the screen with no effect.
3. It does not respond to screen tap as a left mouse click. Well it works sometimes. I have no control on that.
3a It does not respond to double tap (double click) at all.
4. No possibility to bind/emulate arrow keys. I can't find such function in dosbox menus. ---edit --- I could bind some keys but... see the edit part down there.
5. On PC I've been using config to autostart Dos Navigator with dosbox start. How to do it on Android? I couldn't find .conf file on my device.
System shock: starts but unplayable.
1. I've got a slide show. I've increased the CPU cycle to 1000 even to 2500 with no satisfactory effect.
2. On screen mouse movement works but the cursor jumps into different position when tapping.
3. With no option for binding keys this game is 100% unplayable.
Hocus Pocus: works but no arrow keys.
1. It starts nicely.
2. It reacts on "FN" key - the hero is shooting.
3. However no hardware arrow keys makes the game unplayable. Moving with trackpad sucks so much that the game is unplayable.
Oxyd Magnum: Playable but not exciting.
1. It react on taping the screen.
2. On screen mouse works well but with some ugly delay. This takes out most of the fun.
So the main issues I see are the cpu speed, mouse delay and the hw keys binding.
You are making a great job.
However making dos games being fun on the phone needs good controls workaround. Without that - no fun.
Thank you.
Don't forget we appreciate your work.
-------------edit-----------
Keys binding:
The .dosbox\mapper-0.74.map file (the file for binding keys) can not be found from the phone level. It must be done from a PC level. It's not a big issue but what to hide the file for?
After rebinding left FN, left shift and tab keys Hocus Pocus is quite playable.
It would be nice if you provide us the list of numbers for HW keys on some devices.
I can't bind "menu" as right arrow. And I can't bind search, sym, and the two shortcut keys. They are left useles.
And binding some keys as arrows disables trackpad!
Sound:
No mater what number I set for cycles I can't make the sound to play smoothly.
Any suggestions?
Someone knowns the makefile system for adosbox "libapplication.so"?
Ive been trying for a long time to recompile adosbox for mips, and i still unable to compile that file, not even for arm.
Hello,
I am using aDOSBox to run QBASIC (yes I know there are "better" and "faster" interpreters/compliers, but some have bad issues, see one comment about writting files on X-11 BASIC, others have a max file size) with an external keyboard (so I can see the screen while typing - can you make the virtual keyboard transparent?).
I have found that some keys do not work nor processed correctly in this version (freshly gotten from Google Play), namely the "." when shifted (I get ":" every time, all other punction keys appear to be fine). At first I though this was a KCM problem (had problems with mismapped keys on a Droid X), but while I was briefly able to rooted my tablet (someone please read/question my post/question about the Azpen A701 rooting) I was able to view the generic.kcm and other kcm files (lost root right after this) and those files define the shift period combination correctly. Also I get a ">" when I hit that combination in the 920 Text Editor.
Function keys seem to send to Android key processes (opening/launching other apps) instead of work in the program. Insert, Delete, Home, and End do not seem to be working at all.