|
-
Apr 18th, 2008, 09:52 AM
#1
Thread Starter
New Member
Adding an event to a different application
Hi guys,
I apologize if this question has been asked, but a search didn't return anything that looked very similar to me.
Anyway, here's what I'm trying to do. I have a VB form on a mobile device, which opens a map with pushpins on it in pocket streets. What I want to do is, when a pushpin is clicked, the text box appears with some info on it, and the user inputs some key combination, etc., the form brings up information about that pushpin.
So, I'm trying to figure out if there's a way to add a event to a different application using VB. The program will be running on Windows Mobile 5.0.
Thanks in advance.
-
Apr 18th, 2008, 10:15 AM
#2
Thread Starter
New Member
Re: Adding an event to a different application
Actually, a quick thought. Say I add a keydown event on the form. Will that keydown event work even when the form isn't in focus?
-
Apr 18th, 2008, 11:17 AM
#3
Re: Adding an event to a different application
I don't see how you could add an event to an existing program, though there may be a way via API to raise an event in an existing program. However, after those two posts, it sounds like you are on a different track at this point. Hooking all keyboard events is possible, though I have never tried such a thing on the mobile platform. I'm not sure what roles each of the programs will be playing, though.
My usual boring signature: Nothing
 
-
Apr 18th, 2008, 12:53 PM
#4
Frenzied Member
Re: Adding an event to a different application
Hi,
if your form hasn't got the focus, then it won't receive the keydown event.
Rather than using Pocket Streets, why not take a different approach, and use different mapping. 'Virtual Earth' will allow you to return an event, and Franson have some tools which would accomplish what you want to do.
I think you would struggle to get Pocket Streets working, as the user can close it down, change maps, anything. Better to be in control yourself
HTH
Pete
-
Apr 18th, 2008, 01:12 PM
#5
Thread Starter
New Member
Re: Adding an event to a different application
Hi guys,
Thanks for your replies. I'm looking in to how to set up hooks, but so far no luck.
As for alternative programs, Franson may work, but we have 75 mobile devices that this needs to be installed on, and $99 a license is a bit steep. Also, those units aren't going to be connected to the internet at all times, so virtual earth won't work. Thanks for the suggestion though.
-
Apr 18th, 2008, 02:37 PM
#6
Frenzied Member
Re: Adding an event to a different application
Hi,
you can 'pre-cache' the tiles you need with virtual earth.
You need to check the licence for Franson - is it not $99 for 1 application as opposed to per device?
Pete
-
Apr 18th, 2008, 02:42 PM
#7
Thread Starter
New Member
Re: Adding an event to a different application
huh, well that may work...
But can both programs handle up to 4000 pushpins on one map? Also, the central system which creates and distributes the maps already uses Streets and Trips, which works well with Microsoft Access. What kind of a method would they both use to plot pushpins on a map? I'm going to do some research on my own, but if you would be able to answer answer those questions instantaniously, that just may work.
Thanks,
-
Apr 19th, 2008, 02:45 AM
#8
Frenzied Member
Re: Adding an event to a different application
There is some good in for VE here including links to the (old) source code for the app.
As far as the Franson tools are concerned, download the trial - I am pretty sure there are some samples in it to do what you want
Pete
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|