Turn off screen updating for hotstrings

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
User avatar
boiler
Posts: 16923
Joined: 21 Dec 2014, 02:44

Re: Turn off screen updating for hotstrings

17 May 2021, 20:33

There's a simple change to make it work without the x option, which is to just put the command on the line below:

Code: Select all

:r0:letstestthisout::
SmartPaste("
(
shorter example{enter}
see what I mean{tab 6}
)")

SmartPaste(str) {
	clipSave := ClipboardAll
	loop {
		RegExMatch(str, "^[^{]+", m)
		Clipboard := m
		Send, ^v
		str := SubStr(str, StrLen(Clipboard) + 1)
		RegExMatch(str, "^{.*?}", m)
		Send, % m
		str := SubStr(str, StrLen(m) + 1)
	} until str = ""
	Sleep, 500
	Clipboard := clipSave
}

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: aitaixy, Anput, joedf, Nerafius and 186 guests