Regarding The Multitouch Capacitive Input - Touch Diamond, MDA Compact IV Themes and Apps

I was doing some development a bit ago, and accidentally stumbled upon what seems to be events related to the capacitive panel. When the user puts his finger down on the panel, a message is sent to the window with a MsgID of 0x00000481. When the user takes his finger off, another message with the same MsgID is sent to the window. The values of LPARAM and WPARAM also change. My guess is that the LPARAM and WPARAM are either pointers to additional information, or perhaps can be decoded into x,y positions along the input panel.
I don't have time to research this any further, but figured maybe someone else would want to look into it.
Koush

This is very interesting. I think schaps has figured this already??

Nope, I don't think anyone has reverse engineered it yet.

Related

Scroll bar control, accessing, WM_HSCROLL

Hi all (and no worries vijay555.... I'm new to forums and my Axim x51v... hope I'm doing this right... and thank you for your assistance!!!)
Keystrokes as code?
Specifically Excel Mobile keyboard shortcut Alt-PgUp/Dn (scrolls one screen width left/right)
I've created several Keystroke "routines" to minimize stylus use in Excel Mobile. I've mapped to hardware buttons, and they all work great... except Alt-PgUp(and PgDn). In Excel, these key combos will scroll one screen left or right, respectively. Other similarly-coded "routines" work as expected.
I've worked around this for now by recording screentaps in Excel's horizontal scrollbar. Unfortunately, the location of that s/b depends on whether SIP is active. If it is, the vertical co-ordinates of the screentaps become irrelevant and/or potentially destructive to my intended result. I prefer to avoid "position dependent" commands whenever possible for obvious reasons.
I have several other programs at my disposal to effect the Alt-PgUp/Dn shortcut(s).... IF I knew how to define the values(?) of Alt-PgUp/Dn in a script.
(MortScript, PHMkeys, Pen Commander, Spb FullScreenKb, PDA MediaKb)
I've been all over the web, and I think I understand keystroke scan-codes and values... and how they work together. Is there something akin to an ASCII "value" for this key combination? (099/0A1; 073/081; 153/161)?
Any ideas are appreciated. I've no aversion to research or work, but can't figure out what to ask or where to look further.
(I just really need a more direct/reliable functionality to scroll entire screen at a time left/right.)
Thanks in advance if anyone can help.
Dell Axim x51v WM5 (if it matters)
p.s. Thanks to Vijay555 for "permitting" this post here, and for putting me on the track of WM_HSCROLL (which I haven't had a chance to study yet).
Guys, just to say, there's never any reason to ask me for permission to post. As far as I'm concerned, post whatever you want using your own good sense!
pro-fit2:
Try something like this, as we discussed in the other thread:
Code:
//get current foreground window
HWND CurrentForegroundWindow_hwnd;
CurrentForegroundWindow_hwnd=GetForegroundWindow();
SendMessage (CurrentForegroundWindow_hwnd, WM_VSCROLL, SB_PAGEDOWN, 0);
V

converter program (finger friendly) need suggestions

Hi wanted to create my first program..
right now Im trying to make a unit converter that is finger friendly..
so far I've tested it and here is what I have so far..
any suggestions? regarding the buttons positions, the interface, etc?
thanks
Hi Providense,
Looks good so far.
Do you have a development schedule as to what it will convert?
Keep it up.
John
Provedence,
It seems that some people like to have a configuration facility.
So perhaps some suggestions:-
Favorites so that the list can be tailored to favorites for that person to save a more compact list of 'things to convert'
I would be happy to have any theme for now but cooks may prefer to add there own theme.
I have used this type of function with calculator type programs but they can become unweildy so one that is specific would be usefull.
Thanks
John
thanks Johny1fin
as of now these are the things i've done
Temperature:
degree Celsius
degree Fahreheit
degree Rankine
degree Reaumur
kelvin
Acceleration: (still doing it right now)
centigal
centimeter/square second
decigal
decimeter/square second
dekameter/square second
foot/square second
g-unit(G)
gal
galileo
gn
grav
hectometer/square second
inch/square second
kilometer/hour second
kilomter/square second
meter/square second
mile/hour minute
mile/hour second
mile/square second
milligal
millimeter/square second
still a long way to go. But the Acceleration should be done by today.
Then I'll add Area, Date/Time and etc
I like the idea of favorites. I'll see if i can implement that. Im still a beginner at programming. Using VB.net 2003 right now
oh by the way. Here's the main menu, where I will put all the buttons
providence said:
Hi wanted to create my first program..
right now Im trying to make a unit converter that is finger friendly..
so far I've tested it and here is what I have so far..
any suggestions? regarding the buttons positions, the interface, etc?
thanks
Click to expand...
Click to collapse
Providence,
It may be a limitation of the APIs but could the vertical scroll buttons be next to each other horizontally rather than vertically as this may produce larger buttons?
John
Look nice.. however, on the finger friendly issue, you may want to avoid the scroll list (on your first screenshot) and have another screen for the choice of (say) different temperature units. Something like, making a screen (of your second shot) for temperature units. If you get what i'm trying to say
thanks for the feedbacks i've changed how the scrolling works. Now im using a custom button for that.
Looking good providence
I am not sure if you like this idea, but I think it will be more useful if you can add:
- Currency converter
- Currency quick view (to view several currencies at once)
There is an example of a very nice and complete project with source code here:
http://www.codeproject.com/netcf/PocketCurrency.asp
Add option to have automatic currency update as well
[ x ] Update when connected to ActiveSync
[ x ] Automatic update every X hours
hi, well the main idea was to create a finger based Unit conversion program. To add Currency Converter would be a challenge for myself.
Since first of all, Currency changes daily, so there must be a way to update it. Secondly, im still learning how to program by self teaching myself on my free time.
By the way, Here's the latest screenshot of the program.
I fixed the buttons so its easier to use.
unfortunately, this will only work on PDAphones and not on smartphones. Since you'll need to use the touch screen as input method.
Here is an idea, as mentioned by one of the post above, instead of stacking your scroll button up and down, it may save you that more space if you were to stack them left and right.
From what it seems, the < and > , are buttons, which you use it to 'affect' your lists. If you were to (example) sandwish your list in between these two buttons, you would save like another 2 button height. Example.
Currently, you have the layout
Code:
. item1 <
. item2
. item3 >
. item4
if you can just do this (which is possible in VC, not sure about VB), instead
Code:
< .item1 >
.item2
So, instead of 4 item height, you are now only left with 2 items height.
ahh i see..
I tried doing it
< item 1 >
item 2
but i find it harder to navigate, since when you go back you have to drag your finger across the other side of the screen. And while doing that, you are blocking the item list with your finger.
I dont need to save space, i think i got everything in there..
by the way, here's the test i took
then again, if i put them on the sides, it makes easier for those who are left handed as well
The spaces you save, may able you to bloat up the keypad below.. from what it seems, now they are on the 'flat' side of it.
If you think the "left-list-right" is not very finger friendly, you can try the "list-left-right"? That is
.item1 < >
.item2
Hi thanks for the suggestions..
right now here is what i have, and will probably be the final change in the button positioning..
i got big fingers and I can use them without stylus.
Should have a pre-alpha version ready soon. As of now I've done temperatures and acceleration.
Will add more soon

Programmatically Controlling Backlight Brightness

I am trying to write a Today screen item that will allow a user to quickly change the backlight dimmer level (i.e. hit a button go to x% hit another button go to y%). I have been able to find plenty of information regarding device power states and turning on and off the backlight, but nothing what so ever on how to control the current dimmer level.
Could somebody point me in the right direction? Specifically I am hoping to find a low-level API function that I can easily hook into (which is what I would expect) and also related registry keys (which I assume are what's being used by the backlight control panel).
Thanks in advance!
Look for MVBklight, it's a backlight app, really great with today plugin, pop up dimmer and cycling functions. Hope it helps you to do your own stuff.
Thanks for the above link. I think I may have actually found an english version, but I still haven't given up programming my own today item (especially since I want to learn the ins and outs of Today Screen items in general).
I think I've narrowed it down to the following
// Get a handle to the LCD device.
hLCD = CreateFile(TEXT("\\.\LCD"), blah, blah);
// Get the display brightness
DeviceIoControl(hLCD, IOCTL_VIDEO_QUERY_DISPLAY_BRIGHTNESS, blah, blah);
The problem I am having now is that when I specify the above device (\\.\LCD) I get a file not found error. I have a feeling that the device name may actually be different (even though this was an example given on MSDN it was for a laptop LCD i believe). How do I know that this is the proper name for the device? Is there a way to enumerate device names? Do I have to create a link for a device name to a device?
Thanks again.

How to adjust touch registry alignment numbers?

I have an Omnia, which seems very hard to align. In the registry this is defined by a series of number in the registry entry:
HKEY_LOCAL_MACHINE\Hardware\Devicemap\Touch
For example: ”519,503 177,881 182,129 847,127 849,872”
On my Omnia, the alignment provided (above) is way off; and when I realign via the Screen-Align tool, it always seems to be a bit off. For instance, I now find I have to type slightly above each item in order to select it properly.
I figure I can tweak these numbers to get the 'perfect' alignment for my Omnia. But I don't know what each of these numbers represent and I can't seem to find any docs on it.
Does anyone know what each set of these numbers represents? Or where to find documentation on this? Thanks.
SimpTheChimp said:
I have an Omnia, which seems very hard to align. In the registry this is defined by a series of number in the registry entry:
HKEY_LOCAL_MACHINE\Hardware\Devicemap\Touch
For example: ”519,503 177,881 182,129 847,127 849,872”
On my Omnia, the alignment provided (above) is way off; and when I realign via the Screen-Align tool, it always seems to be a bit off. For instance, I now find I have to type slightly above each item in order to select it properly.
I figure I can tweak these numbers to get the 'perfect' alignment for my Omnia. But I don't know what each of these numbers represent and I can't seem to find any docs on it.
Does anyone know what each set of these numbers represents? Or where to find documentation on this? Thanks.
Click to expand...
Click to collapse
to me it looks like the coordinates of the points/crosses you tap the screen when you do the alignment. just a thought that the coordinates are in order of the crosses you make.
i hope u understand what i mean.
p-de-geus, above, has got it right, but there is one more thing.
The points are those of the five tap points in the Align Screen setting and in that order. ie, Centre, Top Left, Bottom Left, Bottom Right, Top Right.
Your Omnia is reading the points X,Y , where Y is measured up from the bottom of the screen.
On an HTC Trinity, mine reads "502,514 216,218 233,813 791,806 786,223"
Here the X values are the same but the Y values are coming down from the top of the screen. This probably depends on the actual touch screen manufacturer.

Registry setting to improve screen response and reduce typing error

hklm/hardware/setting/touchpanel/hwmode=1
pls feedback if it helps you.
my HWMode value is 212 lol.. xD
try value 380 and restart your phone. then swipe the slider icon from left to right in very fast motion.
then try value 1 and restart phone. do the same thing, swipe the slider from left to right and notice the different.
value 1 can also prevent accidental lauching of quick link programs then swiping home page up / down.
this can also allow you to type faster and get the full words. (try "hehe" / "haha")
if you try both value 380 or any large value and value 1, you'll notice the difference, concluding that large value makes the screen response more retarded. value 1, being the smallest is the fastest / most responsive.
the bsbtweaks sensitivity tweak sets this key to 201, personally i like it up around 250.
using this now.. lets see.. i already like the response, lets see if it really helps

Categories

Resources