Is there a way to stop ClipWait? Topic is solved

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
john_c
Posts: 493
Joined: 05 May 2017, 13:19

Is there a way to stop ClipWait?

14 Dec 2017, 22:16

Is there a way to send "x" 2 times without 5 seconds waiting? (And, obviously, without changing clipboard contents).

That's mean, I want somehow interrupt clipwait from waiting. Is there way to achieve it?

Code: Select all

    ; (2) ... but I don't want to wait here ...
a::
    ; (3) ... and also I don't want to wait here.
    Send, x
    Clipboard =
    ClipWait, 5
    ; (1) It's okay to wait here ...
    Send, y
Return
User avatar
divanebaba
Posts: 805
Joined: 20 Dec 2016, 03:53
Location: Diaspora

Re: Is there a way to stop ClipWait?

15 Dec 2017, 00:44

???

Code: Select all

Send xx
Einfach nur ein toller Typ. :mrgreen:
Rohwedder
Posts: 7630
Joined: 04 Jun 2014, 08:33
Location: Germany

Re: Is there a way to stop ClipWait?  Topic is solved

15 Dec 2017, 03:51

Hallo,
press Hotkey A twice to stop ClipWait:

Code: Select all

#MaxThreadsPerHotkey, 2
a::
    If ClipWait
	{
		ClipBoard := 1 ;stops ClipWait
		ClipWait := False
		Return
	}
    Send, x
    Clipboard =
	ClipWait := True
    ClipWait, 5
	If !ClipWait ;ClipWait was stopped
		Clipboard =
	ClipWait := False
    Send, y
Return
john_c
Posts: 493
Joined: 05 May 2017, 13:19

Re: Is there a way to stop ClipWait?

16 Dec 2017, 10:54

Rohwedder wrote:Hallo,
press Hotkey A twice to stop ClipWait:

Code: Select all

#MaxThreadsPerHotkey, 2
a::
    If ClipWait
	{
		ClipBoard := 1 ;stops ClipWait
		ClipWait := False
		Return
	}
    Send, x
    Clipboard =
	ClipWait := True
    ClipWait, 5
	If !ClipWait ;ClipWait was stopped
		Clipboard =
	ClipWait := False
    Send, y
Return
Hallo Rohwedder :) Incredible, it works! Thank you very much.

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: Google [Bot], wilkster and 313 guests