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 

looking for alternative to alt+f4

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





PostPosted: Sat Apr 16, 2005 3:37 pm    Post subject: looking for alternative to alt+f4 Reply with quote

Hi,

When trying to close some games I press alt+f4, but they dont close straight away, but pop up with a window that says 'are you sure you want to exit' which I have to click with my mouse. Is there a way with autohot key to kill a program without without it asking for confirmation. it needs to be generic & not just for a specific game/program
Back to top
niwi



Joined: 27 Feb 2005
Posts: 128
Location: Heidelberg, Germany

PostPosted: Sat Apr 16, 2005 3:43 pm    Post subject: Reply with quote

Hi,

I don't think that you can use a generic tool for this. There are several programs which can't even be closed using the task manager Sad

NiWi.
Back to top
View user's profile Send private message
Serenity



Joined: 07 Nov 2004
Posts: 1276

PostPosted: Sat Apr 16, 2005 3:44 pm    Post subject: Reply with quote

WinKill is a bit extreme but works for alot of apps; you could try using it with WinGetActiveTitle like so:

Code:
!F4::
WinGetActiveTitle, title
WinKill, %title%, , 2 ; wait 2 seconds for window to close

_________________
"Anything worth doing is worth doing slowly." - Mae West
Back to top
View user's profile Send private message Visit poster's website
vibez
Guest





PostPosted: Sun Apr 17, 2005 8:21 am    Post subject: Reply with quote

thansk but it looks like niwi was right. I cant even close it from taskmanager, it still prompts me to confirm that i want to exit. I got around it with sending 'alt + 4' then sending 'space' this click the 'yes' dialogue box.

thanks guys
Back to top
TeknoMusicMan



Joined: 14 Apr 2005
Posts: 188
Location: Wisconsin, USA

PostPosted: Sun Apr 17, 2005 5:08 pm    Post subject: Reply with quote

try this out
Code:
Process, Close, PINBALL.EXE

all you need to do is put in the games executable filename in place of PINBALL.exe
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
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