Go Back   xda-developers > Development and hacking > Windows applications and games

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 12th May 2007, 07:49 PM
Hundera Hundera is offline
Senior Member
 
Join Date: Oct 2006
Location: Prague
Posts: 118
Default HButton - maps more apps on HW buttons


NEW VERSION 2.3

I didn’t find freeware application for assign more applications to one HW button using hold-button, so I decided to write my own. Here is result.

Application HButton can be used to assign more applications to one HW button. If you press the button, the first application is run. If you hold button till device vibrate, second app is run. If you hold button till second vibrate, third app…. And so on, and so forth.


Usage:
* Install attached cab.
* Run HBSetup (Programs - HButton - HBSetup), setup up to 5 applications to Button1
* Start Setting – personal – Buttons and assign HButton1 to any HW button.

Now you can run all selected applications using this one HW button.


Any topics welcome.

Hundera

[18.5.2007] UPDATE
I uploaded new version 1.2.
Contains new options for starting applications
* vibrate
* beep
* display name on screen

[22.5.2007]
Version 1.3
* "unlimited" num of apps on one button
* <None> application
* option to cycle thru applications
* option to notify first application

[25.5.2007]
Version 1.5 - please uninstall previous version (not necessary on WM5, WM6)
* Fix: Bugs in installation and setup on devices with localized ROMs
* Fix: Unable to remove first app in list
* Fix: Not working for some buttons on Universal
* Could be installed on Storage Card (Only HBSetup.exe)
* <Clock> application
* Positioning of info box.

[2.6.2007]
Version 1.6
* <Today> application
* HButtonTask - task switcher like alt+tab. (first app is always today)

[6.6.2007]
Version 1.7 - fixed bugs with PHM keys
* Possibility to start application with params
* HBSetup search for links in linked directories
* HBSetup doesn't assign .lnk file, but parse it and assign exe with params

Vesion 1.8 - added some "applications"
* <Ok/Close> (minimize app)
* <Quit> (terminates app)
* <Start Menu>

[7.6.2007]
Vesion 1.8.1 - Fixed bug with param parsing

[30.9.2007]
Version 1.9.1
* <Back> - switch to previously opened application
* HButtonTask - first item in list could be Today or previously opened application
* Fixed: Device reboots when <QUIT> is used on "Programs"

[23.10.2007]
Version 2.0
* <Rotate Left>
* <Rotate Right>
* assignment to HW buttons could be done directly in HBSetup
* Label configuration - size, font size, colors
* Fixed: install dir in localized ROMs

[29.10.2007] Version 2.1
* <Toggle BT>
* <Toggle SIP>
* Fixed: refreshing top window after Rotate

[10.1.2008] Version 2.2
* <Toggle Sound (only WM5,WM6)>
* <Toggle WiFi>
* Fixed: list of applications on PPC2003
* Fixed: directory browsing in HBSetup

[15.5.2008] Version 2.3
* Import / Export of settings
* 2 more buttons (HButton6 & HButton7)
* Browse... select any file to be started by HButton

I Finally created web. So HButton could be downloaded on

Last edited by Hundera; 1st July 2008 at 08:42 PM.. Reason: update version
Reply With Quote
Sponsored Links

  #2  
Old 12th May 2007, 08:00 PM
Hundera Hundera is offline
Senior Member
 
Join Date: Oct 2006
Location: Prague
Posts: 118
Default .NET2.0 necessary

One more remark.

.NET 2.0 is necessary to use HBSetup. If you want to use HButtons without .NET, you can install it from cab and setup it manually using registry editor.
For Notify and flags use sum of numbers for options you want. for example notify=5 means vibrate and display name

Code:
[HKEY_CURRENT_USER\Software\HButton]
Delay   : DWORD   delay in ms between applications start. (Optional, Deafult 500)
Notify  : DWORD   type of notification. 1 - vibrate, 2 - Beep, 4 - display name. (Optional, default 1)


[HKEY_CURRENT_USER\Software\HButton\Button1]
flags      : DWORD   flags for this button. 1 for cycle thru apps, 2 for notify even first app, 4 custom delay. (Optional, default 0)
Delay   : DWORD   delay in ms between for this button. Only when custom delay is set. (Optional)
NItems   : DWORD   number of applications assigned to HButton1

Item0    : STRING   first application
Item0_name    : STRING   displayed name of first application. (Optional)
Item0_param   : STRING   Parameters of first application. (Optional)

Item1    : STRING   second application
Item1_name    : STRING   displayed name of second application. (Optional)
Item1_param   : STRING   Parameters of second application. (Optional)
…

[HKEY_CURRENT_USER\Software\HButton\Button2]
   .. same for others buttons

