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

 All Forums
 General Discussion
 General Discussion
 Global action for closing window?
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

emil7768

Bulgaria
4 Posts

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

Rob

USA
2428 Posts

Posted - 11/13/2017 :  14:42:31  Show Profile  Visit Rob's Homepage  Reply with Quote
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
4 Posts

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

Giusepppe

5 Posts

Posted - 11/14/2017 :  11:07:37  Show Profile  Reply with Quote
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  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
StrokesPlus Forum © 2011-2017 Rob Yapchanyk Go To Top Of Page
Snitz Forums 2000