Search found 18 matches

by gameba
14 Jul 2018, 23:43
Forum: Ask For Help
Topic: Problem Machine code! The element in the array is positioned incorrectly
Replies: 1
Views: 88

Problem Machine code! The element in the array is positioned incorrectly

Hi, pls view code below, It simply returns a value of the array but wrong position. Ex: Normally, array[0][0] is first element but In this case array[0][9] will return first element, array[0][10] = 2nd element (value = 1) array[0][11] = 3rd element (value = 2) array[0][12] = 4th element (value = 3) ...
by gameba
08 Jul 2018, 22:06
Forum: Ask For Help
Topic: problem with big array ,machine code return empty
Replies: 2
Views: 118

problem with big array ,machine code return empty

I am learning machine code, I have a problem with big array in c code, machine code alway return empty. If I reduce number of elements in array , Its will work. but I need to a big array :| p/s: I use MCode4GCC to create machine code https://autohotkey.com/boards/viewtopic.php?f=6&t=4642 image t...
by gameba
07 Jul 2018, 05:55
Forum: Ask For Help
Topic: How to Passing an int array as a dllcall parameter Topic is solved
Replies: 2
Views: 108

Re: How to Passing an int array as a dllcall parameter Topic is solved

Varsetcapacity(myintarray, 4*numelements) Loop % numelements Numput(a_index, myintarray, (a_index - 1) * 4, "int") Dllcall(fn, "ptr", &myintarray, ...) Edit, you miss a value after "uint" in your dllcall , edit2, I see you should just remove it. Cheers. Thank you v...
by gameba
07 Jul 2018, 01:53
Forum: Ask For Help
Topic: How to Passing an int array as a dllcall parameter Topic is solved
Replies: 2
Views: 108

How to Passing an int array as a dllcall parameter Topic is solved

Hi, I am learning machine code,pls view basic code below, I dont know how to Passing an int array as a dllcall parameter I use AHK v1 64bit F1:: array:=[1,2,3,4,5,6,7,8,9] machinecode:=MCode("2,x64:i0EEw5CQkJCQkJCQkJCQkA==") result:= DllCall( machinecode, "int", array, "uint...
by gameba
24 Jun 2018, 20:59
Forum: AutoHotkey_H
Topic: How to terminate a threads in another thread?how to Accessing a variable of a thread from another thread ? Topic is solved
Replies: 1
Views: 162

How to terminate a threads in another thread?how to Accessing a variable of a thread from another thread ? Topic is solved

Hi, pls help 1)How to terminate a threads from another thread? 2)How to Accessing a variable of a thread from another thread ? I read document at here https://hotkeyit.github.io/v2/docs/commands/ahkgetvar.htm and here https://hotkeyit.github.io/v2/docs/commands/ahkTerminate.htm but It work only in m...
by gameba
21 Jun 2018, 19:45
Forum: AutoHotkey_H
Topic: how to I can add array parameter ? Topic is solved
Replies: 3
Views: 281

Re: how to I can add array parameter ? Topic is solved

@HotKeyIt awesome. Thank you very much! :D
by gameba
21 Jun 2018, 05:31
Forum: AutoHotkey_H
Topic: how to I can add array parameter ? Topic is solved
Replies: 3
Views: 281

how to I can add array parameter ? Topic is solved

Hi, guys Pls, help how to I can add array parameter ? I try below code but it isn't work p/s I use AHK_H v1 64bit array:=[1,2,3,4] threads:=[] Loop 3 threads[A_Index]:=AhkThread(" ( var:=A_Args[1] msgbox % var[1] Return )", array) ESC:: ExitApp if the array are not allow,so How do I assign...
by gameba
11 Apr 2018, 21:24
Forum: AutoHotkey_H
Topic: AHK_H not compatible with Gdip_BitmapFromScreen?
Replies: 0
Views: 258

AHK_H not compatible with Gdip_BitmapFromScreen?

