× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Why not just call a webservice to geocode your address? Google has one here https://developers.google.com/maps/documentation/geocoding/

You could call this using something like HTTPAPI and avoid jumping through the hoops.

Brian May
IBM i Modernization Specialist
Profound Logic Software
http://www.profoundlogic.com
937-439-7925 Phone
877-224-7768 Toll Free


              


-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx [mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of David Baugh
Sent: Thursday, May 23, 2013 2: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.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.