3251
Post New Requests Here / Re: IDEA: ESC closes Windows Explorer (AHK)
« Last post by jgpaiva on October 08, 2006, 07:06 AM »Something in this terms might solve it:

ESCflag := false
$ESC:
Send,{ESC}
IF WinActive("ahk_class ExploreWClass")
IF ESCflag
send,!{F4}
else
{
ESCflag := True
settimer,SomeTimer,1000
}
return
SomeTimer:
settimer,SomeTimer,off
ESCflag := false
return
Warning: untested code. But should work $ESC:
Send,{ESC}
IF WinActive("ahk_class ExploreWClass")
IF ESCflag
send,!{F4}
else
{
ESCflag := True
settimer,SomeTimer,1000
}
return
SomeTimer:
settimer,SomeTimer,off
ESCflag := false
return


Recent Posts



