Search found 29 matches

by Entropy42
10 Nov 2017, 23:24
Forum: Ask For Help
Topic: Comparison of multi-dimensional array values failing
Replies: 2
Views: 456

Comparison of multi-dimensional array values failing

I have some code that iterates through two multi-dimensional array objects and tries to find out when the first field (the name) matches. It doesn't work. The first item of each array is the same, and I've checked it with the debugger. If I put a breakdpoint at the IF statement and check the values ...
by Entropy42
02 Feb 2017, 10:15
Forum: AHK Studio
Topic: AHK Studio
Replies: 1075
Views: 307817

Re: AHK Studio

Yes, it does.
by Entropy42
26 Jan 2017, 15:22
Forum: Announcements
Topic: [POLL] Dedicated Subforum for SciTE4AHK and/or PMC
Replies: 90
Views: 31418

Re: [POLL] Dedicated Subforum for SciTE4AHK and/or PMC

I think the idea of a "Scripting Tools" Subforum that contains Subforums for AHKStudio, SCITE, and macro Creator seems like a great division. Anything not pertaining to those 3 just goes in the main subforum, and they all still have their own, like Ask for Help >> Gaming. When I was brand new to AHK...
by Entropy42
26 Jan 2017, 14:33
Forum: Scripts and Functions
Topic: CGDipSnapShot - GDI replacement for PixelGetColor
Replies: 70
Views: 17454

Re: CGDipSnapShot - GDI replacement for PixelGetColor

Ah, ok, so it is not possible currently. I will just do a compare manually. Thanks!
by Entropy42
26 Jan 2017, 11:22
Forum: Scripts and Functions
Topic: CGDipSnapShot - GDI replacement for PixelGetColor
Replies: 70
Views: 17454

Re: CGDipSnapShot - GDI replacement for PixelGetColor

I was trying to use Compare function of this library, but I'm not sure how to make the color object to compare to. I have a pixel color that I get from col1 := snap.PixelSnap[x,y].rgb From the documentation, it sounds like this is going to be a color object, so to compare it I need to make another C...
by Entropy42
24 Jan 2017, 12:34
Forum: Scripts and Functions
Topic: CGDipSnapShot - GDI replacement for PixelGetColor
Replies: 70
Views: 17454

Re: CGDipSnapShot - GDI replacement for PixelGetColor

As far as I can tell, this fixed the issue. Thanks!
by Entropy42
24 Jan 2017, 10:22
Forum: SciTE4AutoHotkey
Topic: SciTE4AutoHotkey v3.0.06.01 [Updated October 12 2014]
Replies: 799
Views: 371845

Re: SciTE4AutoHotkey v3.0.06.01 [Updated October 12 2014]

Right under my nose all this time... can I somehow have that F12 list open all the time, like a right-side pane? Or make it much larger? Or have it not dig into includes?
by Entropy42
24 Jan 2017, 10:12
Forum: Scripts and Functions
Topic: CGDipSnapShot - GDI replacement for PixelGetColor
Replies: 70
Views: 17454

Re: CGDipSnapShot - GDI replacement for PixelGetColor

I didn't mean to say that the script above will just eat up 4 MB per loop iteration. As you can see, in that function, the gemColorsRGB[x, y, 1] := snap.PixelSnap[px,py].r line gets called 64 times, but it only goes up by 4 MB the first time it encounters that line after the snap is taken. The scanG...
by Entropy42
23 Jan 2017, 23:57
Forum: SciTE4AutoHotkey
Topic: SciTE4AutoHotkey v3.0.06.01 [Updated October 12 2014]
Replies: 799
Views: 371845

Re: SciTE4AutoHotkey v3.0.06.01 [Updated October 12 2014]

Is there a plug in for SciTE4AHK that gives a function browser? I've got something now that is like 1700 lines of code and its getting hard to navigate it. I like the way AHK Studio does it, but was getting too many bugs when using that. I've tried breaking my code out into some includes, but ran in...
by Entropy42
23 Jan 2017, 23:36
Forum: Ask For Help
Topic: PixelGetColor slow Topic is solved
Replies: 4
Views: 868

Re: PixelGetColor slow Topic is solved

I posted a very similar problem just a day ago, see here:
https://autohotkey.com/boards/viewtopic.php?f=5&t=27098
The solution given worked for me, and was just updated today to fix a memory leak.
by Entropy42
23 Jan 2017, 23:35
Forum: Gaming
Topic: PixelGetColor taking 3 seconds for 64 searches?
Replies: 6
Views: 1279

Re: PixelGetColor taking 3 seconds for 64 searches?

