Search found 18 matches

by Finallf
01 Mar 2022, 07:47
Forum: Scripts and Functions (v2)
Topic: windows capture, image search and colors search
Replies: 32
Views: 9429

Re: windows capture, image search and colors search

I'm using gdip_all to take a screenshot of a part of the screen and save it. Then I go to leptonica >tesseract>text.txt load text.txt to a variable. Something like: pToken := Gdip_Startup() snap := Gdip_BitmapFromScreen("44|814|150|22") Gdip_SaveBitmapToFile(snap, "./imgs/ss.tif") Gdip_DisposeImage(...
by Finallf
28 Feb 2022, 23:34
Forum: Scripts and Functions (v1)
Topic: RunCMD() v0.97 : Capture stdout to variable. Non-blocking version. Pre-process/omit individual lines.
Replies: 249
Views: 91253

Re: RunCMD() v0.94 : Capture stdout to variable. Non-blocking version. Pre-process/omit individual lines.

HotKeyIt wrote:
14 Apr 2020, 15:36
Nice :thumbup: and v2 compatible :D
I'm trying to use it and I have this error, I think it's not compatible with v2 beta3 :(

@SKAN
Do you know if it is possible to use it with v2 beta3?

I receive the following message:
Spoiler
by Finallf
28 Feb 2022, 22:15
Forum: Scripts and Functions (v1)
Topic: ToGrayscale() : Converts GDI bitmap to Greyscale
Replies: 30
Views: 6433

Re: ToGrayscale() : Converts GDI bitmap to Greyscale

@SKAN I'm using AHKv2 can port to AHKv2 ? I would be very grateful :D The method used in this function is a hack and doesn't produce great results. I will write and post a machine code V2 version which should produce better results. Even being a "Hack" as you are talking, in my humble opinion, it w...
by Finallf
28 Feb 2022, 03:25
Forum: Scripts and Functions (v1)
Topic: ToGrayscale() : Converts GDI bitmap to Greyscale
Replies: 30
Views: 6433

Re: ToGrayscale() : Converts GDI bitmap to Greyscale

@SKAN
I'm using AHKv2

can port to AHKv2 ?

I would be very grateful :D
by Finallf
19 Feb 2022, 15:42
Forum: Scripts and Functions (v1)
Topic: Vis2 - Image to Text OCR()
Replies: 329
Views: 161612

Re: Vis2 - Image to Text OCR()

I'll have to find some spare time to work on it. What I need is to make AHK read a specific coordinate where the text is, and return the text in some variable. If you can tell me on which line of your code, it performs the screen reading and on which line it passes to the tesserac to perform the OC...
by Finallf
15 Feb 2022, 06:11
Forum: Scripts and Functions (v1)
Topic: Vis2 - Image to Text OCR()
Replies: 329
Views: 161612

Re: Vis2 - Image to Text OCR()

why hasnt anyone updated this great script with new databases and tesseract lol? Sure. The plan is to move forward slowly to give people time to update their versions of Vis2 without breaking anything. In addition to updating the tesseract database, I am also planning to update this script to be co...
by Finallf
05 Jun 2021, 15:35
Forum: Ask for Help (v2)
Topic: Button OnEvent Topic is solved
Replies: 2
Views: 959

Re: Button OnEvent Topic is solved

regarding the space it was just a typo here on the forum, the code is correct :D
Got it, I need to have some expected value, even if it's *.
Thanks again o/
by Finallf
05 Jun 2021, 14:51
Forum: Ask for Help (v2)
Topic: Button OnEvent Topic is solved
Replies: 2
Views: 959

Button OnEvent Topic is solved

by logic it should work, but it doesn't, the MoveMouse() function is not executed. Any light? ... Global DebugGui := Gui() DebugGui.Add("Edit", "w320 r3 ReadOnly vDebugView","") DebugGui.Add("Button","w80 x251 y58","&Mover").OnEvent "Click", MoveMouse) DebugGui.Show("NoActivate") MoveMouse() { Mouse...
by Finallf
04 Jun 2021, 14:48
Forum: Ask for Help (v2)
Topic: Keywait + ErrorLevel Topic is solved
Replies: 4
Views: 1933

Re: Keywait + ErrorLevel Topic is solved

Thanks for the reply, it worked, just had to remove the "D" option Keywait function, to work with the inversion of logic. That's how it worked: ... ~LButton:: { if GetKeyState("LButton", "P") { if (!Keywait("LButton", "T1") and LClick=0) { ;RandomSleep(1,20) ;SendInput {MButton} RandomSleep(1,20) Se...
by Finallf
03 Jun 2021, 21:11
Forum: Ask for Help (v2)
Topic: Keywait + ErrorLevel Topic is solved
Replies: 4
Views: 1933

Re: Keywait + ErrorLevel Topic is solved

Thanks for the quick response, I made the changes and it still has the same problem. It does not respect the 8 millisecond time, it activates as soon as you click the mouse button. I tested it with 2 seconds and even so it doesn't wait 2, it activates when it clicks. I would like it to work like in ...
by Finallf
03 Jun 2021, 20:18
Forum: Ask for Help (v2)
Topic: Keywait + ErrorLevel Topic is solved
Replies: 4
Views: 1933

Keywait + ErrorLevel Topic is solved

I'm porting a script to V2, and Keywait isn't working like V1. I'm using the latest version: 2.0-a136-feda41f4 on V1 working: ... ~LButton:: if GetKeyState("LButton") { Keywait, LButton, t.8 if (ErrorLevel=1 and LClick=0) { RandomSleep(1,20) ;random sleep function SendInput, e LClick=1 } } on v2 it ...
by Finallf
17 Nov 2020, 13:02
Forum: Ask for Help (v2)
Topic: [AHKv2] - Update the GUI Edit value with visible text Topic is solved
Replies: 3
Views: 1632

Re: [AHKv2] - Update the GUI Edit value with visible text Topic is solved

swagfag wrote:
17 Nov 2020, 12:38

Code: Select all

DebugGui['DebugView'].Value := WinGetText()
Thanks, it worked.

I tried it with square brackets before, but I hadn't used the quotes.

Thanks again.
by Finallf
17 Nov 2020, 12:14
Forum: Ask for Help (v2)
Topic: [AHKv2] - Update the GUI Edit value with visible text Topic is solved
Replies: 3
Views: 1632

Re: [AHKv2] - Update the GUI Edit value with visible text Topic is solved

Sorry, I only saw the AHK2 help topic after clicking.
Could a moderator please move there.
Thanks again.
by Finallf
17 Nov 2020, 12:09
Forum: Ask for Help (v2)
Topic: [AHKv2] - Update the GUI Edit value with visible text Topic is solved
Replies: 3
Views: 1632

[AHKv2] - Update the GUI Edit value with visible text Topic is solved

Hello little friends ... I have a problem to dynamically update the display of a text in a simple GUI. I'm using this code that I adapted from Window Spy as a debug: DebugGui := Gui.New() DebugGui.Add("Edit","w320 r3 ReadOnly vDebugView") DebugGui.Show("NoActivate") DetectHiddenText 0 ; ovVisText :=...
by Finallf
17 Nov 2020, 11:17
Forum: Ajuda e Suporte Geral
Topic: [AHKv2] - Atualizar o valor da GUI Edit com texto visivel
Replies: 1
Views: 602

[AHKv2] - Atualizar o valor da GUI Edit com texto visivel

Olá Abiguinhos... Estou com um problema para atualizar dinamicamenta a visualização de um texto em uma simple Gui. Estou usando este codigo que adaptei do Window Spy como um debug: DebugGui := Gui.New() DebugGui.Add("Edit","w320 r3 ReadOnly vDebugView") DebugGui.Show("NoActivate") DetectHiddenText 0...
by Finallf
30 Oct 2020, 15:04
Forum: Ask for Help (v2)
Topic: Assigning ahk_exe with variable Topic is solved
Replies: 4
Views: 925

Re: Assigning ahk_exe with variable Topic is solved

Thanks, it worked.
I will use it global because I have other places to use the variable, so it is easier to use.
by Finallf
30 Oct 2020, 14:23
Forum: Ask for Help (v2)
Topic: Assigning ahk_exe with variable Topic is solved
Replies: 4
Views: 925

Assigning ahk_exe with variable Topic is solved

I am passing a script v1 to v2. This way it works: SetTimer "checkwin", 1000 checkwin() { if !WinExist("ahk_exe snes9x-x64.exe") ExitApp } But I need it to work like this: AhkName := "ahk_exe snes9x-x64.exe" SetTimer "checkwin", 1000 checkwin() { if !WinExist("%AhkName%") ExitApp } or like this: Ahk...

Go to advanced search