VK_SNAPSHOT ? - Windows Mobile Development and Hacking General

Has anyone tested simulating the VK_SNAPSHOT to get a screen snaphot on the clipbpoard? When I do a snapshot I read the pixels but if VK_SNAPSHOT works it would be much easier. I have no painting application that has a paste option so I have no way of testing it unless I code it myself and I am a bit lazy for it.

Related

posibility of multitouch on universal or similar htc phones

before we go any further, id like to point out im not a complete luddite and ive thought about this a fair bit before posting...
looking at the iphone vids, i notice that multi touch pretty much means dual touch. i expect their technology allows for more than two fingers, but the space and OS dont really allow for this.
in playing with my univ, i notice it does some kind of averaging between to fingers - so possibly at a low level u could get multi-touch - but logic says if this is possible, sure it would have been done by now.
my logic also says this:
if u get a second touch screen plate (i beleive that the touch screen element is a layer over the screen - if this isnt true, my logic is flawed) and install it over the top of the current screen - but rotated 180 degrees, and there is the provisioning for a second touch screen input (probably unlikely but surely u could hijack something else such as the serial used for irda) then if you can read the top left touch of each screen, u should have fairly accurate multi touch, good enough for the cheesy 'grab photo and resize by stretching'
am i totally wrong here? is there any point looking further into this?
ps. in writing this, it also occurs to me that the iphones biggest use of this is the photos - which are always in the same place, scaled on correct aspect ratio etc - theres no need for two fingers - u could just grab one corner to stretch it and itd be a very similar efect
Nope, sorry.
Dear Alan,
I thank you for your insightful reply. I feel you have bettered the forum and the community as a whole with your intelligent wit and your interesting and thought inducing contradictions to the theories that i presented.
Without your thoughts I may have been tempted to push these ideas further, maybe even get out a soldering iron and a copy of visual studio, but I can clearly see that I am mistaken in where this project could go and will not further waste my time.
I must thank you kind sir, for your thought and advice. You are a squire and a gentleman.
Lol
I don't think DIY hardware upgrades have ever made it far - consider the viability of GPS on the Hermes - it does require one to pop out a soldering iron to play with the idea. So your market is already down to a fraction of a %.
But I'm sure you could wire up a bluetooth or even IRDA multitouch capacitance layer... However, from a theoretical point of view - is it worth it? I considered the idea, and the Universal/Athena might make sense with your bigger screen, but on your average Hermes, I can barely get two fingers on the screen without obscurring most of it.
Like momentum based scrolling, I think multitouch on such a small screen is kinda gimicky - as you said, it's easier to write logic to pin one corner, free rotate with a finger on the other corner, enlarge, zoom etc. Ie ergonomic single touch.
Multitouch, even if possible on HTCs, barely seems to have a practical milieu IMHO on devices with screens <= 3 inches.
V
djboo said:
ps. in writing this, it also occurs to me that the iphones biggest use of this is the photos - which are always in the same place, scaled on correct aspect ratio etc - theres no need for two fingers - u could just grab one corner to stretch it and itd be a very similar efect
Click to expand...
Click to collapse
I am totally agree with you. and there are some other relatively simple solutions that can be used to simulate "multi touch actions" on photos.
for an instance,
D-PAD can be used for photos enlargement:
press both "left" and "right" - scales photos up
press both "up" and "down" - scales photos down
or other way around, etc.
this one not so difficult to implement.
also, it is quite easy to emulate multi-touch action on single touch display itself.
How? if we have applied layer consisted from interleaved pressure sensitive and non-sensitive spots, then having two fingers moved in opposite directions accros this layer will likely create sequence of pressed spots that can be easily analysed and interpreted in guesture.
my understanding is that while your left finger is moving to the left and crossing pressure non-sensitive spot, there is a good chance that your right finger at the same time will be crossing presure sensitive spot and moving to the right. this creates easy to analyze patern.
I believe that logic behind this idea is simple to primitive and guaranteed to work. "public domain" 20.06.2007.
are there any existing apps to get the raw output from the touchscreen (ive got nothing against coding my own, but no need to re-invent the wheel if it already exists)
the more i play with the univ and more than one finger, the more that it almost seems like its multi touch dumbed down to single touch. the averaging it does is rather uncanny and im sure if we can see whats happening before the os gets a look in we can work something out

