Solved

Need to create a desktop link to WAB.exe - Find People Applet

Posted on 2004-09-20
4
1,330 Views
Last Modified: 2007-12-19
I'm looking to create a desktop icon that will launch wab.exe then click the Find People Applet.


Thanks,
Ellis
0
Comment
Question by:luboff
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
4 Comments
 
LVL 12

Assisted Solution

by:fulscher
fulscher earned 500 total points
ID: 12107609
Ellis,

to launch the address book from code, you can use something like

        Dim ProcID As Integer
        ' Start the WAB application, and store the process id.
        ProcID = Shell("C:\Program Files\Outlook Express\WAB.EXE", AppWinStyle.NormalFocus)
        AppActivate(ProcID)
        System.Windows.Forms.SendKeys.SendWait("^F")

HTH, Jan
0
 

Author Comment

by:luboff
ID: 12116185
Jan,
     Your script crashed when I tried to run it, Line 1, Char 12 "As".... I copied the script above and pasted in notepad, changed to VBS.  I have absolutely no idea how to write VB so let me know if I did something to make it crash.  The desired result would be just seeing the "Find People" window... Another way to get to it is Start, Search, For People but I have no idea how to find or call that window.

0
 
LVL 12

Expert Comment

by:fulscher
ID: 12116513
luboff,

The code posted is VB.NET. Since you posted this in the .NET / VB.NET area, I assumed that you would use VB.NET. Btw - the sample works on my system.

I'll check how to do this in VBScript.

Jan


0
 
LVL 12

Accepted Solution

by:
fulscher earned 500 total points
ID: 12117815
luboff,

here's a VBScript snippet which should do what you need.

   Set WshShell = WScript.CreateObject("WScript.Shell")
   Set oExec = WshShell.Exec("C:\Program Files\Outlook Express\WAB.EXE")
   WScript.Sleep 100
   WshShell.AppActivate "Address Book - Main Identity"
   WshShell.SendKeys "^F"

Paste into a text file and set the file extension to .VBS
Double-click the file to run it.

HTH, Jan
0

Featured Post

SharePoint Admin?

Enable Your Employees To Focus On The Core With Intuitive Onscreen Guidance That is With You At The Moment of Need.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article explains how to create and use a custom WaterMark textbox class.  The custom WaterMark textbox class allows you to set the WaterMark Background Color and WaterMark text at design time.   IMAGE OF WATERMARKS STEPS Create VB …
This tutorial demonstrates one way to create an application that runs without any Forms but still has a GUI presence via an Icon in the System Tray. The magic lies in Inheriting from the ApplicationContext Class and passing that to Application.Ru…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

732 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question