AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

How to send File Close (Ctrl F4)?

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
klbatbcl
Guest





PostPosted: Sat Nov 21, 2009 10:01 pm    Post subject: How to send File Close (Ctrl F4)? Reply with quote

New to AHK.

In most programs that I use (MS Excel, Word, CorelDraw, TurboCad, Eudora, etc.), Ctrl-F4 closes the current file/drawing/message only, while Alt-F4 closes the application.

So I wrote 2 SIMPLE hotkey scripts:

!Down::^F4 ; Alt-Down = Close the current file.

!Up::!F4 ; Alt-Up = Close the current application.

Alt-Up seems to work fine, but Alt-Down does NOTHING.

Any help?

Thanks,
KLB
Back to top
HotKeyIt



Joined: 18 Jun 2008
Posts: 1994
Location: GERMANY

PostPosted: Sat Nov 21, 2009 10:04 pm    Post subject: Reply with quote

Try to use it that way:
Code:
~Alt::SendInput ^{F4}
~Alt Up::SendInput !{F4}

_________________
AutoHotFile - ToolTip(n,text,title,options) Wink
Back to top
View user's profile Send private message
klbatbcl
Guest





PostPosted: Sat Nov 21, 2009 10:10 pm    Post subject: How to send File Close (Ctrl F4)? Reply with quote

I assumed you meant

~Alt Down::SendInput ^{F4}
~Alt Up::SendInput !{F4}

I tried it that way and it works!! I think I'm going to like AHK.

Thank you!!
KLB
Back to top
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group