I can't help with your exact question but may have a different approach
if it fits your situation.
Does you have to manually find the address in Google Maps or do you
already have the address available. If you already have the address
there are web services that will give you the Lat/Lon coordinates.
Google Maps probably has one and I know Mapquest does because I use the
Mapquest API's for a different purpose. I use Mapquest because there
Open API's can be used behind our firewall for no cost where Google
charges a license fee if your application is not open to the public.
Whichever you use you will want to verify the licensing for how your
application works.
If this might be an option here is the link to the Mapquest Open API's
http://developer.mapquest.com/web/products/open
I have a couple of applications that display on a Mapquest map so might
be able to offer some guidance even though I haven't specifically used
the Web Service that it sounds like you would need.
Scott
-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx
[mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of David Baugh
Sent: Thursday, May 23, 2013 1:49 PM
To: midrange-l@xxxxxxxxxxxx
Subject: Getting Windows clipboard
I'm fighting with windows clipboard in an attempt to programmatically
get the contents into my iSeries session.
Here's what I need to do:
In Google Maps, find an address, then hit a button on the website to
'copy link address'. This puts a string containing, amongst other
things, GPS coordinates.
I want to get the contents of the clipboard into a string variable on
the iSeries and manipulate it to get the GPS coordinates, then display
them on the 5250 screen and ultimately write them to file.
I've got as far as writing a java class that resides on my windows
network, which gets the contents of the clipboard into a string, strips
out the coordinates and writes them back to the clipboard. This is being
called using STRPCCMD. On the 5250 session, hitting paste then gives me
gps coords.
This is far from ideal (and kinda clunky), since there's a disjoint
between that program finishing execution and the 5250 session having
access to the reconfigured contents of the clipboard.
If I can get the clipboard into a variable, I can handle the rest.
Does anyone have experience ?
Thanks in advance
David
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing
list To post a message email: MIDRANGE-L@xxxxxxxxxxxx To subscribe,
unsubscribe, or change list options,
visit:
http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx Before posting, please take a
moment to review the archives at
http://archive.midrange.com/midrange-l.
As an Amazon Associate we earn from qualifying purchases.