how do If press key...

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
chusski
Posts: 31
Joined: 28 Jan 2018, 03:12

how do If press key...

06 Jun 2019, 00:23

Hello guys.

I think AHK are, secuencial working.. then... How i can do insite one macro that:
If press X key , controlsend ...

I want detect the press key at any moment of the macro...

Its posible?

Thx very much.
Rohwedder
Posts: 7774
Joined: 04 Jun 2014, 08:33
Location: Germany

Re: how do If press key...

06 Jun 2019, 02:55

Hallo,
Autohotkey works sequentially, but allows interrupts e.g. hotkeys!
Try:

Code: Select all

Loop, 20 ;20 seconds running macro
{
	ToolTip,% A_Index " seconds"
	Sleep, 1000
}
ExitApp
*x::MsgBox, you pressed key X
chusski
Posts: 31
Joined: 28 Jan 2018, 03:12

Re: how do If press key...

06 Jun 2019, 07:26

If dont understand well, oressing x i can stop the loop at any moment at the loop...


Do you know how I can do this in the pullover?

thx very much ^^

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: No registered users and 363 guests