Internet explorer Navigation box parameter assignment.

  • Thread starter Thread starter UKUCUK
  • Start date Start date
U

UKUCUK

Hi friends

Currently I'm developing an application in a HP thin client with win ce 6.0.
Data comes from rs232 port, and then I send this data to Internet explorer
as a parameter. But I couldn't find a way to send this data to the same IE
window. I could't find DDE related methods , or a method such as findwindowex
with which I may use clipboard to copy the data into the explorer navigation
box. So, for every data , I open a new internet explorer window. But this is
not a good solution. I use C# in compact framework.

Below is a sample of my code related with this..



private void OpenUrl(string url)

{

ProcessInfo pi = new ProcessInfo();

CreateProcess("explorer.exe", url, IntPtr.Zero, IntPtr.Zero, 0, 0,
IntPtr.Zero, IntPtr.Zero, IntPtr.Zero, pi);

}

Thanks, for your help.
 
DDE doesn't exist on Windows CE. You can use FindWindow() to find things.
In this particular case, if you can assure that the field you want to dump
this serial data into is focused, you could use PostKeybdMessage() to send
the characters into the keyboard stream (wedge them). You'll have to
P/Invoke it, of course. There's been much traffic about this function and
it's dual, keybd_event(), in the past here. You might use the archives to
see what your options are, if this idea will work for you
(groups.google.com).

Is Internet Explorer really called Explorer.exe? That's always the file
explorer on all of my devices...

Paul T.
 
Back
Top