Search found 58 matches
- 04 Nov 2022, 22:30
- Forum: Ask for Help (v1)
- Topic: Generating search queries for GraphicSearch class
- Replies: 4
- Views: 383
Re: Generating search queries for GraphicSearch class
FindText has a .imagesearch method that may be of interest. FindText().ImageSearch is a easier-to-use wrapper function for the FindText function. It can also accept image files like the AHK native function ImageSearch (but options, such as *IconN, are not supported) I will work on bringing that to ...
- 04 Nov 2022, 16:30
- Forum: Ask for Help (v1)
- Topic: Generating search queries for GraphicSearch class
- Replies: 4
- Views: 383
- 04 Nov 2022, 10:53
- Forum: Ask for Help (v1)
- Topic: Generating search queries for GraphicSearch class
- Replies: 4
- Views: 383
Generating search queries for GraphicSearch class
hello, i am looking for a way to create Search Queries for https://github.com/Chunjee/graphicsearch.ahk without using the manual tool (https://chunjee.github.io/graphicsearch.ahk/#/generating-queries - capture, crop, gray etc. to obtain the query) and i want to obtain search queries by just providin...
- 04 Nov 2022, 10:38
- Forum: Scripts and Functions (v1)
- Topic: [Class] graphicsearch.ahk (ImageSearch strings)
- Replies: 34
- Views: 14609
Re: [Class] graphicsearch.ahk (ImageSearch strings)
I love the class but is there an easy way to create search queries from just .png or .jpg files? so i don't have to manually use the tool to capture, crop etc.?
- 14 Aug 2022, 15:34
- Forum: Ask for Help (v1)
- Topic: PixelSearch in a browser Topic is solved
- Replies: 4
- Views: 525
Re: PixelSearch in a browser Topic is solved
I have not used Tampermonkey. Others may know. In some cases, you can click in an inactive window. :arrow: ControlClick my "workaround": i noticed the <div> inside the website code is changing whenver the colors are somewhat changing - so i am now checking jQuery class .html() value in a loop and w...
- 14 Aug 2022, 10:38
- Forum: Ask for Help (v1)
- Topic: PixelSearch in a browser Topic is solved
- Replies: 4
- Views: 525
Re: PixelSearch in a browser Topic is solved
Probably not with minimized, but maybe with a background window. https://www.autohotkey.com/boards/viewtopic.php?p=111080#p111080 This most likely could bypass my problem in a decent way, although i can't make it work, another problem is that using this i won't be able to MouseClick, left so i'd st...
- 14 Aug 2022, 09:57
- Forum: Ask for Help (v1)
- Topic: PixelSearch in a browser Topic is solved
- Replies: 4
- Views: 525
PixelSearch in a browser Topic is solved
Hello, i successfully managed to write a pixelsearch script that fits my needs, but i want to improve it even more by making it work without me looking at the page. So basically i want it to work as it does right now but even when the browser is minimized/tabs are switched. Could i somehow do that? ...
- 01 Jun 2022, 12:51
- Forum: Ask for Help (v1)
- Topic: Problem with if expression Topic is solved
- Replies: 15
- Views: 1254
- 01 Jun 2022, 08:16
- Forum: Ask for Help (v1)
- Topic: Problem with if expression Topic is solved
- Replies: 15
- Views: 1254
Re: Problem with if expression Topic is solved
Now you’re arguing that performing the checks even faster will be worse. I don’t think I can advance this conversation any farther. Perhaps someone else would like to weigh in. It just seemed logical for that making the checks faster will solve the issue but then after longer consinderation it seem...
- 31 May 2022, 14:04
- Forum: Ask for Help (v1)
- Topic: Problem with if expression Topic is solved
- Replies: 15
- Views: 1254
Re: Problem with if expression Topic is solved
So now you're saying they are being completed at essentially the same time? So I'm not sure what you think the issue is if it's not speed. I guess you want them to execute at exactly the same time. That's not how computers work. At least not without parallel processing, and getting the contents of ...
- 31 May 2022, 13:11
- Forum: Ask for Help (v1)
- Topic: Problem with if expression Topic is solved
- Replies: 15
- Views: 1254
Re: Problem with if expression Topic is solved
OK, so now you've just clarified that it's a different scenario. Since they're not variables that you had already assigned, they actually will be evaluated one after the other within your compound condition expression. But then the premise of your question is asking for an impossibility. You're ask...
- 31 May 2022, 12:16
- Forum: Ask for Help (v1)
- Topic: Problem with if expression Topic is solved
- Replies: 15
- Views: 1254
Re: Problem with if expression Topic is solved
I’m not seeing where you assign the variables x and role their values. It may be that both your separate script and where your script assigns results from it to those variables need to be setting and observing “busy” flags. That would require some IPC (inter-process communication) of some type. My ...
- 31 May 2022, 07:31
- Forum: Ask for Help (v1)
- Topic: Problem with if expression Topic is solved
- Replies: 15
- Views: 1254
Re: Problem with if expression Topic is solved
Nothing you just described changes what I’ve been saying. The problem is not that the “if” statement isn’t evaluating the two conditions fast enough, it’s that “if” statement is being executed when x has changed but role has not yet changed (or vice-versa) — not that they are changing while that ex...
- 31 May 2022, 02:32
- Forum: Ask for Help (v1)
- Topic: Problem with if expression Topic is solved
- Replies: 15
- Views: 1254
Re: Problem with if expression Topic is solved
If you're using that classMemory class in your script, it's not a separate process. Is it running as a separate script that is updating an object and you are using something like ObjRegisterActive to read the elements of the objected from that separate script? The point being, however you are grabb...
- 30 May 2022, 21:46
- Forum: Ask for Help (v1)
- Topic: Problem with if expression Topic is solved
- Replies: 15
- Views: 1254
Re: Problem with if expression Topic is solved
I'm finding it hard to believe that your code is changing the values of those variables after it checks the value of x and before it checks the value of y. For one thing, standard AHK is not multithreaded, so it won't be changing them in the middle of that statement executing. Perhaps AHK isn't run...
- 30 May 2022, 20:41
- Forum: Ask for Help (v1)
- Topic: Problem with if expression Topic is solved
- Replies: 15
- Views: 1254
Problem with if expression Topic is solved
I will try to describe my problem as best as i can. So, technically my problem is that i have two conditions in a if statement lets say its if(x>5 && y >5) and the if is in a loop so the program is keep checking the if. the x and y are variables of an object, objects are on a screen and there is mil...
- 15 May 2022, 16:22
- Forum: Gaming Help (v1)
- Topic: Recognize 3 numbers on screen and save as variable
- Replies: 3
- Views: 393
Re: Recognize 3 numbers on screen and save as variable
There are some other OCR scripts-- I think FindText and OCR, maybe others, too. Hi, i tested all of them and Vis2 was the fastest for me which gave me 0.550s result. The thing is, it is still too slow in my situation, i know it is trying to recognize text so maybe can i somehow edit it to make it w...
- 15 May 2022, 16:05
- Forum: Gaming Help (v1)
- Topic: Recognize 3 numbers on screen and save as variable
- Replies: 3
- Views: 393
Recognize 3 numbers on screen and save as variable
hi, i am using Vis2 lib to recognize some variable text on the screen and save it as a string variable(https://www.autohotkey.com/boards/viewtopic.php?f=6&t=36047) but the waiting time for this is around 1 second(for 3digits number). Does anyone know a faster way for this(i need it to work basically...
- 15 May 2022, 15:48
- Forum: Scripts and Functions (v1)
- Topic: Vis2 - Image to Text OCR()
- Replies: 329
- Views: 162416
Re: Vis2 - Image to Text OCR()
is there a way to make OCR([x, y, w, h]) faster? It takes around 1s to "recognize" 3digits number but im sure it possibly could be faster.
- 24 Mar 2022, 19:27
- Forum: Ask for Help (v1)
- Topic: Help with hotkey recorder Topic is solved
- Replies: 5
- Views: 608
Re: Help with hotkey recorder Topic is solved
OK. I think you want to use MouseGetPos and Click as noted. A demonstration is below. I got it, thanks. If i anyone is interested: Keys = {f1}{f2} For all, LF in [[0x1FF,"sc{:X}"],[0xFF,"vk{:X}"]] Loop,% LF.1 IF (""<Key:=GetKeyName(Format(LF.2,A_Index))) IF !InStr(Keys, K:="{" Key "}") { Keys .= K ...