yashsingh1/xdaforums huggingface dataset:
[Windows Mobile Software Development] l3v5y:
The sqrt seems a sensible thing to avoid! :D

have you published/released code to yours? if so, I can take a look for you.

It might be something to do with me using HTCAlbumClass as the class name. try changing that and see if it breaks!
[Windows Mobile Software Development] almosmm:
i think it's Smoother than before, but also there's a problem ..

put your both fingers at the same time on the screen, then hold one, and move the other, you'll see that the finger that is not moving, is MOVING!

any idea ?

also cant user a single finger like before
[Windows Mobile Software Development] l3v5y:
I think I'll implement some kind of cut off, so one point stays in the same place depending on a set of parameters...

Not being able to use one finger is my fault, I've not implemented one finger stuff to save on having to debug that! :D
[Windows Mobile Software Development] scilor:
My Code is on the way in the next day, due to it is now very dirty :D

But at my Website I have released the main part of it, more will come later.

Also here the "WndPrc" part

Public Class SubclassHWND
Inherits OpenNETCF.Windows.Forms.NativeWindow
'Const WM_APP As Long = &H8000
<DllImport("coredll")> Public Shared Function RegisterWindowMessage(ByVal lpMessage As String) As Integer
End Function

' Call the base class WndProc method
' to process any messages not handled.
MyBase.WndProc(msg)
End Sub
Public Function LoWord(ByVal nDWord As Long) As Long
LoWord = CLng("&H" & Left$(Right$("00000000" & Hex$(nDWord), 8), 4))
End Function
Public Function HiWord(ByVal nDWord As Long) As Long
HiWord = CLng("&H" & Right$(Right$("00000000" & Hex$(nDWord), 8), 4))
End Function
End Class

The crash can only come from there, because in there exist calls from system dll's which cannot be debugged.

The HTCAlbumClass I cannot use, because the Class is always crap like '#NETCF_..." and I havn't found a way yet to change it :/
[Windows Mobile Software Development] Archer:
Would I be correct in assuming that this has basically been hacked from the HTC album, where pinch-to-zoom is enabled? I only ask as this is not true multi-touch, but dual-touch. Okay, that's pedantic, but I'm really looking forward to true multi-touch capabilities.
[Windows Mobile Software Development] Achiko:
C#

Same, but C# and without OpenNetCF.

Code in .txt file:
[Windows Mobile Software Development] blutz:
I Wonder how its done on htcalbum.exe where its HTCAlbumClass receives WM_LBUTTONDOWN when holding one finger, and then when adding a second one it receives WM_MT_BEGIN..

it is not possible with the pinch whitelist method, but its good to know it exist.
[Windows Mobile Software Development] scilor:
Ok I have now updated my app, it is stable now and has already got a little gravity ball included, just for playing a little bit.

Video(should be in some minutes) and download (and the important code snippet) on my website

http://scilor.ac-host.net/hd2-leo-real-multitouch.html

And sorry, the video is bad, I am very tired :D
[Windows Mobile Software Development] l3v5y:
That doesn't actually work...

It's one or the other. If you leave one finger down too long there's no multitouch begin event, and if you press both down, there's no WM_LBUTTONDOWN.
[Windows Mobile Software Development] l3v5y:
Essentially, but not quite.

It's been hacked from the touch screen drivers, by using HTC Album as a test app for what happens.

"multitouch" generally refers to more than one touch, so this actually is multitouch, even if it is dual touch as well. :P

It would be nice to have more than two points of multitouch, but I can't see many applications for it, and it will take more time to find and implement...
[Windows Mobile Software Development] l3v5y:
Hehe...

That looks pretty cool :)

Look forwards to seeing pong or similar (or I might get there first! :))
[Windows Mobile Software Development] scilor:
:D I have some pong game here but I need to put it into the multitouch app.

But I lack of time, I have to make a Joomla template out of a Photoshop-Design... this weekend

Also I have a new idea how to hack in into other apps WindowMessages.

Maybe I will get it to work :)

Also @ l3v5y do you have any website :D
[Windows Mobile Software Development] blutz:
I'm quite sure it is working. did you try watching the HTCAlbumClass message window on Remote spy?

