locking down hardware buttons - Windows Mobile Development and Hacking General

Hi Guys
Wondered if anyone knew of a way of locking down all the hardware buttons with a registry change on WM5?
Or at least specific ones?
Reason being I'm developing a flash lite data driven app for a device specific service with issued handsets to users during a corporate event - they need to be "locked down" to stop the user activating the phone using the "make call" buttons etc.
Although I can make the Flash app run "full screen" I can't stop the other buttons switching to other apps.
Regards
Derek

2 suggestions.
1 if you are trying to gain lock out control A_C's S2U2 program accomplashes this. If you need something other than his program I recommend that you PM him and asked him out he accomplished it with his lock.
2 you may want to try a program like hbutton. It would allow you to assign controls of the buttons to certain actions. One of the action options could be to do nothing. You could set them all to that.

Try using GXOpenInput();
it will redirect all input screen/keys to your app and then you can ignore then if you want.
Chris

chrisstavrou
I've just googled that command and found this page...
http://msdn.microsoft.com/en-us/library/ms831632.aspx
Seems like a good solution - only problem is, I'm not a .Net developer, so how would I pass this into the Flash Lite App as a .swf is loaded on the handset?
is there a way of passing this system variable in almost like a command-line before the app is opened?
Or would I need an executable on the PocketPC to somehow pass that in opening flashlite and the .swf in one go?

Thanks
Thanks for all the useful suggestions, I'm now following them up - cheers guys!

Related

Stopwatch Software for Himalayas

I'm just a newbie here on the board as well as a user of an O2 XDAII.
I would just like to ask if anybody have made a stop-watch or timer software that could be installed on the XDAII?
Thanks in advance.
Yes, actually I have as my first attemt at a .Net CF application.
It is a very simple stopwatch/strokecount application. If you want it, I can upload it.
That was a quick reply... please do upload it. If it is not a hassle, can you also indicate on how do I load it....I am really very new with my new toy..it's too high tech for my existing knowledge. TIA Kim
Now, as you will be able to see, it is an application in a very rough stage. AND there is a little thing that is not implemented (Save splits).
What you do is you unpack the zip file to a folder on your harddrive. Then you uploade the exefile to your XDA II using ActiveSync and Explore. (You just press the explore button in ActiveSync and you can copy/paste the .exe file to your device there.)
You can put the exefile anywhere, but you have to your Explore on your XDA II to execute the file. (I think you can make the program show in programs by placing a link in the \Windows\Start Menu\Programs folder)
Now, in order to use the app, here is a little explanation of the buttons.
Time gives you the pace of your presses. You have to press this button 3 times before you get a result. It gives you the number of presses you would have if you continued for 1 minute. (Used in rowing and swimming)
Then you have your start/stop button, and a split button. And the reset, just clears the boxes. Unfortunatly I have not made it pause. When you stop the watch, it starts from 0. This will be in another release
Hope you can use it, and do not hesitate to come with some surgestions.
Oh, and by the way, if you have .Net framework 1.1 installed on your pc, you can try out the application on that too....
You can also try these freewares:
Pocket Counter
StopTime
You may find them in the PocketPCFreewares site
tnx to you two
I don't know what else you are adding to the app but I would suggest button mapping.
wildthing said:
I would just like to ask if anybody have made a stop-watch or timer software that could be installed on the XDAII?
Click to expand...
Click to collapse
You could look at Spb Time - multiple up and down timers, very nice.
gunsandrosses said:
I don't know what else you are adding to the app but I would suggest button mapping.
Click to expand...
Click to collapse
Actually that was part of my first alpha version made in eVC++ 4.0. But after switching over to C# and .Net I haven't gotten around to it. BUT it is going to be in there.
anyone know a stopwatch for the wizard - supporting wm5?
thx

One-handed operation

