Could someone please help me with some mortscript? - Windows Mobile Development and Hacking General

I basically want to make a script that will scroll through open programs, back and forth (like alt + tab on a pc) by pressing up or down on my volume keys.
(and obviously make it ignore the volume up and down functions)
Im useless when it comes to mortscript and was hoping that someone with better knowledge could work it out, plus others could benefit from something like this. A simple task switcher.
Thanks to anyone who can help.

Maybe you'll find a task manager that supports "external" commands to scroll and then map the volume buttons with AEButton Plus (or was it AEBPlus)

Related

Jog Button

What is the Jog Button program?
It seems to have installed itself on one of my hardware buttons and ocassionally scrolls through several functions when that button is pressed.
I know how to change the button assignment but am wondering if there is something about Jog Button that we will want to use?
JogButton was just a freeware app we liked which allows multiple functions to be controlled by a single button. Feel free to re-assign the apps using JogButton's 'Tools' menu, or to use the button for something else entirely.
X
Thanks for the quick reply.
Do you know where I can find a help file for instructions for Jog Button?
I couldn't find it within the device and in playing with the program it just doesn't come to me.
JogButton Instructions
Fairly simple once you get the hang of it...
1. Press-and-hold the contacts button to activate JogButton. This causes the programs in its list to scroll/cycle
2. Release the contacts button when the icon of a program that you want to activate appears
Setup
1. Press-and-hold the contacts button
2. Click on the tools menu at bottom of screen
3. Select setup from the tools menu
4. The dialog that shows lists the programs and order of cycle.
5. Add/Delete/Edit as desired
6. The Snd check box is a toggle for sound/no-sound (a beep as each program is shown)
7. Duration is the number of milliseconds that an icon is shown
Hopefully that answers you questions
I'm the author...
Tek
Thanks for the reply. You are a genius!
This seems like a very handy app.
Joe_PDA
other buttons
What about using this very simple app on the calender button.
Have your "serious" stuff on one side,
then "toys" on the other..
I presume you have future plans, so give us a clue please
Perhaps even ask for ideas...
Martin
JogButton - Future Plans...
I started coding an alt-tab like feature into JogButton, but was not sure if that would be useful for anyone other than me. As you may know alt-tab in the Windows world scrolls you through the open list of of apps in a Last-in-first-out/Most Recently Used fashion. This would be useful for switching between two apps, the downside would be that you would have to remember the order. I was thinking of putting a toggle on either the menu or in the setup dialog to select this mode.
As for using two buttons, it is possible,but the way PocketPC handles the programs assigned to a button they have to have different names. I would of course have to make a few minor adjustments to allow for this, but it is possible.
I'm up for any suggestions to make this program more useful. Start a list and let's see what we get.
8)
Re: JogButton - Future Plans...
tekknogenius said:
I'm up for any suggestions to make this program more useful. Start a list and let's see what we get.
Click to expand...
Click to collapse
Bug: by timing a quick press just right, I can get it in a mode where it keeps cycling through the programs even though I've released the button already.
I think I was unable to map it to both the hardware buttons using a different list of programs to cycle through for each button. Since a single short press still does the same thing, there's really no reason not to map it to the second button also. (?? Quick hack: map second button to patched Jogbutton2.exe, using different set of registry keys. Better: multiple small stubs which start the real exe telling it which stub was executed. ??)
Maybe map a special action to pressing both buttons at the same time?
Also, something like 'double-press' and 'triple-press' found in some other programs to quickly go to the second and third item (or completely different items) without looking at the phone would be handy. I never really use the rocker-switch, but it could be handy for app starting: just keep the hardware button pressed and hit one of the four directions or the center, giving you 5 new things (per hardware button) to start.
JogButton...
Good suggestions. I can enhance it to use all available buttons. I prefer to use one hand, but others might like to have more options available.
hmm, must be a n00b suggestion, but perhaps it would be possible to use the volume control button? i dont use it for anything anyway.
Only two options... that I know of...
On the XDA/MDA PPCPE there are only two mappable buttons, unlike other PPC that have four or five. It's either the contacts button or the calendar button. Now once an app is mapped to either button and the app is launched, it can control any of the buttons. As a side note, the volume button would be great if it were dual functioning: a press-and-release brings up the volume dialog; a press-and-hold would bring up the record function.

