I have a form in an app on a Windows Mobile 6.5 device that I'm using to listen for an XButton1 KeyDown event, pretty simple stuff:
this.KeyDown += new System.Windows.Forms.KeyEventHandler(this.Form1_KeyDown);
now it all works fine and dandy except when the form is minimized. Then when you press the button on the device, nothing happens. For example, if I have the app open, open the start menu and then hit the button, the event isn't triggered.
I've tried looking up the Virtual Key for XButton1 but I can't find anything that appears conclusive.
Any idea on how I can get this button to fire its event while the form is minimized?
Related
hi,
actually, i can assign any of the phone buttons, but they still don't work in the game. anyone know how i can get it to work? registry/system hack or something?
thanks,
msafi,
What do they do when you assign and press the keys?
V
vijay555, they do nothing. nothing at all.
this problem is consistent not only with PocketNester, but also with any other application. the phone buttons aren't assign-able to any functionality. again, they may be assigned successfully, but they still woudn't work when you try to actually use them.
fixing this problem would add a lot to my device's functionality.
msafi: what device are you using, and what OS? You might consider setting these details in your profile to make it easier to respond, or post in a more specific thread. However, generally, consider using the application AEButtonPlus to make the red and green phone buttons assignable.
You can use my program VJKeyPress to assign certain keys to the red and green keys, and then assign them using PocketNester (hopefully).
V
vijay555, thanks for the reply. i''m using HTC Wizard with WM5 of course. AE button plus isn't compatible,
so in light of this new information, do you still recommend VJKeyPress?
thanks
Are you sure AEButtonPlus isn't compatible? I'm using a universal and it's ok, but I'm sure a few guys are using it on the Wizard.
However, if not AEButtonPlus, I think buttonMax might be compatible.
VJKeypress is merely to assign a notional key to the red/green buttons. These buttons normally generate an F4 and F5 (I think) keycode, but while the cprog.exe app is running, this will intercept them. So either kill the phone app (VJPhoneToggle will do that) or assign new keypresses to them using AE etc and VJKeyPress.
V
i tried closing the phone application by using VJPhoneToggle but that didn't produce the desired effect.
ae button plus works with HTC Wizard but it screws up the hold button.
any how, i tried ae button plus and was able to assign the green/red buttons to different functions. i tried assigning them to <None> then using them with PocketNester, but that didn't produce any good results. I tried assigning them <start menu> or <Ok/Close> and then assigning those in PocketNester by using the qwerty keyboard, but that still didn't work.
anyway, there is something i'd like to try. i want to assign the red button to a VJKeyPress which will press the Explorer key, and assign the explorer key to the button i want in the emulator.
the problem is, i don't know how to use VJKeypress. after i download and install the file, how do i run it with commandline shortcut? or what's a commandline shortcut?
thanks,
ok, i figured out how to use vjtools and command lines.
however, i couldn't determine the parameter number to pass to vjkeypress to simulate a hardware button press. for example, what is the parameter number that will simulate a press on the Explorer button of my HTC Wizard?
what i tried in PocketNester is: i assigned the Windows Key of my Wizard's qwerty to the B button of PocketNester. Then i assigned a vjkeypress.exe 91, which is a start menu click, to the red phone button, but that didn't produce the desired effect, of course, since i didn't really tie the red button to the Windows Key of my qwerty keyboard. i just made the two buttons have the same functionality!!
if i know what the Explorer button parameter is, i will try it.
I'm not really familiar with the keyboard of the Wizard, never used one.
There's obviously a long list of keycodes on my website, but have you tried assigning any test key and tried that in PocketNester? Obviously if the basic idea doesn't work, there's no point in you perservering with this route!
V
Hi Guys,
I've recently purchased Asus p320. The problem i'm facing is many applications don't have Exit like text message, destinator 8, etc...
The OK key on the PDA or the cross key on screen just minimize the apps. and they keep running in background. The only way to exit them is through task manager.
Is there any way to quickly exit them like I have a recording key on the side of phone which dosen't do anything, can I assign it to terminate application some way or if that's not possible can I assign this key to open task manager?
Regards,
Hi,
i look for it for a long time and i can't find it :
how to attribute a function to a button ?
In settings, there is no buttons available though there is 5 hardware buttons !!!
For exemple, i'd like to attribute task manager or task facade to the long press home button, is it possible ?
thanks
up...
nobody is interested in attributing hardware buttons ?
Yes I am interesting too
I used aebutton plus to assign MS Voice Command to long press windows button. That worked fine, although I haven't used it on any other buttons.
Well, the hardware buttons already have set functions. So assigning things to them would be a little bit complex within the settings. That's why they aren't there.
I imagine you would need to use a third party application, and even then you could only assign long presses to the keys.
Long press would be nice though
Pantaloonie, does everything run fine with aebutton and HD2?
Yes, it does what I want it to do, although as I said I only added long press windows key.
It was a little bit fiddly with aebp's small menus on the capacitive screen, but I got there after several attempts.
Now when I start the aebp program, I get an error message reading "Once you set AEBPlus to process Windows button you may also need to re-define following buttons also:"Button 1(Hold)", "OK Key"."
I haven't done as it says, and everything works perfectly.
Cool, thanks I might give it a spin then
Here's a guy who's tried AE Button Plus with HD2 pretty thoroughly it seems:
http://forum.xda-developers.com/showthread.php?t=603186
I just installed it and mapped the windows hard button with long press to task facade. It worked just fine, but it seems the button lost the original function which is to access the start menu on single tap. I dont mind it so much though, I might as well use the the soft start button in the upper left corner. The important thing is that multi tasking now works without having to go through the today screen.
Ok, I searched around for about an hour, and must not be using the right search term or something. Anyway,
I have an HTC HD2, and i'm trying to run gotomypc with it (and pandora). I can run both, but i have to map the hardware button to my input panel in order for it to come up in either application. Thats all well and fine, except i also like the default long press key option that brings up my voice command. (And for those that don't have an HD2, there is only 1 mappable hardware key). So i have to jump back and forth on button assignments to use applications.
So point is, i installed AE Button Plus, and it appears to be able to do the trick, yet i can't find what file to point the assigned long press button too. Where is "input panel"/aka SIP located at/what directory?
Or does someone have an easier suggestion for mapping a previously unassignable hardware key to the SIP?
Thanks in advance!
Hi guys,
My digitizer has died, and till the new one comes I was thinking of how I could use my T7272, I can write the SMS fine, but I can't send them out, cause the button is on the screen itself... is there a rom I could use freely w/o using the touchscreen?
P.S.
Is the digitizer hard to replace?
You could check out AE Button; it has some options like button presses that will activate soft buttons. I suspect you could send sms's using it. You could also try using mortscripts with AE button that will do stuff you need. There are some pretty simple scripts that will simulate screen taps, and you could assign them to a button push. I'd rather have a working touchscreen, though.
Here are some of the commands:
# 91: startmenu (on some devices it might be home button)
# 92: back key (not the backspace key but back key for closing applications which is available on some devices such as diamnd or blackstone)
# 93: menu key
#112: left softkey
#113: right softkey
#114: accept call (green button)
#115: hang up (red button)
#117: volume up
#118: volume down
#126: data disconnect
#127: toggle speaker
#133: devicelock
#223: power off
I use one to lock the device. Basically, you just put this:
Code:
sendspecial(133)
in a .txt file, and change the extension to .mscr. I call it Lock.mscr, and I have it assigned to a few different actions (like when a call comes in, a script locks the phone). So, sendspecial(112) and sendspecial(113) might help you out. There's also one for hitting 'Ok' in popups, which would probably work for you. I can't find it, though (google 'sendspecial' and you'll find it, it's all on msdn).
Anyway, if you install mortscript (maybe you already have it) as well as AE Button, you could assign button pushes to carry out those actions. Just stick the scripts somewhere easy, like the start menu, and it will be easy to set up.
If you want to get more complicated, there are also mortscript commands that simulate button pushes on the screen. You could set one up that would do just about anything. Also, SK Schema does similar stuff. You can write fairly simple sequences of button pushes that will do just about anything. This is one that I use that runs SK Tools Pim backup (I have it scheduled to run every night in the middle of the night).
#r(\windows\sktstart.exe) #p(STH:20)
#tap(146;602) #sleep(15000)
#tap(110;533) #sleep(500)
#tap(339;455) #sleep(500)
#tap(126;604) #sleep(500)
#tap(114;84) #sleep(500)
#tap(146;99) #sleep(5000)
#tap(310;254) #sleep(90000)
#tap(433;602) #sleep(10000)
#pwr() #sleep(10000)
Click to expand...
Click to collapse
Basically, the backup tool gets launched in line 1, then there are a bunch of screen taps (w/ delays, to make sure everything is ready) in the menus to get the right options selected, followed by turning the device off.
I`m not sure... But i saw somewhere app that emulate a mouse (cursor) and you will be able to control this mouse with your D-pad... But I can be wrong...
I can't install that mortscript w/o the touchscreen though..damn it..: )..
Get MyMobiler, and use it to run your device off of a pc. You should be able to get that working.