Solved

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

Posted on 2004-09-20
4
1,303 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
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Well, all of us have seen the multiple EXCEL.EXE's in task manager that won't die even if you call the .close, .dispose methods. Try this method to kill any excels in memory. You can copy the kill function to create a check function and replace the …
I think the Typed DataTable and Typed DataSet are very good options when working with data, but I don't like auto-generated code. First, I create an Abstract Class for my DataTables Common Code.  This class Inherits from DataTable. Also, it can …
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…

861 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

23 Experts available now in Live!

Get 1:1 Help Now