[AccessD] Closing an Application

Charlotte Foust cfoust at infostatsystems.com
Wed May 28 12:54:28 CDT 2003


Use the handle you got back from the Shell call to activate the correct
window and then use sendkeys to pass an Alt+F4 to close it.

AppActive MyAppID
SendKeys "%{F4}"

Charlotte Foust


-----Original Message-----
From: Chris Enright [mailto:cclenright at yahoo.com] 
Sent: Wednesday, May 28, 2003 8:49 AM
To: accessd at databaseadvisors.com
Subject: [AccessD] Closing an Application


Hi Group,

I would like to think that I am having this problem because I have been
away from Access for a couple of years but I strongly suspect it might
have something to do with big six-O coming next week.

I am writing an application that requires the On Screen Keyboard in
WinNT.

This starts it fine....

 
    Dim MyAppID, ReturnValue
 
    MyAppID = Shell("C:\Winnt\system32\osk.exe", 1)  ' Run On Screen
Keyboard.
    AppActivate MyAppID
 
 Problem is, what code do I use to close it?

Tks

Chris Enright


Do you Yahoo!?
Free online calendar with sync to Outlook(TM).


More information about the AccessD mailing list