Hi all.
I own a Qtek S100 for around 2 weeks, and have come to love the device for it's all around functionality and small form factor.
As a PDA w/stylus, I have absolutely no complaints. It's a great tool with hundreds of different pieces of software and games to play with.
As many of you, I want to use the Magician as my main phone as well. This is where the problems start. Windows Mobile does not seem be geared towards non-stylus use, yet when you are out and about, it would be nice if you could accomplish basic tasks without the stylus. The main reason being is that when you are out you want to protect the screen so you put the device in a case, so the screen isn't accessible.
Anyway, you guys know all this. Now here's the question. Is there software out there that's designed to make Pocket PC phone edition a better one-handed device? I am thinking of something like the following:
You click one of the hardware buttons, which opens this 'one-handed' program. This brings up a tree/menu of different functions. Anything you would need to do while you're on the road. For example:
Turn the phone to silent.
Turn bluetooth on/off.
Control the music you're playing (on/off/forward/back etc..)
Turn the device off.
Anything you can think of.
I realize you can do some of these things by mapping certain buttons to certain programs or by scrolling on the today screen or by trying to use the start menu, but I'm finding that you can only get so far before you're stuck and you have to use the stylus.
So is there any software of this nature? If not I might sit down and write something myself. If I do it would be cool if everyone can pitch and name things they'd like to do with one hand that they can't seem to accomplish.
Thanks!
What you need as a starter is Burr Oak HotButton Plus. This allows you to assign ONE hardware button that then pops up a list of programs that you can run. The list is configurable of course. You can navigate through the list of programs using your D-pad.
I would suggest getting a list of "Settings" shortcuts (available on the forum). Place these shortcuts in a folder and call them from HotButton Plus.
I also find Microsoft Voice Command a very useful software, especially when I'm driving. You can open programs, play music, etc. using your voice.
Also, this hardware-button tweak might do something nice. Haven't tried myself.
http://www.pocketpcthoughts.com/index.php?action=expand,40355
I use AEBPlus in combination with Mortbuttons. AEBPlus is bound to a hwardware button, in my case Calendar. When I double press it, Mortbutton 1 pops-up a list of apps that I set in Mortbutton options. In this way, I can switch on/off bluetooth, phone, or launch apps. Mortbutton gives up to 12 apps per list and 5 lists are available. With AEBPlus I can bind 3 Mortbuttons per hard button, e.g. 36 apps per button!
Mortbuttons can be found on www.sto-helit.de
thanks guys. I will give all of these a try!
phoneplus for phone abilities
phonealarms for profiles
All those programs are not directly given what we expected - one handed operation.
jamijam,
Could you develop the program?
Cheers,
jamijam said:
Hi all.
I own a Qtek S100 for around 2 weeks, and have come to love the device for it's all around functionality and small form factor.
As a PDA w/stylus, I have absolutely no complaints. It's a great tool with hundreds of different pieces of software and games to play with.
As many of you, I want to use the Magician as my main phone as well. This is where the problems start. Windows Mobile does not seem be geared towards non-stylus use, yet when you are out and about, it would be nice if you could accomplish basic tasks without the stylus. The main reason being is that when you are out you want to protect the screen so you put the device in a case, so the screen isn't accessible.
Anyway, you guys know all this. Now here's the question. Is there software out there that's designed to make Pocket PC phone edition a better one-handed device? I am thinking of something like the following:
You click one of the hardware buttons, which opens this 'one-handed' program. This brings up a tree/menu of different functions. Anything you would need to do while you're on the road. For example:
Turn the phone to silent.
Turn bluetooth on/off.
Control the music you're playing (on/off/forward/back etc..)
Turn the device off.
Anything you can think of.
I realize you can do some of these things by mapping certain buttons to certain programs or by scrolling on the today screen or by trying to use the start menu, but I'm finding that you can only get so far before you're stuck and you have to use the stylus.
So is there any software of this nature? If not I might sit down and write something myself. If I do it would be cool if everyone can pitch and name things they'd like to do with one hand that they can't seem to accomplish.
Thanks!
Click to expand...
Click to collapse
HI
I use the O2 xdaI machine. I will get tmobile MDA COMPACT (= I-mate JAM) next week.
Hotbutton application is ok but the best so far for one hand operation is definitely Microsoft Voice Command ver. 1.5. It works increadibly weel on XDAI and I expect it will run even better on the JAM (I will let you know next week).
Cheers !
Heard some things about Micrsofot Voice command but I was finding it hard to believe that using voice could work well in most cases (what if it's noisy? etc...). Maybe I'll give it a try.
o2mn,
Gonna give all these suggestions a try before I think about doing something myself. The goal would be to create a program that lets you go through the menus, etc of ALL programs. Just using the buttons.
I don't know if i need to start a new topic about this but I'm trying to find out an easy way to create a launcher under a hardware button, like a bunch of people seems to wanna have.
In 'windows\appsbuttons' you can assign any hardware button to an *.exe. I want to know if there is an easy way to create a *.exe which
opens a *.link.
Something like:
IE2BUTTON.exe
» goto programfiles
»open IE2BUTTON.lnk
Hereby IE2BUTTON.lnk refers to the map IE2BUTTON where you can put every shortcut you want
Tried AEBPlus but it conflicts with application button mapping such as in TCPMP. Sometimes TCPMP gets the button press sometimes AEBPlus Plus got it - couldn't live with that so had to uninstall AEBPlus.
I use a combination of software:
PPCProfiles-Pro on the Today screen for switching phone on/off, bluetooth on/off etc via switching between profiles I've set up.
VJOKButton assigned to the memo button for closing apps, clicking OK.
MortButton for starting apps etc.
Application button mapping in TCPMP for one handed mp3 / video use.
The one thing I really want to be able to do still is alter the screen brightness one handed.

Switch Radio on&off from .NET

Hi, I'm a .NET developer and I want to start to develop mobile apps.
My last device is a KJAM that need pen-tap to toggle radio on & off and this is a little frustrating for me (especially when it rains). So I decided to develop a simple (!) app so I can switch my phone on and off simply pressing the "red" button (for example).
Now I found how to bind the red-button-press event to my app but I really not yet found the (damn) method that let me to switch the phone (radio) on and off.
Can someone give me PInvoke samples to use in my C# app?
thnks
At least I can point you to an application, that does what you want.
read the thread http://forum.xda-developers.com/viewtopic.php?t=34831&highlight=
See my posts there (Conchas), and the .exe turned available by Koksie.
The same .exe toggles between enable/disable.
It is really great
thanks a lot ...
even if I wish to develop this app by myself (to start to "surf" the PInvoke hell) of course your advice will help me to reduce my frunstration switchin on my phone
You can always PM Koksie, asking for the function call he used.
I'll do it but he downloaded the program ... in the meantime ... the hardware button "4" now switch my radio on and off

command line tool for closing apps

i know that similiar questions like this has already been posted over a couple of hundred times in this forum. but, as said, only similiar.
what i desperately need, as i am creating my own skin including taskbar with homescreenplus, is a small and neat tool to be launched from "command line" which closes (not minimzes) the current application.
progs like vjokbutton or "registrysetstring ::3" do not work at all or working buggy on the diamond.
furthermore, i do not know if button remapping tools like hbutton or ae button plus can be launched from command line. but i guess that would be more a sort of overkill for my need.
does anybody know of a small tool which is closing apps from command line reliably on a DIAMOND?
thanks for assistance
Have you tried MortScript?
http://www.sto-helit.de/index.php?module=page&entry=ms_overview&action=view&menu=29
yes, thought about it. but would be sort of overkill just to use it for
close()
any other idea?
there are so many command line tools out there for toggling sound, wifi, bt, gprs, etc, etc.
was hoping that one of them would be able to close apps.
thanks

WMPControls 0.1 (Windows Media Control via shortcuts with parameters)

Tiny application for Windows Media Player control via shortcuts. WMP must be running before executing any of this command. I hope some of you may find it useful.
Use following parameters (only one each time) in a shortcut.
-pause for play/pause
-volup for volume up
-voldown for volume down
-next for next track
-prev for previous track
For example
Code:
Shortcut-Volume-Up.lnk
00#"\Program Files\wmpcontrols.exe" -volup
It should work all WM 5 and later devices (both PPC/SP platforms).
Download
wmpcontrols.zip
very nice
this is really great for people using WMP... thankfully we have A_C's S2P
It'd be amazing, if we can control CorePlayer in this way! I hope you'll find a way to add this feature in near future.
antourage:
Sure, I will do that when I will have some time.
Do these same paths control the player functions of TF3D?
If they do it would be way cool to see A_C incorporate them into S2U2 and allow a user to pick to either cotrol S2P or WMP with his lock controls.
Curious G
Pure win. Thank you.
Doesn't coreplayer use wmp as a base? Or is that just the library functions?
Anyway, this is really useful for things like XMT and other widget type programs, thanks a lot.
[edit] One suggestion though.
Could we maybe get an installer or at least suggest a specified directory to put it in.
That way, if theme writers and stuff want to use it they know where it "should" reside.
evilc said:
Could we maybe get an installer or at least suggest a specified directory to put it in.
Click to expand...
Click to collapse
Ok, I have updated the files. Plus the installer creates a folder in the Start Menu with all the current shortcuts (may be useful for easy hardware key assignment).
Stumbled upon this by chance.
Anyway, I'd want to recreate the old functionality of the media player buttons on my XPhone IIm and would like to know how to map these shortcuts to the buttons. Thnx
moneytoo,
Great app!
I've been able to remap some of the keys on my Diamond2:
(long press, 250 ms)
SEND: play/pause
WINKEY: previous track
BACK: next track
Exactly what I wanted!
Is there a way you can do the same with TouchFLO 3D's music tab (that would just be perfect)?
To g4g0:
You need to get a key remapper that is compatible with your device. xda it.
Thanks a lot, moneytoo!
yimpigan
nir36 said:
this is really great for people using WMP... thankfully we have A_C's S2P
Click to expand...
Click to collapse
It's possible with S2P ?
This program works on WM 6.5.x, or not?
No any reaction when I launch any shortcut for manage a WMP((
yes it works ok on 6.5
thanks for this app
Actually it may not work in some cases. The paths in the shortcut are for English rom (the "Program Files" folder has different names in different localizations). The shortcuts also expect to be installed in the device memory (storage memory or memory card will fail)
It's easy to fix though. Either open the various shortcuts using a text editor and change the path according to your localization or copy the program folder to the correct path.
zoidberg: I wanted to advice him of checking for correct path in links, but as he said, no response, that would mean links are ok, (no error) and the program is just calling wrong wParam/lParam as I suppose that's how it's controlling wmp.
In any lang mutation those should still be the same.
As well if he would change mapping inside wmp, that shouldn't have any effect.
Here I run out of ideas and just wrote: yes it's working in 6.5, just to eliminate possible problem for him.
Maybe he is using different player which is just skinned into wmp?? Or a complete strange version of wmp.

Categories

Resources