Post by DiegoSouto » 02 Oct 2023, 08:58
andymbody wrote:
olha o script ta assim mais nao funciona os clicks olhei outros exemplos e não vai
Code: Select all
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
#Persistent
#SingleInstance force
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
CoordMode, Pixel, Client
LALT::
TrayTip BOT INICOU, BOT INICOU
INICIO:
PixelSearch, TargetX, TargetY, 1179, 310, 1350, 338, 0xE8C05E, 0, Fast RGB
If ErrorLevel = 0
ControlClick, %TargetX% %TargetY%, ahk_class Tibia
If (ErrorLevel = 0)
{
ControlClick, 1272, 255 , ahk_class Tibia
}
PixelSearch, TargetingX, TargetingY, 1178, 309, 1344, 563, 0xff0000, 0, Fast RGB
If (ErrorLevel = 0){
continue
else
Send, {F1}{F2}{F3}{F4}{F5}{F6}{F7}{F8}{F9}{F10}
}
ordMode, Pixel, Client
PixelSearch, CheckinX, CheckinY, 0, 0, 1360, 728, 0xCCBBBB, 0, Fast RGB
If ErrorLevel = 0
SoundBeep
PixelSearch, AlertChatX, AlertChatY, 409, 638, 464, 663, 0xFF5555, 0, Fast RGB
If ErrorLevel = 0
SoundBeep
CoordMode, Pixel, Client
Goto, INICIO
CONTROL::Reload
[quote=andymbody][/quote]
olha o script ta assim mais nao funciona os clicks olhei outros exemplos e não vai
[code]#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
#Persistent
#SingleInstance force
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
CoordMode, Pixel, Client
LALT::
TrayTip BOT INICOU, BOT INICOU
INICIO:
PixelSearch, TargetX, TargetY, 1179, 310, 1350, 338, 0xE8C05E, 0, Fast RGB
If ErrorLevel = 0
ControlClick, %TargetX% %TargetY%, ahk_class Tibia
If (ErrorLevel = 0)
{
ControlClick, 1272, 255 , ahk_class Tibia
}
PixelSearch, TargetingX, TargetingY, 1178, 309, 1344, 563, 0xff0000, 0, Fast RGB
If (ErrorLevel = 0){
continue
else
Send, {F1}{F2}{F3}{F4}{F5}{F6}{F7}{F8}{F9}{F10}
}
ordMode, Pixel, Client
PixelSearch, CheckinX, CheckinY, 0, 0, 1360, 728, 0xCCBBBB, 0, Fast RGB
If ErrorLevel = 0
SoundBeep
PixelSearch, AlertChatX, AlertChatY, 409, 638, 464, 663, 0xFF5555, 0, Fast RGB
If ErrorLevel = 0
SoundBeep
CoordMode, Pixel, Client
Goto, INICIO
CONTROL::Reload[/code]