you can hold one finger down forever, WM_LBUTTONDOWN fired of course.. when adding second finger you get all the WM_APP+1631, WM_APP+16392 messages, as well as WM_LBUTTONUP afterword

might be worth checking this out..

EDIT: this behavior is when using the actual HTCAlbum.exe, not some fake class :)

EDIT2: might be working on a fake class as well.. I'm testing this.
[Windows Mobile Software Development] scilor:
I get really crazy because of WinCE.

It seems to be impossible to hook up Window Messages (except Keyboard) in Windows Mobile.

Any Idea guys to manage that?
[Windows Mobile Software Development] blutz:
you mean in .NET?
[Windows Mobile Software Development] l3v5y:
Maybe I was wrong... Does work... Will check it out further...

Might have been something I was doing at the time, but I could only get either the WM_LBUTTONDOWN or the HTC Multitouch messages, now I can get both...
[Windows Mobile Software Development] scilor:
In .Net it would be nice :)

Also C++ would be enough for the first step, so maybe a wrapper can be done.

Mhh you get Both?

I only get the normal Mouse messages with one finger or I get the Zooming messages while using 2 Fingers (Which I convert then to Mouse messages, which works fine for me except one little bug)
[Windows Mobile Software Development] l3v5y:
Right... It works with HTCAlbumClass as my applications class... Now we need to work out why, and make it work for other classes... :D

Another interesting thing is that with HTCAlbumClass, my application gets the standard WM_GESTURE messages with one finger held and one doing the gesture... Damnit! Lets have a look at TouchGL and SmartTouch! :D
[Windows Mobile Software Development] l3v5y:
I do get both, if my application class is HTCAlbumClass, which you can't do with .NetCF can you?
[Windows Mobile Software Development] blutz:
works great when the class name is HTCAlbumClass, without the Pinch registry.. I used it in the MorphGear project I'm working on.. added multitouch to the game pad
[Windows Mobile Software Development] l3v5y:
That looks pretty cool...

Thing is, I really don't like the idea of spoofing the class... It will cause issues with multiple bits of software, or just using HTC Album...
[Windows Mobile Software Development] blutz:
yeh, this is ugly..

may I assume this class name is hard coded to one of the dll's ?

any useful way we can contact htc? let them know we are interested
[Windows Mobile Software Development] l3v5y:
It is hard coded, I know it's in SmartTouch.dll, and probably in TouchGL as well.

I have tried to contact HTC, got told to send a letter (snail mail) to headquarters... So, who's up for that? (No guarantee it will work though...)
[Windows Mobile Software Development] scilor:
I cannot change my class in .NetCF it is some "#NET_CF.." class always...
[Windows Mobile Software Development] Archer:
I want to develop a guitar app where you have the top 3 frets of the neck on the screen and an area at the bottom where you can pick or strum the strings.

Quite ambitious, but doable, once we get full multi-touch capabilities.
[Windows Mobile Software Development] scilor:
Here we go, I have created a dll for easy use :)

http://www.scilor.com/hd2-leo-dotNetCfMultiTouchDLL.html
[Windows Mobile Software Development] bilowlex:
Thanks for your dll.

I'll try it :-)

Edit: You gave an example on your website with a method CatchWndProc who need one parameter, a form, but in your dll this method request three parameters, a form and two int, PositionFixX and PositionFixY.

What does this two int correspond to?

Thanks
[Windows Mobile Software Development] bilowlex:
After few tests I've understand what this to integer correspond to.

This is the origin of the multipoint detection.

If you put the location of middle of your screen in this to integer, you can get some negative value on the top left of the screen.

So in both case I think the correct value is 0, 0, if you want to have the same origin that the original mouse_move event.

I hope my english is not so bad :rolleyes:
[Windows Mobile Software Development] scilor:
Thank you for, I will fix it on my website.

You will need this position fix if you want multitouch in a control. So you can add just the Control.Position.X and the Control.Position.Y :)

I will change that option so it can be changed at anytime (if the control get pushed around)
[Windows Mobile Software Development] VanKurt:
Hi scilor, nice work!

Just two quick questions:

1) I get multitouch events only when both fingers hit the screen at the same time. Putting them down one after another does not work.

