Michael D. Lawler wrote:
Look at the cursor object which has a window property that you can use to compare with the focused window.
More susinctly: If Cursor.Window.Handle = FocusedWindow.Handle Then Speak "Well, whoopdy do!" End If Aaron -- To insure that you receive proper support, please include all past correspondence (where applicable), and any relevant information pertinent to your situation when submitting a problem report to the GW Micro Technical Support Team. Aaron Smith GW Micro Phone: 260/489-3671 Fax: 260/489-2608 WWW: http://www.gwmicro.com FTP: ftp://ftp.gwmicro.com Technical Support & Web Development