My problem is simple, but i don't Know how to do it:
If i have this code on a button:
method pushButton(var eventInfo Event)
execute("C:\\Program Files\\Outlook Express\\msimn.exe", Yes, ExeShowNormal)
endMethod
I can open Outlook Express from Paradox, but OE is always opened on a
default account
what I want to do is to open OE on a specific account
I don'know how to do it
i.e
Regis home account: with this e-mail regis.home@myfai.fr login regishome,
password: azerty
Regis professional account e-mail regisprof@myfai.fr login
regispro, password qwerty
and so on...
Any ideas how to do it
Thanks in advance
Régis
Régis - 23 Jun 2008 16:59 GMT
I forgot to mention:
XP and not Vista, P10 .0.0.719 and BDE 5.1.1.1
Outlook Express 6.00.2600
> My problem is simple, but i don't Know how to do it:
> If i have this code on a button:
[quoted text clipped - 19 lines]
> Thanks in advance
> Régis
Méta-MCI (MVP) - 23 Jun 2008 21:10 GMT
Bonsoir !
OE ne pouvant pas être piloté par COM / OLE-automation, il reste la
solution des sendkeys.
Malheureusement, il y a des variations. Par exemple, une identité peut
avoir, ou non, un mot de passe. Et, la position dans la liste n'est pas
garantie.
Bref, ce n'est pas très simple. Car il faut alors analyser le contenu
textuel des contrôles, chose pas évidente.
Bon courage.
MCI
Anne Wainwright - 25 Jun 2008 22:03 GMT
Simple translation appended below for non-french speakers
apologies for my rusty french, I disclaim all responsibility for any and
all consequences resulting from my translation attempt. Read it at your
peril.
> Bonsoir !
>
[quoted text clipped - 9 lines]
>
> MCI
Good evening
OE cannot be driven by COM / OLE-automation, there remains the solution of
using sendkeys.
Unfortunately, there are some variations (alternatives?). For example, an
identity can have, or not (have), a password. And, the position within the
list isn't guaranteed.
In brief, it isn't very simple, because it is then necessary to analyse
the text output of the tests, something that is not obvious.
Good luck
and good luck to you from me as well.
Anne
Tony McGuire - 26 Jun 2008 15:25 GMT
/profile profilename
Loads the specified profile. If your profile name contains a space,
enclose the profile name in quotation marks.
This is a command line switch.
Works for Outlook, not sure about Express.

Signature
------------------------------
Tony McGuire
Tony McGuire - 26 Jun 2008 15:27 GMT
Is the real question how to SEND or RECEIVE mail on a specific
account? Or truly how to just open OE with a specified account
active?

Signature
------------------------------
Tony McGuire
Régis - 26 Jun 2008 20:59 GMT
My question is just to Open OE on a specified account, because if you can
open it, you can send and receive using OE interface.
the true question is how to eliminate SPAM easily.
My first step is
To scan all messages from the server (I have a dozen accounts)
I use The Michel Claveau AntiSPAM program that read only the subject of the
message
I delete automatically 60/70 percent of messages
The step two is
to delete NON-obvious spam and the quickest solution is to Open OE and
manually delete these messages
I don't know about /profile command and OE.
Régis
> Is the real question how to SEND or RECEIVE mail on a specific account?
> Or truly how to just open OE with a specified account active?
Kevin Zawicki - 28 Jun 2008 19:09 GMT
TRY THIS
------------
'IDforOE.vbs - Force Outlook Express 5 to prompt for an Identity
Set WshShell = WScript.CreateObject("Wscript.Shell")
'Clear the values from the registry
WshShell.RegWrite "HKCU\Identities\Last Username", ""
WshShell.RegWrite "HKCU\Identities\Last User ID", ""
WshShell.RegWrite "HKCU\Identities\Default User ID", ""
WshShell.RegWrite "HKCU\Identities\Start As", ""
'Launch Outlook Express
WSHShell.Run "Msimn.exe"
-----------------
put this in a text file call something.vbs
run it (you can have pdox run it)
this code blanks the current user (the default user is not always current
depending on your settings) but you can fill in the user you want in the
quotes after each value and when run it "presets" what OE will open as...
you may have to fiddle with the other oe options of each identity
> My problem is simple, but i don't Know how to do it:
> If i have this code on a button:
[quoted text clipped - 19 lines]
> Thanks in advance
> Régis
Tony McGuire - 28 Jun 2008 19:30 GMT
> 'Clear the values from the registry
> WshShell.RegWrite "HKCU\Identities\Last Username", ""
> WshShell.RegWrite "HKCU\Identities\Last User ID", ""
> WshShell.RegWrite "HKCU\Identities\Default User ID", ""
> WshShell.RegWrite "HKCU\Identities\Start As", ""
So you could just use Paradox to setRegistryValue() on each of those
(instead of RegWrite) prior to opening OE.
You could, then, even getRegistryValue() on each of the above and
reset to whatever they were after OE was closed.
Or not?

Signature
------------------------------
Tony McGuire
Kevin Zawicki - 01 Jul 2008 05:11 GMT
Yes, I use this code, not directly in Paradox, but I change the OE icon to
pint to this script, so every time a user on a shared PC hits the icon it
asks them which account they want to use... they have several generic
"receiver accounts".
You probably could have pdox do this, or preload the identity, etc...
lots of variations....
>> 'Clear the values from the registry
>> WshShell.RegWrite "HKCU\Identities\Last Username", ""
[quoted text clipped - 9 lines]
>
> Or not?
Leslie Milburn - 30 Jun 2008 14:42 GMT
> My problem is simple, but i don't Know how to do it:
> If i have this code on a button:
[quoted text clipped - 19 lines]
> Thanks in advance
> Régis
Regis,
Are you aware that the version of OE you are using is well out of date and
has many security issues etc etc. So any testing you do for that version
will most likely not work if you update to the latest version of OE because
under Windows XP SP2 Outlook Express is broken and logging in/out and
switching identities often fails - I know because I use OE constantly.
Have you investigated the OE message rules. I used to get approx 2000 spam
messages a day until I started to use the message rules and have OE delete
them automatically, now only a few a day (may 3 or 4) slip through.
Leslie.