HButton for smartphone - Windows Mobile Development and Hacking General

Hi,
I created HButton for smartphones. BUT I have no smartphone so I developed it on smartphone emulator.
I will be very gladly, if there is someone who can test it.
Please note: Test it on your own risk - never been run on real smartphone.
thanks
Hundera

Great! While I have no time to test it right now, I'll frontpage the news if it turns out to be working!

when i get to the assign window, i get stuck there, don't know what's the next step

oldsap said:
when i get to the assign window, i get stuck there, don't know what's the next step
Click to expand...
Click to collapse
Hi,
I created it little messy. It has to be changed before official release.
* Using * assign it to any HW button. I don't know if there will be name and icon of selected button or just something like "unknown 40C1".
* Create list of applciations
* Left and right button select preferred application​* enter to add it to list​* Press OK.
thats all. Now you should be able to start application using HButton....

What now?
I managed to do almost everything:
I assigned applications to the list of button1,
I clicked on '*', and so
Assigned to (*) displays "Unknown 40C1"
When I run the application Button1 manually, the application I chose for Button1 is run.
But what now? What do I have to press to make the application run? What is button1? I tried all buttons, pressing for various lengths of time, but I can't get it to run.
Do I need to edit the registry so that the application "Button1" is assigned to some button?

Hi,
at first thanks for help.
"Unknown 40C1" means - there are registry part about this button. In SPh, there's missing names of buttons - so name is unknown.
I has no SPh, only emulator. I checked registry and there is all ok - only names are missing. All flags and path to applications that should be started are similar to pocketpc.
These registry settings are altered by my program so HButton1 should be started by button with code "40C1". What button it is - I really don't know. That's what I need to test.
But as you describe it, it looks like that these settings are ignored.... So Where is settings of button's behavior on smartphone?!?!
ghostwheel said:
I managed to do almost everything:
I assigned applications to the list of button1,
I clicked on '*', and so
Assigned to (*) displays "Unknown 40C1"
When I run the application Button1 manually, the application I chose for Button1 is run.
But what now? What do I have to press to make the application run? What is button1? I tried all buttons, pressing for various lengths of time, but I can't get it to run.
Do I need to edit the registry so that the application "Button1" is assigned to some button?
Click to expand...
Click to collapse

not totally sure
I'm no expert in this.
If I understand correctly, one way to do it is through links in the \windows directory,
so
\windows\short_MSG
is a link to the program called when the message button is pressed
\windows\short_Camera, and short_IE
are for camera and explorer button.
But I think there are also other places to set these. And some phones allow long_MSG,IE,Camera links for long button press - not mine.
I tried to copy the Button1 link to short_MSG, and that managed to run the first command in the list for button1, but not the next on a longer press. (And it still launched the message program first, so there must be a second place that determines what is launched...)
Maybe people in the smartphone forum will have more info...
All this was on an s620 WM6.1

just a few more comments
Now that I can get HButton to partially run, I have a few comments:
I'm not exactly sure why, but going from HBSetup to configure buttons 1 and 2 takes a really long time. HButtonTask is much shorter. Maybe it is because a list of all programs is generated, and this takes time? In any case, maybe one could display a message "please wait..." - the first time I thought the program had crashed.
Pressing left (instead of right) when the bottom selector in HButton1 setup shows <None> crashes the program (ArgumentOutOfRangeException)
In HButtonTask setup there are two arrows below Custom delay (I think to chose the delay), but no number is displayed, and pressing left-right only toggles the boxes.
<Start Menu> doesn't work. <Clock>, <Toggle BT>, <Quit>, <Today> do work. <Back> behaves a bit differently than the Back key - it switches between tasks, instead of screens - but that's ok and can be useful!
In the HButton1/2 setup screens, I would change the left softkey to "save" instead of "ok". Too often I pressed that button instead of the center/enter button to change the action on the list. Because it takes ~10 seconds to enter the screen again, it is quite annoying....

Hi
I am really interested in this project if is still under developement

Related

Remap Softkey and volume button

