home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 1998 July & August / Pcwk78a98.iso / Sharewar / Omni / sample1.sc_ / sample1.sc
Text File  |  1997-06-03  |  1KB  |  38 lines

  1. ;Omnilook script sample
  2. ;this script will send selected image via email
  3. ;using Microsoft Internet Mail and News client
  4.  
  5. ;start email client
  6. ;the path below is as you would see it when you clicked on the properties' shortcut
  7. ;you may need to change the path below from your own internet mail shortcut properties
  8.  
  9. start 'C:\WINDOWS\EXPLORER.EXE /root,C:\WINDOWS\Internet Mail.{89292102-4755-11cf-9DC2-00AA006C2B84}'
  10. wait 2
  11.  
  12.  
  13. ;send ctrl-n keystrokes to open new message
  14. keys '^n'
  15.  
  16. ;type in the recipient's email address
  17. keys 'yourname@youremail.com'
  18.  
  19. ;press tab twice to skip to the subject line
  20. keys '{TAB}'
  21. keys '{TAB}'
  22.  
  23. ;enter subject
  24. keys 'picture for you'
  25.  
  26. ;press tab again and start typing the message body
  27. keys '{TAB}'
  28. keys 'Hello,{ENTER}Here is an image...'
  29.  
  30. ;press alt-i-n keys to bring up insert attachment menu
  31. keys '%if'
  32.  
  33. ;insert the path to the filename
  34. keys '%filename%'
  35.  
  36. ;confirm file insertion and press alt+s to send the message
  37. keys '{ENTER}'
  38. keys '%s'