Toggle not working

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
3rne5t0
Posts: 48
Joined: 16 Jun 2018, 01:36

Toggle not working

18 Sep 2018, 02:16

Can anyone tell me what i did wrong its not working atm

Code: Select all

#NoEnv  ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn  ; Enable warnings to assist with detecting common errors.
SendMode Input  ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir%  ; Ensures a consistent starting directory.
SetBatchLines, -1
#MaxThreadsPerHotkey 2

e::
Toggle := !Toggle
while Toogle 
{
	ImageSearch, X, Y, 1243, 873, 1305, 936, *160 HandderHinderung.bmp
	if !ErrorLevel {
		Send, {Shift Down}
		Send, 7
		Sleep, 30
		Send, {Shift Up}
	}
}
Rohwedder
Posts: 7616
Joined: 04 Jun 2014, 08:33
Location: Germany

Re: Toggle not working

18 Sep 2018, 03:39

Hallo,
replace Toogle by Toggle

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: Freddie, Google [Bot], haomingchen1998, mmflume, scriptor2016, ShatterCoder and 90 guests