HW keys remapping

Is any useful way to remap the Green and Red Phone button and the volume slider button? I mean for launch application or any function. Thanx.
There are some such programs for volume slider.
The most simple I prefer is attached here.
Just put it to the \Windows\Startup folder. It just "unbind" slider but not remaps it to another buttons. This will allow to use slider as F6/F7 buttons in programs able to hook them e.g. Haali Reader...
Thanx
It seems to be ok but where did you attach it? On my MDA is no offered file to download at this time. ThankU.
I've got it
Ok. Now is the sheet with uploaded file appeared. I've got it and extracted it. After i run the *.exe file it does nothing. Why?
because it should do nothing
This utility just frees slider buttons from default binding to volume control.
If you have an application that understands F6/F7 hardware key pressings (slider up/slider down) you may bind these key in the program.
As for me - I use them to scroll text up and down in Haali Reader text reader program.
But (as I said above) there are another programs to use slider up/down control. Unfortunately I don't remeber where I saw these utilities - but they really exists
And, as far as I'm back to the Andes from (Blue Angel) - I think I will write another one specially for Himalaya/Andes.
Ok, let's wait some days. If there are any results - I'll post the report here
P.S.: BlueAngel is the best HW keys equipped device i've ever saw But...
Thanx once again
Thank you 4 ur help. Now i understand that. And what about the Phone buttons? Any ideas? Ex.I want to use red button as Ok/Close simulation. Any ideas how to do that? Thanks.
Nobody unmaps phone buttons. It is possible but unresonable because of HTC is a phone device also. But I'll implement this feature too.
OK
I will wait for it.
The very first (and buggy) try of HW remapping utility is done. The application setup is available HERE
After installing .CAB file go to Start -> Settings -> Buttons and see the changes...
DO NOT INSTALL THIS APPLICATION ON BLUE ANGEL!!!
It will hide four lower hardware buttons until hard reset!
1. This app was tested on Andes with WM2003se, but should work on Himalaya/Magican with WM2003 and above
2. You will lose the possibility to use hardware key mapping in other applications forl remapped buttons. I need to re-grab buttons from time to time because the system tries to thieve them from me
3. Currently I don't now how to emulate green and reed buttons functionality after unbinding them from the system.
4. I can count any number of button pressings (3,4,5...), but -
5. WinCE reserve codes for only 15 hardware buttons (40C1..40CF)
There are some ideas for future improvement. But it would be nice to know your thoughts.
Just to "stimulate": I can create settings screen during setup to allow flexible configuration where you will
- choose which buttons to handle and how many key pressings to detect;
- choose option to unbind and/or re-map volume and phone buttons
- ???
And let me take a time-brake for 2 days before next programming session
The utility is ready. It allows you to:
remap each standard hardware button to 2 or 3 "virtual", simulated via double or triple clicks;
use volume slider to simulate Up/Down direction keys or create additional "virtual" hardware buttons;
remap Red and Green phone buttons to 1,2 or 3 hardware buttons each.
In a result you may create up to 15 hardware buttons (system limit)
Just install program and check Start -> Settings -> Buttons.
Here is Oficial AEBPlus home page, full desktop-based setup (~27K) and Direct link to CAB file (~30K)
Well done!
Excellent software! Thank you once again for your work. Works very very well!
man this is great really like it
works perfect :lol:
Seems to work great. Haven't had it running long enough to see if the camera button will get stolen back (big problem for me on XDA IIi), but being able to map the volume is great.
In the next version any chance of adding an <enter> option like Vito Button Mapper which I think just sends a <carriage return> to select whatever is highlighted.
Is "<Ok/Close>" option in button settings applet not the same?
NO, <OK/Close> generally tends to close the current window rather than selecting whatever is highlighted.
Also whatever application keeps on stealing back the camera button is still doing it. I don't know if it is part of the UK O2 customisations or the core PocketPC Rom, but eventually whatever function is mapped to the Camera button gets re-mapped back to the camera. This also happened to me with the standard button mapper and Vito button manager. It's a little annoying since the camera button is the most usefully positioned, and it is also easily knocked, starting the camera at awkward times.
Ok, I'll add this option for camera button (a bit later, in a case other suggestions arrives).
As for the re-hooking button by camera application: AEBPlus initializes all of the buttons from time to time. Currently this take place every 30 seconds. So if you will wait a bit - all buttons should be re-grabbed again
This does not seem to help because whatever application that is resetting the camera does it in the same place as you are storing the button mappings. When I go into the Buttons Setup it will now say that the Camera button is mapped to the Camera.
Yes,I see... It looks like Camera application is a pushy application . The solution is to remap "normal" Camera HW button to 3 press instead of one, but I don't like this.
Anyway - utility was released.
New features: added option to emulate Enter key with Camera button.
Hi AE, your utility is great. It is very useful but SIMPLE and SMALL.
I used it instead of other button mapper software.
There're some issues need tobe improved:
1) Mapping "Green" and "Red" button:
Enable mapping when they're iddle only (phone function does not work).
E.g: I'd like using Red button to close running app. But in phone function, Red button is still used to hang-up the phone as original its function. Anytime I have a phone call, I can use Red button to cancel a outgoing/incoming call.
You can refer the program of mamaich in this web site.
2) Single press is too low:
I press a key one time and wait 5 secs or more until it works. It's too slow. Can you improve? Double-press is OK.
3) Press n hold:
Can you add "single press n hold" for all hardware-keys? I think "single press n hold (after 3-3.5 secs)" is more convenient than "double press" or "tribble press". Do you think so?
Hi AE, very usefull application! Is there any way that we can have an options screen, where we can change the key options we get after installing the app? That would be easier to edit our preferences if we want to make changes to our initial choices. Furthermore I added a Mortbutton to one of your simulated hard keys. Each Mortbutton can show a list of 12 apps for a buttonpress. That means That I can now bind more than 60 apps to the buttons in total! Very good for one-handed use of my Magician, thanks!