Hi,
Here is my contribution. The program will remap the softkey buttons and volume buttons:
tap soft key = orginal soft key functions
tap and hold left soft key = start menu
tap and hold right soft key = close/ok button
volume slider at the left = page up/down
You can also use the DPAD to do some extra actions in phone app.
NOTE: If you got notification error, please run smartskey.exe and then run smartskey.exe to close the app. The program will now close all notification that relate to smartskey when it is closed.
Update:
0.60 (2007-08-23)
Fixed: Make DPAD function work on WM6
Fixed: Fix DPAD function not compatible with TomTom
0.56 (2006-11-17)
Fixed: Fix compatibility with CeleDial
0.55 (2006-11-15)
Fixed: Compatible with CeleDial
Fixed: DPAD function will call default Contacts/Text Messaging instead of calling original Contacts/Text Messaging directly. So if you have installed any third party replacement, it will be called when DPAD in Phone app is pressed.
0.54 (2006-11-06)
Fixed: Endless loop when using “OK” button of keyboard in Wizard.
0.53 (2006-06-23)
Fixed: DPAD on will not affect TomTom and calendar
Fixed: remove notification routine will remove all paths so that it will not prompt wrong notification path anymore when user change the location of the smartskey.exe
0.52 (2006-03-26)
Fixed: DPAD functions still apply in SmartDial dialog.
0.51 (2006-03-20)
Fixed: Can use volume key to switch to vibrate, off mode by volume slider
Fixed: Exception List will not check the classname of the window as well, so you can also put applications that will change title in the list.
Added: change the behavior of the dpad, and user can set the action for each direction using DUP, DDOWN, DLEFT, DRIGHT
0.5 (2006-03-19)
Add: DPAD, use dpad for additional action (call log, messaging, programs, contacts) in phone app.
Add: VOLUMEONTODAY, volume key will check the topmost app is today or not
Fxied: improve force closed function.
0.41 (2006-03-11)
Fixed: will not overwrite ini files
Fixed: make executable smaller
Added: PAGEONEXPLORE, use soft key to scroll page in “Programs”
0.4 (2006-02-25)
Fixed: rewrite force closed function again
Added: VOLUMEONPHONE, volume key will check the topmost app is phone or not
Added: REMOVEDUPSDDAEMON, automatically remove duplicated sddaemon events.
Added: OMAPCLOCK, omapclock wrapper to set clock automatically after wake up.
Added: STARTMENUMETHOD, provide alternate method to popup start menu.
...
water
THanks!
Great!
Hi Water,
Great little program! Very useful!
Wouter
very good. With your soft and with xbar I can use my wizard with one hand only...
thanks
does "close" function really close the app, or it is a standrad Windows "close"?
And... If you share the source code... ;-)
Now do exactly as pressing the OK button on the keyboard, so hide only. Actually close is much easiler in programming aspect
[feature request]
is there a chance then that at some stage of the development of the tool it would actually ok/close, and not ok/hide the apps?
[/feature request]
That is a nice idea (I just got my 8125 and I was thinking of that EXACT setup)
One thing I would ask for, if its not too much trouble...
Can you make another progy that does everything (start menu and ok/minimize) except the volume scroll? I like to change the volume while in a call and such.
Thanx and really nice job; Lew
EDIT: Better idea.
Include a config file for the program, here's an example.
Code:
LeftSoftKey = 1 // 0 = default 1 = hold for start menu
RightSoftKey = 1 // 0 = default 1 = hold for ok/minimize 2 = hold for ok/close
VolumeScroll = 0 // 0 = default (volume control) 1 = Scroll
I think that's a good idea. Let me know what you think?
Later; Lew
Is it easy to re-configure the tap and hold functions??
okay, add one more version without volume keys remap. For close button request, I may do it when I am free.
The program cannot be configured because actually no interface.
wow man. thanx for such a fast response . I was just in bed when I decided to check one last time (from my wizard of course)
So can the settings for the program be set by a config file? Can it read the the cfg file and use the settings in it as variables for how it will handle the different key press events?
Thanx again... awsome sauce man!
Later; Lew
Is it possible to automaticly switch beteween volume when using the telephone and prev/next page if the telephone is not used.
This would complete your program.
Ferry
This is one of the mose useful bits of software I have come across for the Wizard. Simple but oh so effective Like others have said, one-handed operation is now much more simple.
Well done water
This is one of the mose useful bits of software I have come across for the Wizard. Simple but oh so effective Like others have said, one-handed operation is now much more simple.
Well done water
This is fantastic! Thank you very much water.
I have what I think is a simple question.
I have put the smartkey in my startup, now lets say I don't want it to start up any more. How can I get it out of start up?
I already tried deleting it it says access denied on the Wizard and if I try from PC.
Any thoughts?
Later; Lew
lewcamino said:
I have what I think is a simple question.
I have put the smartkey in my startup, now lets say I don't want it to start up any more. How can I get it out of start up?
I already tried deleting it it says access denied on the Wizard and if I try from PC.
Any thoughts?
Later; Lew
Click to expand...
Click to collapse
delete the shortcut from startup, and then restart the phone.
Yeah... that means im an idiot...
I didn't put a shortcut in the startup folder... I put the exe int he startup folder. Go ahead... point an laugh, lol, I would.
So now knowing that, any other suggestions?
Later; Lew... the dork of the day.
lewcamino said:
Yeah... that means im an idiot...
I didn't put a shortcut in the startup folder... I put the exe int he startup folder. Go ahead... point an laugh, lol, I would.
So now knowing that, any other suggestions?
Later; Lew... the dork of the day.
Click to expand...
Click to collapse
you can't delete it because it is running. stop the process (memory cp app) and then delete it.

Simulate touchscreen tap, or add ShortCut key.

