This App is No Longer Maintained. Visit the Replacement at StrokesPlus.net

StrokesPlus Forum
                       
StrokesPlus Forum
Home | Profile | Active Topics
Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 General Discussion
 General Discussion
 Global action for closing window?
 Forum Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

emil7768

Bulgaria
7 Posts

Posted - 11/13/2017 :  14:34:39  Show Profile
What action to use that can close the active window?

Rob

USA
2615 Posts

Posted - 11/13/2017 :  14:42:31  Show Profile  Visit Rob's Homepage
acSendKeys("^w"), for CTRL+W will usually work for most programs. Or acCloseApplication(), which just sends the WM_CLOSE to the main owner window. There are certainly other ways to achieve this, but this is a pretty simple start.
Go to Top of Page

emil7768

Bulgaria
7 Posts

Posted - 11/14/2017 :  04:04:06  Show Profile
Thanks!
Go to Top of Page

Giusepppe

7 Posts

Posted - 11/14/2017 :  11:07:37  Show Profile
some programs simply don't receive those actions.

acSendKeys("%{F_4}") is another way of doing it. But if you're working with multiple tabs, it closes whole browser.
Go to Top of Page
  Previous Topic Topic Next Topic  
 Forum Locked
 Printer Friendly
Jump To:
StrokesPlus Forum © 2011-2018 Rob Yapchanyk Go To Top Of Page
Snitz Forums 2000