Page Index Toggle Pages: 1 [2] 3  Send Topic Send Topic Print Print
Very Hot Topic (More than 25 Replies) Programming help (Read 6456 times)
Bob_Hansen
Senior Member
Members
*****
Offline


WOW, They have the Internet
on computers now!

Posts: 1861
Location: Salem, NH
Joined: Nov 24th, 2002
Re: Programming help
Reply #15 - Apr 10th, 2004 at 3:51pm
Print Post Print Post  
Thanks Bharat_Naik for confirming that the Outlook Express code I submitted would work in a Sesame shell.
  



Bob Hansen
Sesame Database Manager Professional
Sensible Solutions Inc.
Salem, NH
603-898-8223
Skype ID = sensiblesolutions
Back to top
IP Logged
 
Bharat_Naik
Senior Member
Members
*****
Offline


Ever ready to learn and
share

Posts: 1202
Location: Chicago,  Illinois
Joined: Dec 16th, 2003
Re: Programming help
Reply #16 - Apr 10th, 2004 at 4:31pm
Print Post Print Post  
Bob_Hansen,
Thank you for the code. Yes, it works great.
  
Back to top
 
IP Logged
 
Hammer
YaBB Administrator
Lanticans
*****
Offline


Fire bad. Tree pretty.

Posts: 3436
Location: Ohio
Joined: Nov 22nd, 2002
Re: Programming help
Reply #17 - Apr 11th, 2004 at 2:54pm
Print Post Print Post  
Bob_Hansen or Bharat_Naik,

One of you should post this code under Programming Examples.
  

- Hammer
The plural of anecdote is not data.
Back to top
IP Logged
 
Bob_Hansen
Senior Member
Members
*****
Offline


WOW, They have the Internet
on computers now!

Posts: 1861
Location: Salem, NH
Joined: Nov 24th, 2002
Re: Programming help
Reply #18 - Apr 11th, 2004 at 3:52pm
Print Post Print Post  
I think Bharat_Naik should do that.  I only provided the generic piece.  He has done a great job of implementing that in Sesame with use of variables.
  



Bob Hansen
Sesame Database Manager Professional
Sensible Solutions Inc.
Salem, NH
603-898-8223
Skype ID = sensiblesolutions
Back to top
IP Logged
 
Dnolan
Member
*
Offline


No personal text