[HKEY_CURRENT_USER\Software\HButton\ButtonT]
flags    : DWORD   flags for task. same as other flags + 8 for show next application + 16 for first item is last opened application. (Optional, default 8)
Delay   : DWORD   same as for buttons
Special applications:
#t - <Today> (i.e. Item0="#t" )
#o - <Ok/Close>
#q - <Quit>
#w - <Start Menu>
#c - <Clock> (*_name must be set to "<Clock>")
#b - <Back>

Last edited by Hundera; 30th September 2007 at 07:09 PM.. Reason: update registry settings
Reply With Quote

  #3  
Old 22nd May 2007, 10:00 AM
dmisek dmisek is offline
Junior Member
 
Join Date: Apr 2006
Posts: 2
Default Cycling

Hello there.
Its a nice tool. Thanks for that.

What about to cycle through defined applications till the button is released? If I do miss the application which I want to launch - it launches the last defined application. I do think there should be the way how to "cancel" the launching at all or something like this.

Sincerely David
__________________
David Misek
Reply With Quote

  #4  
Old 22nd May 2007, 10:16 AM
Hundera Hundera is offline
Senior Member
 
Join Date: Oct 2006
Location: Prague
Posts: 118
Default

Quote:
Originally Posted by dmisek View Post
What about to cycle through defined applications till the button is released? If I do miss the application which I want to launch - it launches the last defined application. I do think there should be the way how to "cancel" the launching at all or something like this.
Thanks for remark.
My idea was to start last application immediately, when there is no application left – if you have two applications assigned to one button, second will run exactly after 500ms(or delay you have set).
In your situation, there is necessary to release button in proper time.

But I think, that it could be added as possibility – so user can choose, if
- it will works like now
- it will cycle thru defined applications
- last application will be "CANCEL". (or combination with previous one)

Last edited by Hundera; 22nd May 2007 at 11:19 AM..
Reply With Quote

  #5  
Old 22nd May 2007, 05:19 PM
jockyw2001 jockyw2001 is offline
Senior Member
 
Join Date: May 2007
Posts: 1,383
Default

It unfortunately fails to install on my smartphone (VOX).
Can you build a version for smartphone?

Thanks!
Reply With Quote

  #6  
Old 22nd May 2007, 06:12 PM
Hundera Hundera is offline
Senior Member
 
Join Date: Oct 2006
Location: Prague
Posts: 118
Default Smartphone

I can't promise anything, because I have no experiences with Smartphones.
But I will try to compile it.
Reply With Quote

  #7  
Old 22nd May 2007, 06:31 PM
colonel00 colonel00 is offline
Senior Member
 
Join Date: Jan 2007
Posts: 161
Default

I have found the problem of missing the app I want to be a nag as well. As dmisek said, if you have 5 apps assigned to a button and you miss the app you want, you have to take one of the following.

As a quick work around, I created a link to the today screen and added it to the last app of each button. So, the worst case there is that if I miss my intended app, I will at least go back to the today screen.

As a suggestion for a fix, I would probably say to have the apps loop over and over in the list. I would also suggest adding a "Cancel" like you said in the list.
Reply With Quote

  #8  
Old 22nd May 2007, 10:51 PM
Hundera Hundera is offline
Senior Member
 
Join Date: Oct 2006
Location: Prague
Posts: 118
Default

Quote:
Originally Posted by jockyw2001 View Post
It unfortunately fails to install on my smartphone (VOX).
Can you build a version for smartphone?

Thanks!
As I said before, I have no smartphone. There is some version, but not tested. Use it at your's own risk.

Vibration is not vorking - I used functions that doesn't exists on smartphones. If everythink else will work, I will try to find substitute for this functions.

hopes that help
Hundera
Attached Files
File Type: cab HButtonSPh.CAB (39.0 KB, 267 views)
Reply With Quote

  #9  
Old 23rd May 2007, 09:53 AM
jockyw2001 jockyw2001 is offline
Senior Member
 
Join Date: May 2007
Posts: 1,383
Default

Hundera: Thanks for your time. Unfortunately it still doesn't install ("The installation file is not intended for this device").

The WM6 standard edition on my VOX smartphone doesn't have a button changer in the settings menu.
Does anyone know which executable is responsible for this on a PPC?
Alternatively can anyone provide me the registry keys?

Thx!

Last edited by jockyw2001; 23rd May 2007 at 09:58 AM..
Reply With Quote

  #10  
Old 23rd May 2007, 12:37 PM
Hundera Hundera is offline
Senior Member
 
Join Date: Oct 2006
Location: Prague
Posts: 118
Default

Maybe smartphone has no button to map.

On PocketPC it is store in HKLM\Software\Microsoft\Shell\Keys\.

There are keys 40Cx for buttons...

If you havn't these keys, app will not work...
Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 02:45 AM.


Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.