Tastenkürzel 3 x Esc hintereinander

Post a reply


In an effort to prevent automatic submissions, we require that you complete the following challenge.
Smilies
:D :) ;) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :!: :?: :idea: :| :mrgreen: :geek: :ugeek: :arrow: :angel: :clap: :crazy: :eh: :lolno: :problem: :shh: :shifty: :sick: :silent: :think: :thumbup: :thumbdown: :salute: :wave: :wtf: :yawn: :facepalm: :bravo: :dance: :beard: :morebeard: :xmas: :HeHe: :trollface: :cookie: :rainbow: :monkeysee: :monkeysay: :happybday: :headwall: :offtopic: :superhappy: :terms: :beer:
View more smilies

BBCode is ON
[img] is OFF
[flash] is OFF
[url] is ON
Smilies are ON

Topic review
   

Expand view Topic review: Tastenkürzel 3 x Esc hintereinander

Re: Tastenkürzel 3 x Esc hintereinander

Post by LuckyJoe » 07 Oct 2019, 01:49

wow - das funktioniert perfekt! - Danke!

Re: Tastenkürzel 3 x Esc hintereinander

Post by Rohwedder » 04 Oct 2019, 12:34

Hallo,
versuch mal:

Code: Select all

~Esc::
If !TEsc := 0 TEsc + 1
    SetTimer, TEsc, -500
Return
TEsc:
IF TEsc > 1
	Send !{F4}
TEsc =
Return

Tastenkürzel 3 x Esc hintereinander

Post by LuckyJoe » 02 Oct 2019, 09:10

Hallo zusammen,

ich möchte nach dreimaligem Drücken der Esc-Taste das aktive Fenster schließen lassen. Zweimalig bekomme ich schon hin, aber wie muss mein Script aussehen, wenn ich bis zum 3. Esc warten will?

Code: Select all

~Esc::
WinGetClass Class, A
If (A_ThisHotKey = A_PriorHotkey && A_TimeSincePriorHotkey < 250)
	Send !{F4}
Return
Danke schon mal im Voraus.
HG - Lucky Joe

Top