Is that intended?

2) What licence is your library under? Couldn't find that information on your website...

Kepp up the good work :)
[Windows Mobile Software Development] scilor:
1) That is a problem with the HTC-Driver and NOT intended! (May be fixed)

2) Use the Library like you want, you will just need to keep the filename of the DLL, and of cause it would be nice to put my credits somewhere (GetInformation String of the Class).

PS: Use my thread for questions related to the library (http://xdaforums.com/showthread.php?t=595982)
[Windows Mobile Software Development] momo1234:
Hi l3v5y & SciLor:

Could the driver of hd2 or hd mini and the touchgl.dll etc could be used on the other device, such as Rhodium ?
[Windows Mobile Software Development] scilor:
This wouldn't work just because the Rhodium has a pressure sensitive display, while the HD2 has a capazitive one ;)
[Windows Mobile Software Development] momo1234:
You mean that cannot judge the multi-touch from the level of drivers of touch screen, right?
[Windows Mobile Software Development] scilor:
The Hardware is not capable of multitouch, only the new capacitve display are able to!
[Windows Mobile Software Development] cruuz:
hello,

sorry for the question, but i didn't found a response. Is multitouch meaning only the input of two fingers is recognized? Or are more then fingers also suported?
[Windows Mobile Software Development] scilor:
With my DLL only two fingers on the same time are supported.

The display MAY support more fingers if we can get the driving giving the information to use :D
[Windows Mobile Software Development] Thraka:
I hope reverse engineering for this hasn't stopped. We need to be able to fully utilize the capacitive touchscreen of the HD2, or that extra hardware cost is going to waste! :)
[Windows Mobile Software Development] scilor:
If there is a new idea found you will hear from here in here
[Windows Mobile Software Development] sionyx:
MT and Today Screen Plugin

Hello all HD2 developers.

I've tried to add MT functionality to my Today Plugin but it does not work.

I tried three ways to add my plugin into white list:

1. Add class name of my plugins window to the Registry White List (then changed Class name of plugin window to HTCAlbumClass as another try).

2. Add class of desktop window "DesktopExplorerWindow" to the Registy. This class name sometimes apears in debug output as a Current Class Name.

3. Add ProcName string with "shell32.exe" value into white list key.

I did softreset after each try, but it makes nothing.

I get registred message value correctly in my plugin. Another test application is works well. But I still can't make it work with Today plugin.

Any ideas how to solve this problem?

P.S. Anyway thank you for your efforts guys!

P.P.S. I look at Manila and didn't find any page that uses MT. Hope it's not impossible...
[Windows Mobile Software Development] abmantis:
I've not tried this yet (I will soon). But, does this work or not?

EDIT: I've used the demo source and changed the class-name and it did not work. Added the new class-name to the registry and after a reset it works :D

Thanks!
[Windows Mobile Software Development] abmantis:
I'm finding it difficult to make it work on child windows... they do not receive the messages :/

I think this is the reason why sionyx can't make it work on his today plugin...
[Windows Mobile Software Development] scilor:
You may try to enable the parents window class or path in the registry. Maybe then you are able to get the multitouch events
[Windows Mobile Software Development] abmantis:
Thanks but I've tried that already and it did not work :/

Adding the parent window class to the registry whitelist makes it receive the multi-touch event messages, but not the child window...

And I'm kinda out of ideas :(
[Windows Mobile Software Development] scilor:
What about a WndProc Hook of the parents Windows and pushing/filtering them to the child form?
[Windows Mobile Software Development] abmantis:
I tough of something like that but did not know it was possible, and I did not know it was called a WndProc Hook! Thank you, I'll try that. :D
[Windows Mobile Software Development] mike2nl:
How is the status at all? Some news for us? Any update for us users?
[Windows Mobile Software Development] scilor:
Real nice Multitouch won't be possible because of the bad hardware (Confirmed from Android those Jumping Cursors :( ) it is not possible to make it any nicer as it already is.
[G1 Q&A, Help & Troubleshooting] jweick:
Hello,

I have searched but have not found an answer. I am running Cyanogen 4.2.5 after upgrading from JF 1.5. I have followed the directions from Cyanogens website wiki for partitioning my sd. I have a class 6 8 gig card. It shows the partition according to print but it only seems to be getting somewhat smaller in size. Meanwhile the phone memory is getting considerably smaller after installing apps. I don't have a linux swap is that necessary for app2sd to work? Is there a way to see if apps2sd is working? I don't think it is. Has anyone elde had any problems or guidance?
[G1 Q&A, Help & Troubleshooting] evilkorn:
What type of ext are you using?

No, a2sd is not dependant on swap.

Try to reparition using the recovery image from amon_ra, link in my sig.

Decrease in phone memory could be due to cache from other apps.

To check if a2sd is working check the available size of the 2nd parition.
[G1 Q&A, Help & Troubleshooting] jweick:
I am just running ext2 currently as I have never been able to get it to work. The phone memory gets low everytime i install an app.
[G1 Q&A, Help & Troubleshooting] evilkorn:
See the 3rd suggestion, and upgrade to ext3 while your at it.
[G1 Q&A, Help & Troubleshooting] jweick:
will do thanks for the quick input
[G1 Q&A, Help & Troubleshooting] dongorgon:
Apps2SD on cyanogen 4.2.13 with G1

Hi All,

I am new to the website, I recently updated my G1 with 4.2.13 and I used the SDpart.txt from dusty51 to partition my SDcard. I started downloading apps to my phone however my internal memory is still getting low. So it seems to me that the Apps2SD is not working.

Does anyone have any ideas?

Thanks
[G1 Q&A, Help & Troubleshooting] hbguy:
i have the exacted same problem but during the sdparted.txt in console it is able to make the 3 partitions but the says err: /dev/blocl/mmcblk0p2 not found.

What's going on?
[G1 Q&A, Help & Troubleshooting] Darrien13:
YOU PEOPLE ON THIS FORUM ARE NO HELP!!! (SOME ARE)

BUT I JUST NEED HELP I HAVE THE LATEST DRIVERS THE HARD SPL AND WINDOWS 7 AND EVERYTIME I ENTER THE COMMAND TO CHANGE THE BOOT IT SAYS WAITING FOR THE DEVICE WHEN MY G1 IS IN AND ITS ON FASTBOOT WHEN I GO TO MY DEVICE MANAGER IT EVEN SHOWS AS ADB WITH NO YELLOW MAKRS!!!

WHAT IS THE PROBLEM HOW CAN I FIX THIS PLEASE HELP!!!!

ONE MORE THING WHEN I USE BASIC FASTBOOT COMMANDS IT SAYS SOMETHIN ABOUT "adb is out of date' PLEASEE HELP MEEE!!!!!:mad::(:confused:
[G1 Q&A, Help & Troubleshooting] grandomegabosses:
1: don't type in all caps. nobody likes being yelled at.

2: you started another thread for something that you've asked several times? not cool.

3: people on here have been extremely helpful for you, but you start a new thread every time you don't get an answer after an hour of waiting. not how it works.

4: people may be getting upset with you because you're not being a particularly pleasant person either.
[G1 Q&A, Help & Troubleshooting] B-man007:
hes pretty much right on the spot.
[G1 Q&A, Help & Troubleshooting] wizme:
hi did you try "adb device" to see if adb can detect
[HD2 General] stBlueJay:
I'd like to have an mp3 as my morning wake up call instead of the default alarm tones. Is it a massive issue to do this? I can't seem to find an easy way to do it. I'm assuming i'm gonna have to edit the length of the file, convert it and then save it to the /windows/rings folder?

Does this sound right?
[HD2 General] terepo:
The easy way is "Klaxon", an amazing freeware application to manage alarms with mp3 song.

Another applications is G-Alarm but I have read about some problem with HD2 and is not freeware.

In my HD2 now I use Klaxon and I like it very much.

Bye

Erik
[HD2 General] mkent_barbados:
in file manager save the mp3 as a ringtone,should show up in alarms then too (although I haven't tried)
[HD2 General] NZtechfreak:
Saving as a ringtone will not add it to the alarms list, I've tried it. I used mp3splitter to chop an mp3 up, then converted it to a wav on my PC (sorry can't remember the name of the freeware that does this, something obvious like mp3towav anyways). Once converted drop the wav into the Windows folder, it will now show up in the alarm tones list (note there is a filesize restriction, I have a file just over 4MB in size, however when I tried a longer tone that came to 8MB it didn't show).

Klaxon sounds like an easier alternative to all that though!

RE: Klaxon - does it replace the inbuilt alarms UI? By that I mean when you press the alarms button on the homescreen, does it take you to Klaxon? Can you post a link to the version of Klaxon you are using on your HD2? Thanks!
[HD2 General] skippinshanghai:
Put 'em into the root directory of the MicroSD

I have an MP3 ringtone for calls and another one for reminders... worked straight out of the box without any messing around - from the Settings tab to "Sounds & Display" to "Notification sounds".

On mine, it's able to automatically access anything that's in the root directory of the Storage Card.
[HD2 General] da_ch0sen_1:
Is it possible to have the alarm on continuous ring? On default the alarm rings once, stops for 10-15 seconds then rings again.
[Touch Pro, Fuze Themes and Apps] tinpanalley:
Hi all,

My Google Maps simply won't connect no matter what I do. I get this network not connecting window that is Google Maps generated, not Windows Mobile. I remove it, reinstall it, doesn't work. All my other data and messaging work. But the program for some reason won't connect.

Could this be a registry issue that could be fixed somehow?

THANK YOU for any guidance.
[Touch Pro, Fuze Themes and Apps] jtsurfs:
More information would be helpful. Perhaps the problem you are having is ROM based? Perhaps you are experiencing data issues when Google Maps is having this issue. Make sure you are able to get to various web pages when the error occurs in Google Maps. Report back on you findings.
[HD2 General] mhmobile:
Is there any registry tweak that will allow you to zoom in closer with the album viewer software. It works great for the files I view but I need to be able to zoom in much more than it allows

Thanks

Mike
[HD2 General] Robrecht:
Correct me if I'm wrong, but I think you can zoom in as far as the resolution of each image allows. I have some pretty high-res photo's (taken on a digital SLR) and I can zoom in on them until I start to see pixels. If you have low-res pics, you'll start seeing pixels much sooner.

Zooming in any further would be useless since it can't add any detail, you'll just see pixels the size of Lego blocks.

Edit: I realize you may want to examine an image pixel-per-pixel for some reason. In that case, sorry, I can't help.
[HD2 General] mhmobile:
Thanks for your response, If I could zoom in that close it would be great. I have some hi resolution files anywhere from 6-10 MB which open fine but I can only zoom in about 3 levels. If I could go to the level you describe, it would more than meet my needs.
[HD2 General] Robrecht:
Hm... Maybe there is a limit after all. I must admit I haven't tried any files in the 10mb region.

I've taken a quick look in the registry but I haven't come across anything that looks like it might solve this. Sorry.
[HD2 General] mhmobile:
I looked in the registry too but couldn't find any reference to HTCalbum at all. Guess I'll just have to start trying all the demos of the photo apps again...
[HD2 General] Robrecht:
There's a bunch of stuff under 'HKLM/Software/HTC/HTCAlbum'. Maybe you can find something I overlooked there.
[HD2 General] mhmobile:
Thanks, don't know why Resco didn't find that ref, I thought it scanned all directories. I couldn't find anything there either. I did change a dword from 2 to 3 in wheelzoomin frames but that didn't do anything obvious so I changed it back. Wonder if HTC support might be able to help, I've read that they're quick to respond to customer software issues but since this is more of a preference issue vs buggy software they may not offer up much.
[HD2 General] mightymn:
Yeah, today I copied a 78 mega pixel image (actually a map) to my Leo and to my surprise, I can't zoom more than a certain amount in HTC Album. Anyone know a fix for this?
[HD2 General] mouki_9:
use resco photo manager, that one allows you to zoom in much more than the htc album. The newest version also supports multi-touch! :D
[HD2 General] mightymn:
thanx! Tried resco; I'm flattered how they implemented multi touch this soon! only a month and a half after Leo's release.

It's really nice and fast (even faster refresh time than htc album) but I wish u could disable multi touch rotation. It's constantly confusing pinch with rotation.