help ErrorStdOut

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
bittencourt318
Posts: 85
Joined: 16 Apr 2020, 10:57

help ErrorStdOut

Post by bittencourt318 » 02 Dec 2021, 11:37

could someone help me solve this error!
it's simple it will search for an image if it finds it will play a beep but it's not working it pops up error (/ErrorStdOut)

Code: Select all

#Warn
#NoEnv
#SingleInstance Force
#MaxHotkeysPerInterval 99000000
#HotkeyInterval 99000000
#KeyHistory 0
CoordMode, Pixel, Screen
CoordMode, Mouse, Screen
SendMode Input
SetKeyDelay, -1, -1
SetMouseDelay, -1
SetDefaultMouseSpeed, 0
SetWinDelay, -1
SetControlDelay, -1


check:
	ImageSearch, X, Y, 1151, 35, 1164, 343, C:\Users\Bittencourt\OneDrive\Área de Trabalho\imagem
	if (ErrorLevel = 0) {
    SoundBeep, 2000
	goto, check
}
	return

User avatar
mikeyww
Posts: 26885
Joined: 09 Sep 2014, 18:38

Re: help ErrorStdOut

Post by mikeyww » 02 Dec 2021, 11:41

I did not actually see any error message. I think that you want to use an actual image file (e.g., PNG). If you intend to have a loop, I recommend adding a sleep. Note that Return will cause this particular script to exit.

bittencourt318
Posts: 85
Joined: 16 Apr 2020, 10:57

Re: help ErrorStdOut

Post by bittencourt318 » 13 Dec 2021, 12:33

mikeyww wrote:
02 Dec 2021, 11:41
I did not actually see any error message. I think that you want to use an actual image file (e.g., PNG). If you intend to have a loop, I recommend adding a sleep. Note that Return will cause this particular script to exit.



yes it was serto, it was my lack of attention that the error occurred, only the .ini was missing thank you veryoooo

Post Reply

Return to “Ask for Help (v1)”