why wont this work as a toggle for a loop?

Get help with using AutoHotkey and its commands and hotkeys
Awesomefox8
Posts: 2
Joined: 13 Mar 2020, 15:09

why wont this work as a toggle for a loop?

13 Mar 2020, 15:23

Code: Select all

^g:: Toggle = true
^h:: Toggle = false
while %Toggle% = true
{
My Code
}
User avatar
Hellbent
Posts: 1058
Joined: 23 Sep 2017, 13:34

Re: why wont this work as a toggle for a loop?

13 Mar 2020, 15:29

Code: Select all

Numpad1::
	Tog := True
	While(Tog){
		ToolTip,% A_Index
	}
	ToolTip,
	return

Numpad2::Tog := False
HTH

Return to “Ask For Help”

Who is online

Users browsing this forum: electrone77, Google [Bot], Googleye, keylo, mikeyww, roonyroox, william_ahk and 54 guests