Highlights
All Snippets
Top 100 Snippets
Librarians
gbCodeLib

By Language
VB6
JavaScript
Perl
HTML
SQL
Java
DOS

GBIC >> Source Code >> Visual Basic >> Snippet

Close a second app with SENDKEYS


'use SENDKEYS to Alt-F4 to end an application
'SecondAppTitle refers to what the application has in its Title bar
AppActivate SecondAppTitle
SendKeys "%(F4)" , True