my script stop working Topic is solved

Ask gaming related questions (AHK v1.1 and older)
buskimaster
Posts: 3
Joined: 07 Oct 2022, 15:32

my script stop working

Post by buskimaster » 07 Oct 2022, 15:49

Hello everyone, my script was working great but stop working. I was using it with wow. Could you pls take a quick look
Thank you very much.
I checked coordinates and color numbers, they are correct.

Code:

Code: Select all

^F1::exitapp
F1::Pause, toggle
End::
loop
{
PixelGetColor, color, 1310, 945, RGB
If (color = 0x23b4ff)
{
Send, {1 down}
sleep 10
Send, {1 up}
}
PixelGetColor, color, 1310, 945, RGB
If (color = 0x349800)
{
Send, {2 down}
sleep 10
Send, {2 up}
}
}

return

[Mod edit: Added [code][/code] tags. Please use them yourself when posting code.]

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

Re: my script stop working

Post by mikeyww » 07 Oct 2022, 20:29

Welcome to this AutoHotkey forum!

You can display the value of the color, so that you understand what it is. Coordinates are relative to the active window. You can MouseMove to the coordinates that you are checking.

buskimaster
Posts: 3
Joined: 07 Oct 2022, 15:32

Re: my script stop working

Post by buskimaster » 08 Oct 2022, 06:17

mikeyww wrote:
07 Oct 2022, 20:29
Welcome to this AutoHotkey forum!

You can display the value of the color, so that you understand what it is. Coordinates are relative to the active window. You can MouseMove to the coordinates that you are checking.
Thank you very much for your answer, but do you have any idea why script stop working ?

Same script, same game. Didnt changed anything, suddenly stop working.

Thx.

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

Re: my script stop working  Topic is solved

Post by mikeyww » 08 Oct 2022, 06:39

If you wrote the game, then you know that the colors have not changed. Otherwise, you don't.

buskimaster
Posts: 3
Joined: 07 Oct 2022, 15:32

Re: my script stop working

Post by buskimaster » 08 Oct 2022, 07:13

mikeyww wrote:
08 Oct 2022, 06:39
If you wrote the game, then you know that the colors have not changed. Otherwise, you don't.
Thank you mate, I changed icons to single color so I know colors are same
tt.png
tt.png (4.42 KiB) Viewed 318 times

Post Reply

Return to “Gaming Help (v1)”