Hello,
I have such a problem. But first I will explain why I have that problem.
In company we are using a PocketPC with Windows Mobile 2002. And have only one apllication for work.
When connecting to Server we need to tap the left bottom corner of the screen.
Many of workers tap with diferent objects like cutters, pens, not with Stylus, so the left bottom corner become bad in 1-2 months, till the time I can't do nothing, just changing the screen.
So. There is a posibility to implement somehow a ShortCut to that menu, to avoid taping that part of screen? (Because after that in program we use only buttons.)
(Note: I have no source code for tha app.)
Any kind of help will be apreciate.
Thank you much!
It's easy to simulate screen tap by code.
Do you have experience programming in C/C++?
If so all you have to do is write a little app that does the following:
Code:
HWND hWnd; //window handle
hWnd = FindWindow(L"BUTTON", L"Connect to server"); //this text is just an example
SendMessage(hWnd, WM_LBUTTONDOWN, 0, MAKELPARAM(5, 5)); //actually simulates the click
Then you can assign this app to a hardware button using device settings or put a shortcut to is in the start menu.
I don't know of any ready apps to just simulate a click, but there was a thread around here somewhere on a virtual mouse app for PPC. It's free so try searching for that. (Sorry, don't remember the link).
Good luck.
Thank you man.
I'll try this...
levenum said:
It's easy to simulate screen tap by code.
Do you have experience programming in C/C++?
If so all you have to do is write a little app that does the following:
Code:
HWND hWnd; //window handle
hWnd = FindWindow(L"BUTTON", L"Connect to server"); //this text is just an example
SendMessage(hWnd, WM_LBUTTONDOWN, 0, MAKELPARAM(5, 5)); //actually simulates the click
Then you can assign this app to a hardware button using device settings or put a shortcut to is in the start menu.
I don't know of any ready apps to just simulate a click, but there was a thread around here somewhere on a virtual mouse app for PPC. It's free so try searching for that. (Sorry, don't remember the link).
Good luck.
Click to expand...
Click to collapse
So I have not so many experience in C++ and nor in Visual Studio.
Can you provide me with full c++ code for Visual Studio 2005?
Thank you in advance.
Here is another way. Just create a simple project in vis studio ( I am not using 2005 so I cant tell you what its called, if all else failes use the "hello world" option). Open the main .cpp file and after the includes delete everything. Paste this in....
int WINAPI WinMain( HINSTANCE hInstance,
HINSTANCE hPrevInstance,
LPTSTR lpCmdLine,
int nCmdShow)
{
mouse_event(MOUSEEVENTF_LEFTDOWN|MOUSEEVENTF_ABSOLUTE,61439,1638,0,NULL);
return 0;
}
Then build the exe. Make a shortcut to the exe on your device and place it in the windows\start menu folder. When the user taps the shortcut the cordinates specified will get a mouse down message, not all ppc programs will rspond to this message but most bought software I have do.
As it is, this will hit the close button on a 240*320 display. To vary the target location see this from the documentation:
If MOUSEEVENTF_ABSOLUTE value is specified, dx and dy contain normalized absolute coordinates between 0 and 65,535. The event procedure maps these coordinates onto the display surface. Coordinate (0,0) maps onto the upper-left corner of the display surface, (65535,65535) maps onto the lower-right corner.
...So you may need to play with it to hit the spot.
If that fails then just replace the
mouse_event(MOUSEEVENTF_LEFTDOWN|MOUSEEVENTF_ABSOLUTE,61439,1638,0,NULL);
with levenum's code putting the name of the window you are talking about in instead of "Connect to server" to send the normal WM_LBUTTONDOWN message to that window.
OdeeanRDeathshead, your method seems to work. I did it and application works proprely on my Magician.
But now the question is: I need that program for a PocketPC 2002 platform. How to do this in VS2005, can explain me anyone?
Thank you in advance.
Actually, you can't write apps for WM2002 using VS2005.
You need eMbedded Visual C++ 3. It is available free from Microsoft, just search the site. You will also need to install Pocket PC 2002 SDK. (also free on MS site)
levenum said:
Actually, you can't write apps for WM2002 using VS2005.
You need eMbedded Visual C++ 3. It is available free from Microsoft, just search the site. You will also need to install Pocket PC 2002 SDK. (also free on MS site)
Click to expand...
Click to collapse
Ok.. all this I installed.
I will try to do the program there. But problem become more complicated.
My PDA's are not HTC. They are modified by SYMBOL company. So.. I realized that i have no HARD BUTTON.
In start menu I can't let the application, only because START is not accessible. The only program is that for work and it's full screen.
The PDA have a keyboard.
The question is: it is possible to do in program a HOT_KEY combination, and run MOUSEEVENTF_LEFTDOWN only when HOT_KEY combination was pressed.
I understand that program must remain in memory to intercept that.
Do you mean that there are no buttons on your device, only a keyboard?
Doesn't matter really because as far as windows is concerned keystrokes from device buttons and full keyboard are handled the same.
Sorry I am not really familiar with setting up hot keys, I think your app window needs to have input focus for that to work.
There is a function called SetWindowsHookEx that lets you hook all keyboard events so they will pass through your function. You can then have a small app in background (without UI) that will monitor any key combination you want and simulate the tap when necessary.
levenum said:
Do you mean that there are no buttons on your device, only a keyboard?
Click to expand...
Click to collapse
Yeah.... it looks like this http://www.symbol.com/PDT8100
I do not know if you can throw some cash at your problem but SKScHeMa from www.s-k-tools.com can wait for an application to start then execute a script. In the script you can simulate both tap and tap and hold actions.
Hope that helps.
Regards cjb.
One of those buttons must correspond to the buttons on the normal ppc. It would be overkill too write an app to run constantly just to redirect one tap. Do you have the opportunity to ever start the unit without the fullscreen program running, if so you could experiment with the button assignments to find the correct one. If the author of the custom software on the thing was half good they could have disabled those buttons assignments while its running, but if they didn't thats the best solution.
If that fails perhaps a program to run after powerup and ask if the user wants to connect to the server could work. It could show for 10 seconds then end. There was a thread here somewhere about programs starting on powerup but I can't seem to find it now.
edit:
I read the specs and it has two "side scan keys", I bet they are your buttons waiting to be reassigned!
OdeeanRDeathshead said:
One of those buttons must correspond to the buttons on the normal ppc. It would be overkill too write an app to run constantly just to redirect one tap. Do you have the opportunity to ever start the unit without the fullscreen program running, if so you could experiment with the button assignments to find the correct one.
Click to expand...
Click to collapse
No one of that buttons corespond to CALENDAR or CONTACTS or CAMERA or RECORD button.
I can start the device without work program. Also I don't need to simulate tap, because I own my PDA and have knoweledge how to use it.
Users don't know much... for that i disables all. Only Work program in fullscreen mode without START MENU.
I read the specs and it has two "side scan keys", I bet they are your buttons waiting to be reassigned!
Click to expand...
Click to collapse
This is a PDA with barcode scanner. That 2 buttons named "side scan keys" are only for SCANNER and are not programable.
TO ALL: Thank you for your support![/quote]
cjb said:
I do not know if you can throw some cash at your problem but SKScHeMa from www.s-k-tools.com can wait for an application to start then execute a script. In the script you can simulate both tap and tap and hold actions.
Hope that helps.
Regards cjb.
Click to expand...
Click to collapse
Thanks for help.
I can't do any investitions in that.
More of that it's not the same I need. I need to simulate this not only at start, also during work.
Yes, so make the prgram asking if a connect is needed run when the power button is pressed. If the user needs to connect they press off then on then the window comes up asking if a simulated tap is needed (I do not mean reset). If the full off is not desireable then dose your unit change the brightness when the power button is held down? If so, and if it is using the standard name for the named event to signal brigtness changes then you could make the tap simulate program run all the time in a loop but waiting for the brigtness change event. Waiting will take up almost no processor time and the program is so small it takes up almost no memory! The user just has to hold the power button for several seconds and the your window will pop up. The down side is that your app will also have to save then restore the brigtness settings so the user dose not need to manualy reset the brigtness level.

Device Lock

Anyway the device lock be mapped to a soft key instead of a hard key? I have it mapped to the messaging button, but would rather have it at the calendar or contacts button.
Cingular 8125
ROM 1.8.11.1WWE
WM5
A little program called WM5NewMenu should do it. It's free, just put it into a google search.
calouro said:
A little program called WM5NewMenu should do it. It's free, just put it into a google search.
Click to expand...
Click to collapse
Thx, but all this did was to let me rename the word "calendar" to "device lock", with the actual calendar program still assigned to the left softkey.
Cingular 8125
ROM 1.8.11.1WWE
WIZA100
I'm trying to get some directions for the program, from doing a little research on google it looks like you can reassign the button with that program, just have to figure out how. I'll look for some direction on the program.
Ok, I figured it out.
Goto WM5newmenu, under "launch by:" select "Left Softkey" Then under "Soft Key Label:" enter your label (ie. "Lock")
Then goto the "items" tab. select "new" then select the little box next to "parameters:" select "windows" then ""go into" at the bottom.
Scroll over to "BSDeviceLock.exe" then hit "select"
Then enter "lock" or whatever you want under "item label:"
You will see the new entry on the left side of the screen, you may have to scroll down a little. You can uncheck all of the other items and just leave the new "Lock" item you created. After that select ok and do a soft reset.
After it resets, hit your left sofkey, you will see your newly created lock pop up. Then just hit the center button on the pad! It locks!! I just did this and it works!!
Hope this helps,
Just found this, it's even better then WM5newmenu:
Reassign left softkey on Today screen to open Notes application
Use Total Command to navigate to HKEY_CURRENT_USER\Software\Microsoft\Today\Keys\11 2
Change the “Default” key to the name that you want to appear on the button (in my case Notes)
Change the “Open” value to the location of the program you want to open (in my case “Windows/Notes.exe” ( you would enter “Windows/BSdevicelock.exe”)
Perform a soft reset
Look in your windows folder to see if you have BSdevicelock.exe if you don't let me know and i'll get it to you.
calouro said:
Just found this, it's even better then WM5newmenu:
Reassign left softkey on Today screen to open Notes application
Use Total Command to navigate to HKEY_CURRENT_USER\Software\Microsoft\Today\Keys\11 2
Change the ?Default? key to the name that you want to appear on the button (in my case Notes)
Change the ?Open? value to the location of the program you want to open (in my case ?Windows/Notes.exe? ( you would enter ?Windows/BSdevicelock.exe?)
Perform a soft reset
Look in your windows folder to see if you have BSdevicelock.exe if you don't let me know and i'll get it to you.
Click to expand...
Click to collapse
I did the registry edit, and when I tap the left soft key, I get "the file device lock cannot be opened due to an untrusted certificate, or one of its components is missing." I could NOT find BSdevicelock.exe in the Windows folder. Where in windows should this file be located?
I would like that BSdevicelock as well, if I could.
Its in the root windows folder, you probably don't have it.
I'll attach it as soon as I get home from work tonight!
Just copy it into your windows directory.
BSDevicelock
Just unzip this and place it in your windows folder with the registry change.
Hope this helps!
calouro said:
Just unzip this and place it in your windows folder with the registry change.
Hope this helps!
Click to expand...
Click to collapse
Got it good buddy! I kept the other items in WM5NewMenu and labeled the softkey "Menu", and changed BSdevicelock in the label box to Device Lock. Now all I do is hit the new softkey "Menu", scroll to device lock, hit the center button on the D pad. Device locks like you said it would! I was able to do this after extracting the BSdevicelock.zip to my Windows folder. Excellent instructions! Thx a MILL! If you discover anything else that's appealing, let me in on it..o.k.? Just found out I could move Device Lock to the top. Now I don't have to scroll down.
Cingular 8125
ROM 1.8.11.1WWE
ROM date: 2005
No problem, glad I could help!
hotdog53 said:
Got it good buddy! I kept the other items in WM5NewMenu and labeled the softkey "Menu", and changed BSdevicelock in the label box to Device Lock. Now all I do is hit the new softkey "Menu", scroll to device lock, hit the center button on the D pad. Device locks like you said it would! I was able to do this after extracting the BSdevicelock.zip to my Windows folder. Excellent instructions! Thx a MILL! If you discover anything else that's appealing, let me in on it..o.k.? Just found out I could move Device Lock to the top. Now I don't have to scroll down.
Cingular 8125
ROM 1.8.11.1WWE
ROM date: 2005
Click to expand...
Click to collapse
I use MortSaver (Phone Edition) which locks and blanks screen and relocks/blanks screen after calls/reminders etc..
guys you seem to me to be making this quite hard for yourselves
use this softkey app to change the softkeys (3rd post)
use this device lock app.
go to start/settings/system/softkey and select the device lock app
and soft reset, softkey changes generally don't occur until after
bbobeckyj said:
guys you seem to me to be making this quite hard for yourselves
use this softkey app to change the softkeys (3rd post)
use this device lock app.
go to start/settings/system/softkey and select the device lock app
and soft reset, softkey changes generally don't occur until after
Click to expand...
Click to collapse
None of your "this" links worked for me. Besides, I'm content now.
My old simple Nokia 6200 had a feature whereby the keypad was locked automatically without need for a PIN three minutes (selectable) after a call when there was no activity.
Is there any easy way to implement this ? I can map H/W keys (thanks to Molski) but this isn't quite the same.
calouro said:
Just unzip this and place it in your windows folder with the registry change.
Hope this helps!
Click to expand...
Click to collapse
Is BSdevicelock better than the lock app already on the device in the Windows folder??
The app im talking about is called devicelock.exe on my device. I have an HTC Wizard
I did not have devicelock.exe in my windows folder originally. BSdevicelock is just a little program that simply locks the device. I don't have devicelock.exe, but I imagine they probably do the same thing. I think BSdevicelock is actually installed by the BatteryStatus program. If you have a later version of Battery Status, you should have BSdevicelock.

[APP] DredSensor v1.1 - Allow you to personalize Hard Key Actions

=======================================================================
New version 1.2 available here
=======================================================================
=======================================================================================
DredSensor v1.1d:
=======================================================================================
Link ->: DredSensor-v1.1d
New features in v1.1d:
=====================
Let you choose which Key/Action you affect to each key.
Launcher Mode let you affect an Action for:
Double Tap event
Click event
Long click event
An icon for config tool is created in Program list.
Cache Program List for quick loading in Config window.
Fixes a few bug from v1.1, v1.1b and v1.1c
Tips:
=====
If you upgrade to this version, your config file will be cleared (sorry ).
To define a profile that applies on every applications, launch config tool and edit "Default" config.
If the key you want to affect is not listed, you can define it manually:
Type "Key:[email protected]@", with @@ = VKey code of the key you want to affect.
You can find VKey code list on : http://msdn.microsoft.com/en-us/library/bb431750.aspx
=======================================================================================
DredSensor v1.0:
=======================================================================================
=======================================================================
Reviewed on gadgetmix.com: See the article
=======================================================================
If you have tried to play a game needing left and right key on an HTC Touch Diamond, you noticed that they are 2mm wide and if you click next to it, you get back to home page or to dialing menu etc...
So I've written a prog allowing you to lock these 4 keys actions and replace it by classical key event (VK_LEFT, VK_RIGHT, ...).
In that way you can play tetris, and use "Pick-Up" and "Hang-Up" keys for going left and right.
Link ->: DredSensor
To use it, you need:
1) An HTC Touch Diamond (it's the only one i have so i can't test it on other models)
2) Install the .cab
3) Reboot your HTC
4) Run a game (or app or ...)
5) Get your stylus out and back-in, in less than 1 second
6) Click "Yes"
----- A config window opens:
7) Check that Type = "HardKeySimul"
8) Click "Ok"
Now you can use (and eventually assign) your 'Home', 'Back', 'Pick-Up' and 'Hang-Up' keys in that game/app.
Actually, the 'Pick-Up' and 'Hang-Up' keys are always defined as Left and Right events.
Have fun.
Ps:
For people interested, the other "Type" in the config window are:
- "Launcher": allow you to quicklaunch 4 app (that you define in the config wnd) when you double tap (not click, just tap) on one of those 4 keyz
- "Scroll": allow you to scroll the current window by tapping those 4 keyz panel
- "KeySimul": allow you to send left/right/up/down events by tapping those 4 keyz panel
Thx, now I can use opera mini and pie (good for mlb's wap) in full screen
Thank you very much. Great program. Now, with left and right softkey hardware buttons, I can play with my java games.
Claus72 said:
Thank you very much. Great program. Now, with left and right softkey hardware buttons, I can play with my java games.
Click to expand...
Click to collapse
Do any of them even work on the vga screen?
first of all: great app!
only thing i don't like is that now every time i pull out the stylus the phone vibrates. maybe you could make the "window-catching-thing" optional, so you have to enable it first?!? with that, the app would be perfect to me!
figured out an other problem: the "scroll-wheel-function" in opera and tomtom doesn't work anymore...
Herr_Knigge said:
first of all: great app!
only thing i don't like is that now every time i pull out the stylus the phone vibrates. maybe you could make the "window-catching-thing" optional, so you have to enable it first?!? with that, the app would be perfect to me!
figured out an other problem: the "scroll-wheel-function" in opera and tomtom doesn't work anymore...
Click to expand...
Click to collapse
Hello.
As it's a background program, making vivrate the phone is the best way i found to easlily know if it's loaded or not.
If you don't like that, you can disable it by manually editing the 'Config.ini' file in '/Program Files/DredSensor':
Go under the section you want to disable vibrator in (ex: "[Default]")
Add: "NoVibrate=1"
For the scroll problem, i didn't change scrolling system from v1.0 so are you sure it was working in v1.0 and it's no more working in v1.1?
@Dredger97
Thank´s for this wonderful tool!
Greeting
Slide
is there a wa to map home/back to A/B controller buttons? Trying to get it to work with PocketNester Thanks
Thanks
I will tried
Seems to be good. Shall download and try...
Doesn't work for all hard keys
I have the original diamond and it doesn't look like any of the key presses work.
I could really do with replacing volume and Home/Back Buttons. Do these buttons
support Long press too?
bugsykoosh said:
is there a wa to map home/back to A/B controller buttons? Trying to get it to work with PocketNester Thanks
Click to expand...
Click to collapse
If you go in PocketNester -> Option -> Controller, you can see that it's default mapped to 0xC4 and 0xC3 key codes.
So all you have to set in DredSensor is:
- Home: "Key:0xC4"
- Back: "Key:0xC3"
I tried that on super mario, it works, but the problem is that you can't press those keys and simultaneously press Left and Right so it's quite hard to play...
In fact you can map Volume Up and Down keyz to button A and B and it's much easier to play.
djfuego said:
I have the original diamond and it doesn't look like any of the key presses work.
I could really do with replacing volume and Home/Back Buttons. Do these buttons
support Long press too?
Click to expand...
Click to collapse
The actual version of DredSensor doesn't change anything to volume up/down buttons.
All it catches is Home,Back,Talk and End hard keys.
About long press,
- In "Launcher" mode, you can define action for "Long click"
- In "HardKeySimul" mode, if you make a long press to "Home", and mapped "Left" key to "Home" button, it will occure a long press on "Left" key.
I just don't seem to be able to get this to work - I follow the first post to remap the home and back keys to the softkeys, but home always takes me back to touchflo.
Are there any other things I can try, or is it just the ROM i'm using doing this?
Furbious said:
I just don't seem to be able to get this to work - I follow the first post to remap the home and back keys to the softkeys, but home always takes me back to touchflo.
Are there any other things I can try, or is it just the ROM i'm using doing this?
Click to expand...
Click to collapse
I don't think it's a ROM problem.
The 2 most common reasons for not working are:
It doesn't work if you have G-Scroll or something similar installed.
When you edit config for an App, this config only applies when "Window Title" and "ClassName" of the foreground window matches what is defined in that Config.
If it doesn't match any config, DredSensor doesn't catch your hard keys.
You can use wildcards in your Config so, for example, if the app you want to configure always changes its title, you can set "*" for window title.
everything gose well in my diamond! Thx!
just a little suggestion : as volume up/down could be very useful in some app (like a game emulator), could you make them configurable in your next version?
nice job!
Furbious said:
I just don't seem to be able to get this to work - I follow the first post to remap the home and back keys to the softkeys, but home always takes me back to touchflo.
Are there any other things I can try, or is it just the ROM i'm using doing this?
Click to expand...
Click to collapse
I make a softreset and works whit no problem, when i click home button open the program i assign.
Doesn't seem to work in Phone screen. I am not sure if it is because it is a dialog class. If this could be made to work, it would be great as when a person has multiple phone numbers you could scroll by pressing right or left key.
Thanks in advance
just tested it with tetris and it worked great. good stuff
Dredger97 said:
I don't think it's a ROM problem.
The 2 most common reasons for not working are:
It doesn't work if you have G-Scroll or something similar installed.
When you edit config for an App, this config only applies when "Window Title" and "ClassName" of the foreground window matches what is defined in that Config.
If it doesn't match any config, DredSensor doesn't catch your hard keys.
You can use wildcards in your Config so, for example, if the app you want to configure always changes its title, you can set "*" for window title.
Click to expand...
Click to collapse
I've nothing like that installed - I've tried wildcards, and soft resetting between altering them, even setting the default so that it should catch any class or window so that the home and back keys are soft keys one and two.
It's semi trapping the window and keys.......I just wonder if your app is not being fed the correct window name/class, or there's some extra characters or something that is fooling it.
Here's an example - setting home and back keys to the softkeys, with a config of * for window, and * for class.
On the touchflo screen, pressing home will take it to the phone screen (correct left softkey action), but once in the phone screen, pressing home takes it to the touchflo screen when it should go to contacts.
If I'm in any other application, it never traps the home key, and will always go back to touchflo. Disabling touchflo doesn't change this, it takes it back to the today screen.
I'm using shak's rom if anyone else can confirm they can get it to work using that one

[APP][Updt 08/09/2009] DredSensor v1.3a - Allow you to personalize Hard Key Actions

=======================================================================================
DredSensor v1.3a:
=======================================================================================
Now DredSensor should be compatible with other device than HTC Touch Diamond.
Historically, if you have tried to play a game needing left and right key on an HTC Touch Diamond, you noticed that they are 2mm wide and if you click next to it, you get back to home page or to dialing menu etc...
So I've written a prog allowing you to lock these 4 keys actions and replace it by classical key event (VK_LEFT, VK_RIGHT, ...).
In that way you can play tetris, and use "Pick-Up" and "Hang-Up" keys for going left and right.
I extended it to let you configure each app independantly, and choose between four (five) mode:
"HardKeySimul": replace the 4 keyz by classical key event
"Launcher": allow you to quicklaunch 4 app (that you define in the config wnd) when you double tap (not click, just tap) on one of those 4 keyz
"Scroll": allow you to scroll the current window by tapping those 4 keyz panel
"KeySimul": allow you to send left/right/up/down events by tapping those 4 keyz panel
"--- Disabled ---": Disable specific HTC Touch Diamond Sensor functionalities.
Now, i've added an alternative Key Mapping, that let you map an action (or another key) on normal click and long click event on any other key that the up-described four.
So if you don't have an HTC Touch Diamond, the only mode you can choose is "--- Disabled ---" but you can define "other key mapping".
Link ->: DredSensor-v1.3a
To use it, you need:
1) A Windows Mobile SmartPhone
2) Install the .cab
3) Reboot your SmartPhone
4) Run a game (or app or ...)
5) Get your stylus out and back-in, in less than 1 second
6) Click "Yes"
----- A config window opens:
7) Choose the Type you want.
8) Reassign the actions to the events, if needed.
9) Assign "other key mapping", if needed.
10) Click "Ok"
Other Key Mapping:
To add a key mapping, a popup opens and ask you to press a key.
If you want to assign an action to normal clic, just clic on the choosen key.
If you want to assign an action to long clic, clic more thant 1 sec on the choosen key.
Then you have to choose the action, and it's done.
If you only assign an action to a long clic on a key, a short clic on this key should work transparently.
Have fun.
=======================================================================================
If you like this program, feel free to donate:
=======================================================================================
==========================================================================================
Version history:
==========================================================================================
New features in v1.3a:
=====================
Added an alternative key mapping that Should be compatible with any Windows Mobile device.
Added the "KeepAlive" option. Check this if you want DredSensor to prevent the smartphone to sleep when this application is loaded.
Added possibility to Enable/Disable DredSensor:
Exemple of C++ code to do this:
#define WM_DREDSENSOR_START WM_USER+22
#define WM_DREDSENSOR_STOP WM_USER+23
Disable:
HWND m_hDredSensorWnd=FindWindow(_T("DredSensorWnd"),NULL);
if(m_hDredSensorWnd!=NULL)
SendMessage(m_hDredSensorWnd,WM_DREDSENSOR_STOP,0,0);
Enable:
if(m_hDredSensorWnd!=NULL)
SendMessage(m_hDredSensorWnd,WM_DREDSENSOR_START,0,0);
New features in v1.2g:
=====================
Fixes a few bugs
Fix the bug in config window when loading prog list
Added a debug mode:
================
For activating it, just launch DredSensorDebug.exe (in /Program Files/DredSensor).
First it will tell you if DredSensor is running or not.
If it's running, it will activate/deactivate the debug mode so you will find a log in /Program Files/DredSensor/Log
If you have trouble with DredSensor:
Restart your HTC
Launch DredSensorDebug (to activate log)
Wait for DredSensor to stop working
Launch DredSensorDebug to know if it's still runing or not.
PM me the log, the config.ini and a description of the problem.
New features in v1.2b:
=====================
Tried to fix the conflicts with TouchLockPro and similar, hope it works (thanks for those who can check this out)
New features in v1.2:
=====================
Fix "not working bug" with new ROMs
Allow you to choose wether you block the scrolling wheel or not
Allow you to disable the vibrator effect.
Allow you to delete configs.
Tips:
=====
If you upgrade to this version, you can keep your config file.
To define a profile that applies on every applications, launch config tool and edit "Default" config.
If the key you want to affect is not listed, you can define it manually:
Type "Key:[email protected]@", with @@ = VKey code of the key you want to affect.
You can find VKey code list on : http://msdn.microsoft.com/en-us/library/bb431750.aspx
=======================================================================================
DredSensor v1.1d:
=======================================================================================
Link ->: DredSensor-v1.1d
New features in v1.1d:
=====================
Let you choose which Key/Action you affect to each key.
Launcher Mode let you affect an Action for:
Double Tap event
Click event
Long click event
An icon for config tool is created in Program list.
Cache Program List for quick loading in Config window.
Fixes a few bug from v1.1, v1.1b and v1.1c
Tips:
=====
If you upgrade to this version, your config file will be cleared (sorry ).
To define a profile that applies on every applications, launch config tool and edit "Default" config.
If the key you want to affect is not listed, you can define it manually:
Type "Key:[email protected]@", with @@ = VKey code of the key you want to affect.
You can find VKey code list on : http://msdn.microsoft.com/en-us/library/bb431750.aspx
Wonderfull!!
the app is working good for me now! I just love the scrolling with only a touch on the d-pad
Thank you!!
I suggest you stop making a new thread for every new version and instead update your original thread and post that you've updated it.
After installing and lunch program .... i cannot see any of EVENTS on Events tab. Windows "wait gif" is rolling all the time and nothing happen :/ (i talk about mapping under HardKeySimul
Kraize said:
I suggest you stop making a new thread for every new version and instead update your original thread and post that you've updated it.
Click to expand...
Click to collapse
That's what i wanted to do but i didn't found a way to update the post title...
Is there one?
thanx for the update I'll try it and report
Thanks for the new version! And thanks for adding the OK button command!
Seems to be working better than the last version although pressing the back key (which I have mapped to click right) a few times in quick succession does seem to send a back command. Pressing the home key in quick succession doesn't have this problem.
Also, I can't get the scroll wheel to work despite leaving the "Block scrolling wheel" box unchecked. Am I doing something wrong?
antlane said:
Thanks for the new version! And thanks for adding the OK button command!
Seems to be working better than the last version although pressing the back key (which I have mapped to click right) a few times in quick succession does seem to send a back command. Pressing the home key in quick succession doesn't have this problem.
Also, I can't get the scroll wheel to work despite leaving the "Block scrolling wheel" box unchecked. Am I doing something wrong?
Click to expand...
Click to collapse
Hmm.. For the scrolling wheel, i use a tricky solution that works on my HTC touch diamond. May be it doesn't work on your model or on your rom version...
If someone have an idea on how to send a "ZoomIn" or "ZoomOut" event to a window (or how to develop an application that catch ZoomIn and ZoomOut events), that would help a lot...
As far as i studied the problem, it seems that ZoomIn and ZoomOut events are equal to Up and Down keys, but comming from a "rocker" .. so I can send those Up/Down key events, but no idea of how to tell that this comes from a "rocker" (and i don't even have an idea of what a "rocker" is...)
Help?
Wow, this is great! I am still loving the ability to remap my home key (and the others), and I really like the new scroll wheel feature. Actually, for me, instead of zooming in some apps, it now seems to scroll just about everywhere -- which is perfect, I like that more anyway.
Is there any way to donate or buy you a cup of coffee? I'd like to as a thank-you.
What an absolutely brilliant program!
Thank you very much Dredger97!
Greeting
Slide
ldrn said:
Wow, this is great! I am still loving the ability to remap my home key (and the others), and I really like the new scroll wheel feature. Actually, for me, instead of zooming in some apps, it now seems to scroll just about everywhere -- which is perfect, I like that more anyway.
Is there any way to donate or buy you a cup of coffee? I'd like to as a thank-you.
Click to expand...
Click to collapse
Well if you insist , i've added a donate link in the first post...
Big thanks to all for your positive and constructive comments
TF3D and DredSensor don't play nice together
This program is awesome! You can do so much with it! However, I am having one small issue with it. It appears that if I use it on Manilla [TF3D], that it works initially, but over time it seems to stop working and ends up freezing Manilla. The start icon still works, all the unmapped hardware keys still work and the task bar is still live. Only Manilla is frozen. If I don't map any keys on Manilla, it works fine for hours. But it only takes about 1 or 2 hours before there is a freeze on Manilla.
Any thoughts on how to correct this? I would love to use this program from my Home screen on Manilla.
Long click event → vibrate/nomal
Hi,all!
i want "Long click event" of Endkey to set vibrate/nomal.
how edit setting?
sorry for my english!
thanks.
downloaded v1.2, opened resco picture viewer,Got stylus out and back-in, in less than 1 second, tapped yes.
than for type i choosed disabled, but nothing, every time i press any hw key it does what it need to do(home to home, back for back, hangup close..)
what am i doing wrong??
intel286 said:
downloaded v1.2, opened resco picture viewer,Got stylus out and back-in, in less than 1 second, tapped yes.
than for type i choosed disabled, but nothing, every time i press any hw key it does what it need to do(home to home, back for back, hangup close..)
what am i doing wrong??
Click to expand...
Click to collapse
Well, disabled means "DredSensor is disabled" so it's normal that your hw key do what it's supposed to.
If you want to disable the hard key, you can:
- set Type: Launcher
- set "Click" action = "Misc:Nothing" on one of the keys.
So it will catch the hard key action, and do nothing when you click on it.
For me it doesn`t work :/ windows "Wait" gif is always apperaing when i want to add new Event. :/ And there is no Events on the list ...
tried that but same when i press home it goes to home
i have tried that on wmp.
is this program always turned on,now when i remove and than get back in stylus no menu pops up?!?
Great Job!
the app finally works on my pda! so glad you solved this bug!
But I still have a little problem...the app runs fine, when I start the buttons work with the function that I chose, but after the first time I use it it crashes and stops to work. Am I the only one with this problem?
Thanks,
Michele
Dredger, I asked in the last thread, but didn't get a response.
As far as mapping other buttons goes, could you post a quick example of what I would type in the config.ini to map the center D-pad button to act as the "left" button.
I realize the buttons commands are listed in the link you provided in your first post, but I'm having a little bit of trouble figuring this out.
Thanks.
Great app btw.
I'm gonna have to have another go at this... For some reason I just can't wrap my head around the setup of the program.

Categories

Resources