AutoHotkey Community

It is currently May 27th, 2012, 1:36 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: November 21st, 2009, 11:01 pm 
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


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: November 21st, 2009, 11:04 pm 
Offline

Joined: June 18th, 2008, 8:36 am
Posts: 4923
Location: AHK Forum
Try to use it that way:
Code:
~Alt::SendInput ^{F4}
~Alt Up::SendInput !{F4}

_________________
AHK_H (2alpha) AHF TT _Struct WatchDir Yaml _Input ObjTree RapidHotkey DynaRun :wink:


Report this post
Top
 Profile  
Reply with quote  
PostPosted: November 21st, 2009, 11:10 pm 
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


Report this post
Top
  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: bobbysoon, iDrug, Tipsy3000, Yahoo [Bot] and 17 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group