Search found 18 matches

by Uncle Iroh
10 Nov 2019, 22:02
Forum: Ask For Help
Topic: Looping script eventually starts malfunctioning
Replies: 19
Views: 1105

Re: Looping script eventually starts malfunctioning

Yeah, but it happens while BlueStacks is still the app constantly active, and even though the shortest of 75ms definitely isn’t too fast, if it was, subsequent ones wouldn’t always be that low. Especially because one of the ones that’s always excluded when it starts looping malfunctioned clicks, is ...
by Uncle Iroh
10 Nov 2019, 21:47
Forum: Ask For Help
Topic: Looping script eventually starts malfunctioning
Replies: 19
Views: 1105

Re: Looping script eventually starts malfunctioning

“I just couldn’t believe the supposed else-problem”. Haha, well, it’s not like randomly repeating only 3 of the clicks from the whole loop, and which aren’t even 3 that are consecutive in the script, makes any more sense...
by Uncle Iroh
10 Nov 2019, 21:19
Forum: Ask For Help
Topic: Looping script eventually starts malfunctioning
Replies: 19
Views: 1105

Re: Looping script eventually starts malfunctioning

I’m currently recording again until it malfunctions again, to see if it’s in the exact same way. Not that it will take the same amount of time to occur, though...
by Uncle Iroh
10 Nov 2019, 21:18
Forum: Ask For Help
Topic: Looping script eventually starts malfunctioning
Replies: 19
Views: 1105

Re: Looping script eventually starts malfunctioning

All those actions you saw it properly repeating, though, were when it *wasn't* finding the colour. And started malfunctioning while it still wasn’t. It’s very strange.
by Uncle Iroh
10 Nov 2019, 20:55
Forum: Ask For Help
Topic: Looping script eventually starts malfunctioning
Replies: 19
Views: 1105

Re: Looping script eventually starts malfunctioning

This is what's happening: https streamable.com /ok4yx Broken Link for safety Whoops. Now that I finally decided to just record it, this time -- or maybe every time -- it wasn't actually just looping the last else bit. Rather, it seems to be doing *mostly* the bottom else, but with 1 of the clicks fr...
by Uncle Iroh
10 Nov 2019, 20:39
Forum: Ask For Help
Topic: Looping script eventually starts malfunctioning
Replies: 19
Views: 1105

Re: Looping script eventually starts malfunctioning

Down and Up are the D and U. It's just optional to write more than the first letter, as it is with L and R click.
by Uncle Iroh
10 Nov 2019, 20:17
Forum: Ask For Help
Topic: Looping script eventually starts malfunctioning
Replies: 19
Views: 1105

Re: Looping script eventually starts malfunctioning

RandSleep is simple as it gets, sadly. Can't be the issue.

Code: Select all

RandSleep(min,max){
Random, rand, %min%, %max%
Sleep %rand%
}
by Uncle Iroh
10 Nov 2019, 19:48
Forum: Ask For Help
Topic: Looping script eventually starts malfunctioning
Replies: 19
Views: 1105

Re: Looping script eventually starts malfunctioning

I considered it being a BlueStacks issue, but I know others have written ahk scripts for it without this issue. And it definitely is somehow only doing the bottom else without doing the top else, because, not only would there not be an issue, it also wouldn't be visible as it is, if somehow there co...
by Uncle Iroh
10 Nov 2019, 19:37
Forum: Ask For Help
Topic: Looping script eventually starts malfunctioning
Replies: 19
Views: 1105

Re: Looping script eventually starts malfunctioning

No, an else-branch cannot simply loop by itself. There must be something else going on so that the colors cannot be found anymore. Perhaps something interferes on your computer and de-activates the window... And yet, it is. Somehow. This happens on both computers, when I literally have nothing else...
by Uncle Iroh
10 Nov 2019, 19:25
Forum: Ask For Help
Topic: Looping script eventually starts malfunctioning
Replies: 19
Views: 1105

Re: Looping script eventually starts malfunctioning

It malfunctions while BlueStacks is active and visible. And I have it established for what it's supposed to do when the colour isn't found. Which is actually the default state. It behaves exactly like it should for a random period of 5-90 minutes, then starts looping only a small part of the whole l...
by Uncle Iroh
10 Nov 2019, 18:44
Forum: Ask For Help
Topic: Looping script eventually starts malfunctioning
Replies: 19
Views: 1105

Looping script eventually starts malfunctioning

I have a looping script that only takes a few seconds to complete, and continues until I tell it to stop. However, for whatever reason, it will eventually malfunction and just start looping only 3 of the various clicks. And not even 3 that are in a row at any point in the script. This may take an ho...
by Uncle Iroh
05 Nov 2019, 23:54
Forum: Ask For Help
Topic: Help formatting
Replies: 2
Views: 260

Re: Help formatting

Thank you for the help.
by Uncle Iroh
05 Nov 2019, 21:08
Forum: Ask For Help
Topic: Help formatting
Replies: 2
Views: 260

Help formatting

How would I format a looped script so that it has a chain of blocks to (potentially) execute, and skips the rest of the chain once a block has been executed? I'll try to make that make sense. An initial pixelsearch is done to determine a state. If true, it needs to pixelsearch again and again for a ...
by Uncle Iroh
03 Nov 2019, 16:58
Forum: Ask For Help
Topic: PixelSearch is supposed to be more accurate than this, right? Topic is solved
Replies: 5
Views: 578

Re: PixelSearch is supposed to be more accurate than this, right? Topic is solved

Yeah, I'm an idiot. I was doing everything else you said, except I stupidly trusted that client mode was excluding titles, borders, etc, as it's intended to. Somehow never occurred to me that it wasn't. Tested using window spy's coordinates and it worked as intended. This idiot is grateful to you fo...
by Uncle Iroh
03 Nov 2019, 16:32
Forum: Ask For Help
Topic: PixelSearch is supposed to be more accurate than this, right? Topic is solved
Replies: 5
Views: 578

Re: PixelSearch is supposed to be more accurate than this, right? Topic is solved

Tried countless times, with many different colours -- that I always get from window spy -- and different applications. And yeah, I've tried a lot of different variations forwhat shades get accepted. Bottom line is, it'll find an exact match with no variation, if I have the search area large enough, ...
by Uncle Iroh
03 Nov 2019, 15:17
Forum: Ask For Help
Topic: PixelSearch is supposed to be more accurate than this, right? Topic is solved
Replies: 5
Views: 578

PixelSearch is supposed to be more accurate than this, right? Topic is solved

If I use CoordMode to set it to screen, it works exactly as I expect it to. But if I try a narrower search area while in window/client mode, it won't find the pixel unless the search area has 200+ extra pixels in every direction from the one you're searching for. For instance, I did a test where I s...
by Uncle Iroh
30 Oct 2019, 15:11
Forum: Ask For Help
Topic: PixelSearch not working at all Topic is solved
Replies: 3
Views: 551

Re: PixelSearch not working at all Topic is solved

Well, now I feel damn stupid. Thank you for spotting the error. I saw a "0x" at the beginning of the colour ID example in the documentation, but I'm completely new to AHK and coding in general, so I thought that was just what that specific colour happened to be. Where some start that way, and some d...
by Uncle Iroh
30 Oct 2019, 14:56
Forum: Ask For Help
Topic: PixelSearch not working at all Topic is solved
Replies: 3
Views: 551

PixelSearch not working at all Topic is solved

If the search area goes right to the edge of any of the 4 corners of a window, it will always come back positive, even if none of the colours in the searched area are anywhere close to the specified colour to look for. Where as, if I search for a pixel in a small area, such as 50x50 or 100x100, it w...

Go to advanced search