[PRJ]Teeter level editor NOT RELEASED - help needed

Please don't get excited, this is far from finished, and I'm about to go away for a week.
What I have done so far has taken about a week, but I guess its still a month away from a beta release,
sorry about that but I'm doing this in my spare time.
After reading this thread, I thought this would be a good project to learn VB.net with.
I did a bit of VB6 years ago, but since then its been mainly web stuff (php, javascript, sql),
more recently I have been studying oop Java with the Open University.
I'm going to look for a good VB.net forum when I get back, Ill probably need some help to finish this.
Let me know if you know of one, or even better a VB.net for windows mobile forum
So far, I have read the text files in and drawn them to the screen using GDI+.
The next step is to write the code to let you edit, but before I get to that I need a little help with something else.
The images I'm drawing to screen do not line up perfectly with the levels in Teeter,
have a look at the first 6 levels on this page to see what I mean.
These are composite screen shots, I have overlaid what my program draws onto the real levels in Teeter.
You can ignore the starting dots as the ball had moved by the time i took the screen shot.
My guess is I need to apply a transformation of some kind on the data before I draw it to the screen
(and eventually in reverse before I write it back to the text file),
but I'm not 100% sure if that's right, am I missing something about why this is happening?
Will there be any problems with this approach?
Maybe I can just move the holes a set amount, but what about the walls?
Anyone have any ideas?
Hi
Im not a coder, but just my observation. The black lines that you draw go from corner to opposite corner on each graphic, minus the drop-holes but there still in the corner.
My gues is the coding is seeing this as a full object. So that data that you are pulling and showing looks correct.
Ahh, yeah, so maybe the coordinates of the walls represent the top left and bottom right of the walls, not just end points.
Ill make some screen shots of the rest of the levels to check.
I guess the levels where the walls are not straight up or straight down will give more clues.
Thanks
Glad i could help
I code in php and using the GD graphic librays to display line graphs etc always do have stripped down co-ordinates, i suppose its so you dont have to use loads of info just to draw a line. top corner, bottom corner is far more speedy then drawing 6 coordinates or more.
How have you dound going from php, javascript mysql to vb? I keep getting tempted by vb and id love to make some interesting things for my mobile.
Im pretty much high level php/sql medium javascript, high level xml. Where would you recommend i begin? Cheers!
PS: im from Leeds so just up the motorway lol.
My memory of VB6 is that in general, all the books are wrong.
I really struggled to find examples that worked without fiddling around with it.
VB.net has been a similar experience, maybe a bit easier because Visual Studio has improved so much. I'm still a massive noob with it so I cant really give you that good an answer.
I'm starting to realise that the reason I find programming for the web so much easier than for windows is that the latter has so much more to deal with.
If you think on the web, your playing field is the browser, in windows, your playing field is the OS. There is so much more that you can do, finding help with what you want to do is so much harder.
Some people are very good at working out how to get something working, it sometimes takes me hours to solve one little problem. I don't have that much formal training in programming, so I tend to work by fiddling with things until they work. The difference in php is I've seen so many working examples that I know what I am doing is 'a good way' to be doing it.
In VB I have no idea if what I am doing is good, its just the only way I've found that works. Eventually I will release the source files for this, in the hope that 'good' VB programmers can help me do things in 'a good way'.
Where to begin? Get yourself a copy of Visual Studio, there are loads of versions, don't ask me which one you need, I don't know, I got mine of a friend who runs a software company, they have some package of set software from MS and more licenses than she needs.
Bookmark the MSDN library and start reading
All I use at the moment is that page and google.
Good luck!
Problem solved, it was pretty simple in the end
The top left, bottom right thing dzign-it pointed out (many thanks),
and the gdi draws the hole with the coordinates you give as top left.
I can move on to the actual editing now
Hey
Great to hear, not many people seem interested in this lol, i am though, a level editor would be fantastic, and im sure when you have a beta out for people to start making thier own levels etc..everybody will jump on board.
yeah go for it
go for it hellodavedave. People will be glad.
and credit to you
yeah!
That would be nice!
My little 2-year-old girl loves Teeter but she only solves the first level.
I'd like to have a "kids version" with only a green hole in the middle and kind of these easy things...
(yeah, I know: WHAT!? You give your diamond a baby...!? )
Has any progress been made on this? I'd love to see this working
There is now a level editor. You can download a new level here.
http://wmpoweruser.com/?p=1536
Surur