threads:=[] Loop 8 threads[A_Index]:=AhkThread(" ( Process, Priority,, High SetBatchLines, -1 #Include <Gdip_All> #Include <Gdip_ImageSearch> pToken := Gdip_Startup() run: Loop 10000 { linkSmall:=""G:\img\test3.png"" pSmall := Gdip_CreateBitmapFromFile(linkSmall) ;linkBig:=...
by gameba
26 Mar 2018, 04:19
Forum: AutoHotkey_H
Topic: How to add parameters into AhkThread ? Topic is solved
Replies: 5
Views: 528

How to add parameters into AhkThread ? Topic is solved

threads:=[] Loop 4 threads[A_Index]:=AhkThread(" ( msgbox `% A_Args[1] msgbox `% A_Args[2] msgbox `% A_Args[3] )", "1 2 %A_Index%") ESC:: ExitAPP I tried add parameter to AhkThread. A_Args[1], A_Args[2] work fine, but A_Args[3] not get A_Index value. Pls, Help me!
by gameba
26 Mar 2018, 01:18
Forum: Scripts and Functions
Topic: Vis2 - Image to Text OCR()
Replies: 180
Views: 12717

Re: Vis2 - OCR() - Update: Additional Language Support

Added workaround. Bug is due to you calling pToken := Gdip_Startup() and Vis2.ahk as well. When one script calls Gdip twice, many weird bugs can occur. I suggest you use OCR([x,y,w,h]) to the screen directly, or from a file directly. Your code will run normally now. I need to identify the n...
by gameba
26 Mar 2018, 00:40
Forum: Scripts and Functions
Topic: Vis2 - Image to Text OCR()
Replies: 180
Views: 12717

Re: Vis2 - OCR() - Update: Additional Language Support

I get a bug, pls run the script below: If the loop > 2, pBitmapOCR always get a value is 0 #include <Vis2> CoordMode, mouse, screen CoordMode, Pixel, screen pToken := Gdip_Startup() FilePath:="G:\CSDL\picture2\a (2).png" pBitmapOld := Gdip_CreateBitmapFromFile(FilePath) loop, 4 { ocrX:=20+...
by gameba
25 Mar 2018, 22:12
Forum: Scripts and Functions
Topic: Vis2 - Image to Text OCR()
Replies: 180
Views: 12717

Re: Vis2 - OCR() - Update: Additional Language Support

I get a error
Image

I think Vis2 is not compatible with AHK_H v1, right?
by gameba
25 Mar 2018, 20:11
Forum: AutoHotkey_H
Topic: Help me generate script run with real multithread Topic is solved
Replies: 9
Views: 661

Re: Help me generate script run with real multithread Topic is solved

This error is due to using AutoHotkey_H v2, try using AutoHotkey_H v1. AFAIK your Gdip functions are also not compatible with v2, otherwise you need to use proper syntax for v2: ProcessSetPriority("High") , also remove Setbatchlines. You are god! you save my life. Now, I can maxim...
by gameba
25 Mar 2018, 10:03
Forum: AutoHotkey_H
Topic: Help me generate script run with real multithread Topic is solved
Replies: 9
Views: 661

Re: Help me generate script run with real multithread Topic is solved

HotKeyIt wrote:Yes but the script above is for AutoHotkey_H v1, your picture is not displayed unfortunately, can you type down the error?

sorry, I forget set public image :D
by gameba
25 Mar 2018, 08:53
Forum: AutoHotkey_H
Topic: Help me generate script run with real multithread Topic is solved
Replies: 9
Views: 661

Re: Help me generate script run with real multithread Topic is solved

@HotKeyIt, Thank you for your reply I tried it and received a error https://drive.google.com/uc?export=download&id=1xqsBV2KLUaqelvY2cuGPH4iZwVWzQLGi I use window10 64bit, I installed AHK version: v1.1.28.00 - February 11, 2018 64bit and download AHK_H V2 alpha. I copy all file (AutoHotkey.dll, A...
by gameba
25 Mar 2018, 05:58
Forum: AutoHotkey_H
Topic: Help me generate script run with real multithread Topic is solved
Replies: 9
Views: 661

Help me generate script run with real multithread Topic is solved

I created a script to help me find duplicate images in my image database(>1000000 images). pls, view code below: #NoEnv SetBatchLines, -1 Process, Priority,, High #Include Gdip_All.ahk #Include Gdip_ImageSearch.ahk gdipToken := Gdip_Startup() START:=A_TickCount Loop 1000000 { A:=A_Index Loop % 10000...
by gameba
20 Mar 2018, 20:50
Forum: Ask For Help
Topic: Re: why my script is destroyed?
Replies: 3
Views: 171

Any way to create a recursive function infinite does not crash?

I created a recursive function infinite below: #include Vis2.ahk CoordMode, mouse, screen CoordMode, Pixel, screen global bookid:=0 pToken := Gdip_StartUp() funcOCR(){ regText := OCR([28, 170, 250, 90]) ;OutPutDebug, % regText "chil" if (InStr(regText,"chil")){ sleep 1000 click 5...

Go to advanced search