Posts: 20
Joined: Feb 27th, 2004
Re: Programming help
Reply #19 - Apr 26th, 2004 at 6:20pm
Print Post Print Post  
I tried the web site code and it worked perfectly fine. Thank you soo much!! However when I tried the Outlook Express one this is what happened:
Code
Select All
Error while parsing module "Email (0)" :
Type mismatch error (operation is not defined for the types of the operands
Line 8, position 73: +
    Outlook_failure = @Shell(Outlook_Exp_Path + " " + "/mailurl:mailto:" 



I pasted the code exactly as it was in the last post. I want to use Outlook instead of Outlook Express, however I do have Outlook Express on my computer. How do I fix this?? I can't start working again until this is fixed. I need to fix this and I don't understand anything, if anyone knows please help me! Smiley Thanks!!
  
Back to top
 
IP Logged
 
Bharat_Naik
Senior Member
Members
*****
Offline


Ever ready to learn and
share

Posts: 1202
Location: Chicago,  Illinois
Joined: Dec 16th, 2003
Re: Programming help
Reply #20 - Apr 26th, 2004 at 6:36pm
Print Post Print Post  
I believe this is due to error in path.  What operating system do you use?
  
Back to top
 
IP Logged
 
Dnolan
Member
*
Offline


No personal text

Posts: 20
Joined: Feb 27th, 2004
Re: Programming help
Reply #21 - Apr 26th, 2004 at 6:38pm
Print Post Print Post  
I use Windows 2000 and I'm a client on a server.
  
Back to top
 
IP Logged
 
Bharat_Naik
Senior Member
Members
*****
Offline


Ever ready to learn and
share

Posts: 1202
Location: Chicago,  Illinois
Joined: Dec 16th, 2003
Re: Programming help
Reply #22 - Apr 26th, 2004 at 6:45pm
Print Post Print Post  
If you are using Windows 98 or earlier operating system try using path -

Outlook_Exp_Path = @Chr(34) + "C:\progra~1\outloo~1\msimn.exe" + @Chr(34) 





  
Back to top
 
IP Logged
 
Bharat_Naik
Senior Member
Members
*****
Offline


Ever ready to learn and
share

Posts: 1202
Location: Chicago,  Illinois
Joined: Dec 16th, 2003
Re: Programming help
Reply #23 - Apr 26th, 2004 at 7:43pm
Print Post Print Post  
In Windows XP and Windows 98, the original code seems to work fine. You might want to check where is msimn.exe is located in your system and put the path accordingly.
« Last Edit: Apr 27th, 2004 at 11:05am by Bharat_Naik »  
Back to top
 
IP Logged
 
Dnolan
Member
*
Offline


No personal text

Posts: 20
Joined: Feb 27th, 2004
Re: Programming help
Reply #24 - Apr 29th, 2004 at 7:25pm
Print Post Print Post  
I put the correct path in and that did not fix the error. The error is specifically pertaining to this part of the code :
   OutLook_failure = @Shell(Outlook_Path + " " + "/mailurl:mailto:" + Email) 

Do you have any idea how I can fix it? What is wrong with this part???

And do I need to do something different if I'm running a server?

Does it matter that I'm running Windows 2000 Professional ?

Thanks !!
  
Back to top
 
IP Logged
 
Bob_Hansen
Senior Member
Members
*****
Offline


WOW, They have the Internet
on computers now!

Posts: 1861
Location: Salem, NH
Joined: Nov 24th, 2002
Re: Programming help
Reply #25 - Apr 29th, 2004 at 11:49pm
Print Post Print Post  
Cqn you provide how you defined the variables Outlook_Path and email?
  



Bob Hansen
Sesame Database Manager Professional
Sensible Solutions Inc.
Salem, NH
603-898-8223
Skype ID = sensiblesolutions
Back to top
IP Logged
 
Dnolan
Member
*
Offline


No personal text

Posts: 20
Joined: Feb 27th, 2004
Re: Programming help
Reply #26 - Apr 30th, 2004 at 1:51pm
Print Post Print Post  
This is the exact code that I put in:
Code
Select All
var Outlook_Exp_Path as string
var OutLook_failure as Int

Outlook_Exp_Path = @Chr(34) + "C:\Program Files\Microsoft Office\Office\msimn.exe" + @Chr(34)


IF Email <>"" THEN
   OutLook_failure = @Shell(Outlook_Exp_Path + " " + "/mailurl:mailto:" + Email)
IF NOT OutLook_failure = 0 THEN
   @Msg("Couldn't open Microsoft Outlook") 

  
Back to top
 
IP Logged
 
Bob_Hansen
Senior Member
Members
*****
Offline


WOW, They have the Internet
on computers now!

Posts: 1861
Location: Salem, NH
Joined: Nov 24th, 2002
Re: Programming help
Reply #27 - May 3rd, 2004 at 6:54pm
Print Post Print Post  
Thanks Dnolan, submitting the code is a big help.  I think I see the cause of the problem.

I think you may have unintentionally confused the issue for us (did for me, anyway).  The code that I submitted in this Topic is for Outlook Express, not for Outlook.  In one of your earlier messages, you said you wanted to use Outlook, but you did have Outlook Express on your system.  So which are you actually trying to do with this code?  Because of your statement, I thought that you were going to try this with Outlook Express.

As Bharat_Naik has noted a number of times, I also believe that this is a problem with your path.  You want the Outlook Express path, not the Outlook path.  The path you are using ("C:\Program Files\Microsoft
Office\Office\) is the path where Outlook is frequently found, but the program you are calling is msimn.exe which is the email command for Outlook Express, not for Outlook.  The syntax for Outlook is different from what I provided here.  This syntax will not work with Outlook.  You have mixed the path for Outlook with the command for Outlook Express.

To find the correct path for Outlook Express, try this (may vary depending on operating system):
Right click on Start Button, Left click on Find or Search.
Enter msimn.exe into the field for the file to search for.
In the field for Look In, enter C:\
Click on Find Now or Search Now.
If this file is on your machine, you should see the path if your view is showing Details.  That will be the path you need in the @Shell command.

I just did this on a WIN98ME and the path is "C:\Program Files\Outlook Express".  And it is in the same path on a WIN98SE system. 

If you find the same path, then change your statement to:
Quote:
Outlook_Exp_Path = @Chr(34) + "C:\Program Files\Outlook Express\msimn.exe" + @Chr(34)
and let us know the results.
=================================

If you are going to use Outlook then you must use a different set of commands in the Shell statement.
There are a number of Outlook items that can be created with @Shell.
The basic syntax for Outlook with command switches is:
"FullPath\Outlook.exe /c ipm.class"

On March 7, I submitted the correct syntax to use with Outlook on the forum at: http://www.lantica.com/Forum2/cgi-bin/yabb/YaBB.pl?board=archived;action=display...
« Last Edit: May 7th, 2004 at 8:09pm by Bob_Hansen »  



Bob Hansen
Sesame Database Manager Professional
Sensible Solutions Inc.
Salem, NH
603-898-8223
Skype ID = sensiblesolutions
Back to top
IP Logged
 
Bob_Hansen
Senior Member
Members
*****
Offline


WOW, They have the Internet
on computers now!

Posts: 1861
Location: Salem, NH
Joined: Nov 24th, 2002
Re: Programming help
Reply #28 - May 3rd, 2004 at 7:32pm
Print Post Print Post  
Strange world Dnolan.  I just noticed that the Outlook code that I submitted on 3/7 was in response to your question! Grin.  Does it not work for you?  Worked OK for Steve_in_Texas

If you follow the thread, you will see that there was an error in the original code, but I subsequently corrected it.  So if you tried it at first, and it did not work, try it again with the current information.  I think I made the necessary corrections to all postings that had my syntax in them.  Sorry for any confusion.
  



Bob Hansen
Sesame Database Manager Professional
Sensible Solutions Inc.
Salem, NH
603-898-8223
Skype ID = sensiblesolutions
Back to top
IP Logged
 
Dnolan
Member
*
Offline


No personal text

Posts: 20
Joined: Feb 27th, 2004
Re: Programming help
Reply #29 - May 6th, 2004 at 5:42pm
Print Post Print Post  
What is the recipients address? I want it so that I click on the E-Mail button and it copy's the email address from the E-Mail text box and paste's it to the To: part of the Outook email.

I haven't tried the code yet, so forgive me if I'm wrong, but in the code it says recipient1@myplace.com, and I don't know what to put:

Code
Select All
var n as Int
n = @SHELL(@CHR(34) + "C:\Program Files\Microsoft Office\Office\outlook.exe" + @CHR(34) + " /c ipm.note /m recipient1@myplace.com;recipient2@yourplace.com")
 



I don't know what to do, maybe I'm in the completely wrong section  Embarrassed But let me know. Thanks!  Grin
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1 [2] 3 
Send Topic Send Topic Print Print