| View previous topic :: View next topic |
| Author |
Message |
Deep-Silence
Joined: 24 Apr 2009 Posts: 87
|
Posted: Sat Jan 02, 2010 6:26 pm Post subject: Shortcut Pressing Esc twice to do something? in multipl GUIs |
|
|
Hi Guys,
I want to create a shortcut
Pressing {ESC} twice.
I want to close every GUI of my Program with this shortcut,
brings up the message that the Key is not specified.
any ideas how to solve this?
Thanks,
Deep-Silence |
|
| Back to top |
|
 |
None
Joined: 28 Nov 2009 Posts: 3086
|
Posted: Sat Jan 02, 2010 6:39 pm Post subject: |
|
|
| Code: | DCT:=300 ;Double Click Time
$Esc::
Last:=This ;Save previous time
This:=A_TickCount ;Save This Time
If((This-Last)>DCT) ;Test if double click was less than DCT
{
SetTimer Esct, -%DCT% ;if yes set single run timer for EscT
}
Else
{
SetTimer EscT, Off ;if not kill timer
;Code to Close GUI's
}
Return
EscT:
Send {Esc}
KeyWait, Esc
Send {Esc Up}
Return |
Making a double press hotkey is not that easy, but not Too diffucult |
|
| Back to top |
|
 |
Deep-Silence
Joined: 24 Apr 2009 Posts: 87
|
Posted: Sat Jan 02, 2010 10:43 pm Post subject: |
|
|
Hi None,
For an advanced Beginner,
it is little difficult, because i do not knew where to start.
Thank You.
Deep-Silence |
|
| Back to top |
|
 |
|