loops

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
fedek
Posts: 60
Joined: 17 May 2016, 12:17
Contact:

loops

13 Apr 2017, 09:06

Here's a code
Spoiler
Why file colors.txt have 3000 blanks?
wolf_II
Posts: 2688
Joined: 08 Feb 2015, 20:55

Re: loops

13 Apr 2017, 09:23

Because your variables i, Fx and Fy are blank, check it with ListVars.
You could put i := Fx := Fy := 0 as first line in your script, to make them zero, not blank.

Edit: also change to PixelGetColor, color%i%, Fx, Fy
Last edited by wolf_II on 13 Apr 2017, 09:34, edited 1 time in total.
fedek
Posts: 60
Joined: 17 May 2016, 12:17
Contact:

Re: loops

13 Apr 2017, 09:28

added :
i := 1
Fy := 1
Fx := 1
at the begging - its still wrong.
What i should do?
wolf_II
Posts: 2688
Joined: 08 Feb 2015, 20:55

Re: loops

13 Apr 2017, 09:40

Try this:

Code: Select all

i := Fx := Fy := 0
loop, 50 {
Fx++
Loop, 60 {
Fy++
PixelGetColor, color%i%, Fx, Fy
cor := color%i%
i++
FileAppend, %cor%`n, %A_desktop%\colors.txt
}
}
I hope that helps.
fedek
Posts: 60
Joined: 17 May 2016, 12:17
Contact:

Re: loops

13 Apr 2017, 09:56

unfortunetly, not :/

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: jeves, mikeyww, teadrinker and 144 guests