?
Solved

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

Posted on 2004-09-20
4
Medium Priority
?
1,336 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 2000 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 2000 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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Creating an analog clock UserControl seems fairly straight forward.  It is, after all, essentially just a circle with several lines in it!  Two common approaches for rendering an analog clock typically involve either manually calculating points with…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …
Suggested Courses

777 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