|
Dan - Have you tried opening Internet Explorer ( or whatever the default web browser is) with the url of mailto:joe@xxxxxxxxxxx?subject=Something&body=somethingelse Then you don't need to deal with the registry to get their mail settings. Another option is to embed the url in the DDS green screen and let the end user click it. Some 5250 emulators, such as client access, treat anything starting with http or mailto as a clickable area. You can test this in Client Access by typing ===>http://www.google.com at the command prompt. Then try clicking it. HTH, Sarah Poger Gladstone ----- Original Message ----- From: "Dan" <dan27649@xxxxxxxxx> To: "Java Programming on and around the iSeries / AS400" <java400-l@xxxxxxxxxxxx> Sent: Wednesday, October 26, 2005 7:42 PM Subject: Re: Questions on "Calling PC Commands from RPG" article On 10/26/05, Clapham, Paul <pclapham@xxxxxxxxxxxxx> wrote: > > Ah, looks like & is being treated as something that separates commands. I > don't see how to turn that off (in my 2 minutes of looking). But that's only > the start of Dan's problems. If I recall correctly he said he was planning > to simulate Alt-Tab followed by scraping information from screens displayed > on the PC. I wouldn't even try that for love or money. Especially not in > Java, but not even in a language that lets you hack Windows. First of all, there's no "screen-scraping" involved. Whatever appears on the screen is also sitting in the application's variables. Next, the MAILTO: URL is less of a mystery to me now than it was an hour ago, thanks to the links you provided. I always wondered how MAILTO: knew to open up Outlook, or Eudora, or whatever the default email client is. Microsoft's KB pointed me to look at the registry. HKEY_LOCAL_MACHINE\SOFTWARE\Clients\Mail shows which is the default client. HKEY_LOCAL_MACHINE\SOFTWARE\Clients\Mail\Microsoft Outlook\Protocols\mailto\shell\open\command shows the command invoked by the mailto URL: "C:\PROGRA~1\MICROS~2\Office10\OUTLOOK.EXE" -c IPM.Note /m "%1" It would be nice to know how to decipher <-c IPM.Note /m "%1"> and whether this would help accomplish the goal of throwing the To:, Subject: and Body: all at once.
As an Amazon Associate we earn from qualifying purchases.
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.