Jump to content
Sign in to follow this  
deanthalas

help me pls

Recommended Posts

deanthalas

would love if someone could point me in the right direction to fixing a problem i have with my code, here it is..

$bars = 5

While 1 ;==>loop testing a pixel on some bars for color change

Dim $pixcolarraytest[$bars][4][2]

For $i = 0 To $bars - 1

$pixcolarraytest[$i][0][$danger] = PixelGetColor($colorbar[$i][0][0][0], $colorbar[$i][0][0][1])

MsgBox(0, "Wingman", "so we just pixel tested the bar " & $i & " at box at mouse loc")

MouseMove($colorbar[$i][0][0][0], $colorbar[$i][0][0][1], 0)

next

WEnd

What i am trying to achieve is for the [$danger] part of the array to switch to a value between 1 and 5 without effecting the other [$danger] elements in other parts, for example..

$pixcolarraytest[1][0][0]

$pixcolarraytest[2][0][0]

$pixcolarraytest[3][0][1] <<< only this one changed in the loop

$pixcolarraytest[4][0][0]

$pixcolarraytest[5][0][0]

any help of advice would be greatly appreciated, thx

Edited by deanthalas

Share this post


Link to post
Share on other sites
notsure

Sounds like a gamebot. Wingman, Danger..

Share this post


Link to post
Share on other sites
willichan

I see two problems here.

1 - $danger does not seem to be defined anywhere.

2 - your Dim statement for $pixcolarraytest should be before your While statement. Otherwise, you are re-declaring the variable with each iteration, which should be giving you an error message. Since you do not need to change the size of your array, a ReDim would not be needed. Just move the Dim statement up.

Share this post


Link to post
Share on other sites
BlazerV60

Sounds like a gamebot. Wingman, Danger..

You can't just assume something with the pixel function to be a gamebot. Otherwise they wouldn't of made that function come with autoIT.

Share this post


Link to post
Share on other sites
deanthalas

thx for the reply all but i have figured a work around to the problem where i just made a new array on each stage of the loop and assigned the $i value, i was then able to redim the array and use it as needed.

p.s its not a game bot, thx again.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.