Program assign to button

Hi, I am using Atom, I would like to know is there any tweak which can modify the button about the END PHONE (i.e. messaging) to another program I want, example the Calendar, or Pocket Informant. Thanks
AEButton
Has anyone been sucessful with remapping the start button (right button under the phone green button) :?:
no. it's impossible. Remaping programs doesn't see the start button
AEButton Plus 2.4.1
taiseer999
Well about remapping the Start Menu button--AEB+ allows you to add buttons so you can change this button this way, but I've not been able to get it fully functional. When you remap it, it displays the start menu for a fraction of a second then does the appropriately assigned action. It works, but w/this weird glitch.
I hope this helps!
Re: AEButton Plus 2.4.1
pelicantacos said:
taiseer999
Well about remapping the Start Menu button--AEB+ allows you to add buttons so you can change this button this way, but I've not been able to get it fully functional. When you remap it, it displays the start menu for a fraction of a second then does the appropriately assigned action. It works, but w/this weird glitch.
I hope this helps!
Click to expand...
Click to collapse
pelicantacos
Thats exactly what I have been seeing and no success in preveting the start funtion from not appearing :?

remap the BACK button ???

Hi all!
Suddenly today I've noticed something...I never use the BACK hardware key on my diamond. The reason is that this button doesn't seem to make anything different than the HOME button. (of course, I may be wrong! If so, please someone point that difference.) So, the obvious idea came to me: why don't we try to remap this button.
I know that there are apps that do just that (AEBPlus for example) but if you tried these programs you know they use up to 20% of RAM (I'm talking about AEBPlus again). So this is not the best option.
Rather than these 3rd party software, I was thinking to remap the button before the RAM is cocked by means of hard-coding. Sadly for me I do not possess this kind of knowledge so I ask kindly if someone could do this for the community (if it can be done).
I thought that this button could have a similar function as the ALT-TAB but to tell you the truth anything would be better than the original function.
Waiting for your replays...
Or maybe more easier with a registry hack. I am also interested in remapping the back button!
great minds think alike, but not always on the same schedule.
i was just looking into remapping my buttons with something other than AEBplus. i have an HD2, so the built-iin button remapper only gives me control over a long press of the send button; i'm looking into remapping the back button into a short-press "alt+tab" solution and a long-press to open my task manager.
then i searched and found this: forum.xda-developers.com/showpost.php?p=1770782&postcount=1
it's basically noting how you can use shortcut files, renamed and placed in your Windows folder, that remap your buttons. just create a shortcut file and rename it with "long" or "short" button depress followed by an underscore and the documented name of the button, with the standard shortcut ".lnk" filetype, e.g. Long_Send.lnk or Short_Home.lnk. then go into the link properties and set the target to what app you want the button action to open. once built, move the shortcut file to the Windows folder and soft reset the device. et voila.
the only problem is the Back button, specifically. all the other buttons have a single, remappable function when depressed. unfortunately, the Back button is programmed to be "situationally aware" and can perform one of 3 functions based on the situation it's used in. there's an MSDN blog entry here that explains not only the uniqueness of the back button, but how it functions: msdn.microsoft.com/en-us/library/ms912123.aspx
anyways, gonna look into it some more this morning to see how i can remap the sucker with as little resources as possible, if it can be done at all, or how to do it if someone else already has, and in the case of the latter, i'll report back and bump the thread that has the answers.
-oakie
edit: no urls for me yet. fill in your own address bars. :jerkit:
edit 2: AND a 5 minute freeze between posts/edits. at this point, why even bother with registration captchas? or even new registrations at all? sounds like current members and admins would rather turn people off/away than risk a spammer gettin thru. :madjerkit:

Replacing button assignment.

In start->settings->personal there is an option for button assignment. I want to change a long press hard key ( any of them) to bring up the keyboard.
I tried several but couldn't find it. Do you know which one it is?
I'd like to make back button as X to close applications or programs
is there any chance for that???
The only button that can be modified is the call button. The only functionality that can be added is allowing it to execute an executable by holding down the call button.
What you do is you create a shortcut called "long_send.lnk" and put it into the \windows\ directory. Whatever the shortcut is directed towards, a long-press of the send key will trigger that programs.
Many users have made simple executables that rotate the screen, generate an alt-tab-like screen, or other task managers. By allowing long_send.lnk to those programs, in effect that button can be used to rotate the screen, etc (which is what I've done).
Someone is programming program to translate multi-touch gesture into running shortcuts. That will hopefully in effect replace our lack of hardware buttons, so we can trigger behaviors on our phones by gesturing rather than pressing buttons.
ikomu said:
I'd like to make back button as X to close applications or programs
is there any chance for that???
Click to expand...
Click to collapse
http://forum.xda-developers.com/showthread.php?t=583638
Tweak: 7
Thanks for the help. I know it may sound silly but I need this for Pandora, I'm not happy with other music solutions. Since Pandora and evil providers do not want pandora on HD2, I am forced to use an old pandora cab which is designed for a hard keyboard.
felixdd said:
The only button that can be modified is the call button. The only functionality that can be added is allowing it to execute an executable by holding down the call button.
What you do is you create a shortcut called "long_send.lnk" and put it into the \windows\ directory. Whatever the shortcut is directed towards, a long-press of the send key will trigger that programs.
Click to expand...
Click to collapse
You shouldn't use this method. The link is also triggered by pressing the call button when you want to answer a call (not a long hold - just a press). It doesn't answer the call either - just does the long_send shortcut.

Resources