Unfortunately it seems like it also has a memory leak? I watched in Windows Explorer and every iteration of my loop that makes a new snapshot and reads out the 64 values was increasing my AHK memory usage by about 4 MB, and never going back down until I restart the script.
by Entropy42
23 Jan 2017, 17:13
Forum: Scripts and Functions
Topic: CGDipSnapShot - GDI replacement for PixelGetColor
Replies: 70
Views: 17454

Re: CGDipSnapShot - GDI replacement for PixelGetColor

I just implemented this as a replacement for PixelGetColor in my script, and it is way, way faster, which is great, but it seems like I have a memory leak now. Here's my function that calls CGDSS: scanGridInnerLoop(newBoard, gemColorsRGB) { ; Loop X then Y: get a full column from the bottom then mov...
by Entropy42
23 Jan 2017, 15:49
Forum: Gaming
Topic: PixelGetColor taking 3 seconds for 64 searches?
Replies: 6
Views: 1279

Re: PixelGetColor taking 3 seconds for 64 searches?

Thank you very much for the suggestion! Using CGDipSnapShot instead of PixelGetColor, my search time went from 3 sec to 100 ms.
by Entropy42
19 Jan 2017, 15:05
Forum: Gaming
Topic: Simple GUI question about updating Text box
Replies: 8
Views: 1130

Re: Simple GUI question about updating Text box

Ok, I think I sort of figured it out, by naming my Gui "GoW_Helper" I now needed to specify the GUI name somehow in the GuiControlGet, contents,, StatusBar call. I have no idea how to do this, and I tried what it said in the documentation, but it failed: GuiControlGet, contents,, StatusBar, GoW_Help...
by Entropy42
19 Jan 2017, 14:42
Forum: Gaming
Topic: PixelGetColor taking 3 seconds for 64 searches?
Replies: 6
Views: 1279

Re: PixelGetColor taking 3 seconds for 64 searches?

Thanks for the suggestions, but I am not running it on a remote desktop. I'm just looking at 64 specific pixels inside a 1243x776 game window. I just mentioned that it was running in windowed mode, rather than fullscreen, because I have read in the past that PixelGetColor can fail in fullscreen. My ...
by Entropy42
19 Jan 2017, 13:53
Forum: Gaming
Topic: PixelGetColor taking 3 seconds for 64 searches?
Replies: 6
Views: 1279

PixelGetColor taking 3 seconds for 64 searches?

From reading some threads (https://autohotkey.com/board/topic/116855-pixelgetcolor-is-too-slow-or-i-doing-something-wrong/), this sounds like an unusually long time. Other people were doing 2000 reads in fractions of a second. Anyone know why this could be? Using Win7 x64, AHK v1.1.24.01, SciTE4Auto...
by Entropy42
19 Jan 2017, 13:42
Forum: Gaming
Topic: Simple GUI question about updating Text box
Replies: 8
Views: 1130

Re: Simple GUI question about updating Text box

Thanks again, but I'm afraid I'm still confused after reading that thread.
You said, "GuiControl does not work on unnumbered and unnamed Gui's without the default Gui being set correctly."
But in my case, wasn't my GUI named "GoW_Helper"?
by Entropy42
19 Jan 2017, 12:20
Forum: Gaming
Topic: Simple GUI question about updating Text box
Replies: 8
Views: 1130

Re: Simple GUI question about updating Text box

Thank you very much. That fixed it, but I would love to understand why. My script was working, and updating my GUI just fine, then I added a few more places where it should update, and it stopped updating completely. I must have made some other small change that I can't remember, but I certainly nev...
by Entropy42
18 Jan 2017, 21:11
Forum: Gaming
Topic: Simple GUI question about updating Text box
Replies: 8
Views: 1130

Simple GUI question about updating Text box

I imagine this is simple, but I can't get my Text box on my GUI to update. No part of the GUI is updating. I tried separating the code out and making a simple test function, but this also doesn't work. ; GUI initialization Gui, Destroy Gui, GoW_Helper: New Gui, Font, s14 Gui, Add, ListView, vMovesLV...
by Entropy42
18 Jan 2017, 21:05
Forum: Ask For Help
Topic: For Loop on a sequentially numbered array
Replies: 7
Views: 1456

Re: For Loop on a sequentially numbered array

It's always possible that I'm misunderstanding something, but I don't know what to post. I was debugging this, and couldn't get the loop counter to increment using "for" or "loop". I went to bed, opened it up on a different computer in the morning, started debugging again, and it was working fine wi...

Go to advanced search