Page 1 of 1

help ErrorStdOut

Posted: 02 Dec 2021, 11:37
by bittencourt318
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

Re: help ErrorStdOut

Posted: 02 Dec 2021, 11:41
by mikeyww
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.

Re: help ErrorStdOut

Posted: 13 Dec 2021, 12:33
by bittencourt318
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