Solved

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

Posted on 2004-09-20
4
1,290 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
  • 3
4 Comments
 
LVL 12

Assisted Solution

by:fulscher
fulscher earned 500 total points
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

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 …
Article by: Kraeven
Introduction Remote Share is a simple remote sharing tool, enabling you to see, add and remove remote or local shares. The application is written in VB.NET targeting the .NET framework 2.0. The source code and the compiled programs have been in…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

763 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

Need Help in Real-Time?

Connect with top rated Experts

6 Experts available now in Live!

Get 1:1 Help Now