Search found 16 matches

by Qhimin
08 Mar 2021, 05:54
Forum: Scripts and Functions (v1)
Topic: FindText - Capture screen image into text and then find it Topic is solved
Replies: 1088
Views: 584218

Re: FindText - Capture screen image into text and then find it Topic is solved

feiyue wrote:
08 Mar 2021, 00:34
@Qhimin
Maybe this is a BUG of Ahk_H version, you can try like this:

Code: Select all

Gui(cmd, arg1:="")
{
  ;--  local  ;--  Comment out or remove this line
  static
Thank you very much @feiyue ! It does worked!
by Qhimin
07 Mar 2021, 19:24
Forum: Scripts and Functions (v1)
Topic: FindText - Capture screen image into text and then find it Topic is solved
Replies: 1088
Views: 584218

Re: FindText - Capture screen image into text and then find it Topic is solved

Hello Feiyue,

Is this function supposed to work with AHK_H ? Cause I'm trying to make it work there to get the text codes but just after I run the .ahk nothing happens.

Thank you!
by Qhimin
02 Mar 2021, 09:05
Forum: AutoHotkey_H
Topic: How to capture an external function inside of thread? Topic is solved
Replies: 12
Views: 8345

Re: How to capture an external function inside of thread? Topic is solved

considering only string parameters are supported, ByRef clearly wont work in this case i dont get why ure making calls from the child thread to the parent thread to have it call some GDI+ functions while shuffling the arguments back and forth. instead, separate the GDI+ functions into a library fil...
by Qhimin
25 Feb 2021, 18:29
Forum: Ask for Help (v1)
Topic: A* Pathfinding Algorithm help.
Replies: 10
Views: 3238

Re: A* Pathfinding Algorithm help.

Although it's working, maybe it may have been improved. It would be pretty easy to modify the function to allow other options like diagonal movement ... Hello, Some time ago, I made a slightly modified version to also support 8 directions (diagonals) Astar_Grid(X1, Y1, X2, Y2, closed, alldirs:=fals...
by Qhimin
14 Feb 2021, 07:16
Forum: Ask for Help (v1)
Topic: Remove specific color from image Topic is solved
Replies: 8
Views: 740

Re: Remove specific color from image Topic is solved

The same, but faster: SetBatchLines, -1 inputFilePath := "C:\Users\User\Desktop\GrayScale.png" outputFilePath := "C:\Users\User\Desktop\ModifiedGrayScale.png" pToken := Gdip_Startup() pBitmap := Gdip_CreateBitmapFromFile(inputFilePath) Gdip_SetBitmapTransColor(pBitmap, 0) Gdip_SaveBitmapToFile(pBit...
by Qhimin
13 Feb 2021, 15:10
Forum: Ask for Help (v1)
Topic: Remove specific color from image Topic is solved
Replies: 8
Views: 740

Re: Remove specific color from image Topic is solved

remove all the black pixels from a grayscale image What do you mean by this? What result are you expecting to see? Maybe, you mean "replace black pixels with transparent ones"? I have a image with like 2000x2000 pixels and most of them are black pixels. To search inside of this image I take a scree...
by Qhimin
13 Feb 2021, 07:06
Forum: Ask for Help (v1)
Topic: Remove specific color from image Topic is solved
Replies: 8
Views: 740

Remove specific color from image Topic is solved

Hello, I have been trying to remove all the black pixels from a grayscale image using GDIP, but no success. I have already tryed to use Gdip_GraphicsClear(pBitmap, 0x00000000) and also Gdip_SetBitmapTransColor(pBitmap, 0x000000) but both didn't work. Here's the code: If !pToken := Gdip_Startup() Msg...
by Qhimin
11 Jan 2021, 20:16
Forum: Scripts and Functions (v1)
Topic: FindText - Capture screen image into text and then find it Topic is solved
Replies: 1088
Views: 584218

Re: FindText - Capture screen image into text and then find it Topic is solved

feiyue wrote:
08 Jan 2021, 01:43
@Qhimin
Just update it ! :beer:
Thank you very much! U r amazing :D
by Qhimin
06 Jan 2021, 09:18
Forum: Scripts and Functions (v1)
Topic: FindText - Capture screen image into text and then find it Topic is solved
Replies: 1088
Views: 584218

Re: FindText - Capture screen image into text and then find it Topic is solved

How can I get the Gray2Two Text through code using GetTextFromScreen() ?

Thanks!
by Qhimin
08 Dec 2020, 20:10
Forum: Ajuda e Suporte Geral
Topic: Salvar Posição ImageSearch Topic is solved
Replies: 1
Views: 435

Salvar Posição ImageSearch Topic is solved

Fala galera, tudo certo? O código no momento, que funciona, está assim: Loop { ImageSearch, refX, refY, 0, 0, A_ScreenWidth, A_ScreenHeight, *40 ./imgRef.png if (ErrorLevel == 0) { ImageSearch, WX, WY, refX-70, refY+40, refX-30, refY+80, *40 ./img.png if (ErrorLevel == 0) MsgBox it works } } Para bu...
by Qhimin
02 Dec 2020, 12:38
Forum: Ajuda e Suporte Geral
Topic: Encerrar AHK Script Topic is solved
Replies: 1
Views: 1516

Encerrar AHK Script Topic is solved

Fala galera, tudo certo?

Eu estou com a seguinte situação:

Tenho um script AHK executando e preciso que outro script AHK encerre o primeiro.
Tentei fazer isso através do processo mas aí acaba encerrando todos os scripts que estão rodando.

Existe alguma forma de fazer isso?

Desde já agradeço!
by Qhimin
01 Dec 2020, 09:19
Forum: Scripts and Functions (v1)
Topic: Optical character recognition (OCR) with UWP API
Replies: 157
Views: 66034

Re: Optical character recognition (OCR) with UWP API

Just insert Gdip_Startup() in Your code. Hum, understood! Thank you sir! If you know a better way for that I am totally opened to suggestions. Actually I'm using [url=http capture2text.sourceforge.net /]Capture2Text[/url] Broken Link for safety now since this api cannot recognize single letters/dig...
by Qhimin
30 Nov 2020, 22:06
Forum: Scripts and Functions (v1)
Topic: Optical character recognition (OCR) with UWP API
Replies: 157
Views: 66034

Re: Optical character recognition (OCR) with UWP API

malcev wrote:
30 Nov 2020, 21:31
You have to load gdiplus library for such functions.
Which version especifically? Because I've tried to run v1.45 and like I said before, v1.85 too but both didn't work.
Also thanks for the help :D
by Qhimin
30 Nov 2020, 20:34
Forum: Scripts and Functions (v1)
Topic: Optical character recognition (OCR) with UWP API
Replies: 157
Views: 66034

Re: Optical character recognition (OCR) with UWP API

If You use the code from the first post will it work for You? Yep, It does work. I'm running with Gdip v1.85 and I have just included that and changed the beginning of the file: ^X:: area := GetArea() pBitmap := Gdip_BitmapFromScreen(area.x "|" area.y "|" area.w "|" area.h) pBitmap := Gdip_ResizeBi...
by Qhimin
30 Nov 2020, 20:09
Forum: Scripts and Functions (v1)
Topic: Optical character recognition (OCR) with UWP API
Replies: 157
Views: 66034

Re: Optical character recognition (OCR) with UWP API

malcev wrote:
30 Nov 2020, 20:06
This api is for windows >= 8.1
I'm running w10 Pro 20H2. :|
by Qhimin
30 Nov 2020, 19:30
Forum: Scripts and Functions (v1)
Topic: Optical character recognition (OCR) with UWP API
Replies: 157
Views: 66034

Re: Optical character recognition (OCR) with UWP API

I used Gdip to upscale the smaller selections and now it's working great 🎉 area := GetArea() pBitmap := Gdip_BitmapFromScreen(area.x "|" area.y "|" area.w "|" area.h) pBitmap := Gdip_ResizeBitmap(pBitmap, 500, 500, true) ;Gdip_SaveBitmapToFile(pBitmap, "output_test.png") hBitmap := Gdip_CreateHBITM...

Go to advanced search