Need help with .net graphics. sample project attached

I am trying to do some custom controls, I've done some mobile work lately, but just typically using standard controls and an owner draw list. I want to try to do more "custom" drawn stuff.
In this project I'm trying to somewhat mimic the htc random access that will support multiple "lists" for this new project.
I'm new to the graphics (2d) stuff and need a bit of help. In this sample project I want to be able to draw the letter in the center of the screen, I will have a box behind it (gradient eventually I hope) so I need to be able to draw to the screen since its outside of the controls bounds. Thats no problem, but how do I clear what I've drawn?
here is a link to my code, if someone could please take a look.
where you should look is in the RandomAccess class, in DrawStringbox
http://createdevcode.com/code
thanks a million!
been trying to find some examples on the web, found one in full .net that sorta does what I want but of course I don't have access to all the PMEs in compact framework.
again, any help would be apprecidated on how I can draw to a "layer" on top of my form and have the form paint properly once I want to get rid of that layer and not have any left over graphics on top of any controls.

[PRJ][BETA][DEMO] Screen lock utility / concept

Hi Everyone,
I don't know if I'm just reinventing a wheel here but I encountered a problem with screen lock software and prying eyes. Basically it doesn't take long for repeated use on a single part of a touch screen to be visible at certain angles.
I had one idea to help prevent this and made a quick demo/beta app.
Wondered if anyone on here had any thoughts on the project before I commit too much time into it.
I'll work on screen shots...
The installation is pretty painless - there isn't one (lol) - just unzip the exe and run, make sure you have .NET 3.5. There's a ABOUT page displayed (with a real exit menu) and details / default PIN.
Comments welcome, but remember its the concept on display, not the desing (and distinct lack of graphics).
More Information
It is obviously developed for touch screen devices without a keypad, which I imagine circumnavigates this problem.
It has been tested in the emulator on 320 screens, and on Touch HD. I'll try it on the Magicinan, and Hermes later.
If anyone would develop such app, it would be great ! I was searching for months for something like this. Please, if anyone can develop such app for WVGA screen (SE Xperia X1) it would be great & very appreciated.
For avoiding the mess with downloading, unzipping, copying to emulator dir, running the emu etc, it's usually wise to post screenshots so people immediately grasp the idea.

Any ideas on how to take over the screen

Hello everyone!
I'm researching a little bit for a project at my university. I've got loads of books to educate myself, but instead of just going through them from the very beginning I would like to better orient myself. Any insights you might have would be very appreciated!
Basically I'm thinking about a way to make the screen respond to what's happening to the phone, independently of the app running in the foreground at any given moment. For example
the phone drops under the table where it's dark and the phone's screen begins flashing to make it easy to find,
you tap the side of the phone, or swirl it around playing a game, and the screen tints itself red giving an impression of taking in some damage
Obviously this would have to be an app connected for example to the accelerometer, able to modify or overlay what's currently being displayed. Is that stuff even possible?
I'm not expecting a solution here Just some brainstorming ideas that would send me in the right direction. Names of classes, sections of documentation, stuff like that. Thank you!
Do you look for ideas on how to overlay the screen? That's really easy. Look for WindowManager and System_Alert_Window.
But I don't know how you could code the other thing. For example a few devices have a light sensor which you can use - but for more complex actions this will be difficult.
Thank you EmptinessFiller I´m not really looking to launch popups.
I´m looking for a way to tap into the software or hadrware renderer and for example adjust brightness or tint the entire screen. Something my own, buggy CAT B15 does once in a while when I turn hardware accelleration on (it paints every interface item in a funny colour).
This would pertain more towards modifying the OS itself and creating a customized version of Android
Read this article a while ago whilst looking for stuff on surfaceflinger...might be of use to you....
http://jsharkey.org/blog/2010/07/01/android-surfaceflinger-tricks-for-fun-and-profit/
Sent from my AllianceROM'd S5
Excellent Goldie, thank you very much. That´s exactly the type of pointer that i needed!

Categories

Resources