Search found 11 matches

by ddt442
09 Feb 2023, 04:47
Forum: Ask for Help
Topic: How do I get Ver from thread?
Replies: 1
Views: 1662

How do I get Ver from thread?

Code: Select all

 script1 := "
(
ver1 := 123
ver2 := 456
)"

XButton1::
{
    MyThread1 := NewThread(script1)
msgbox ver1
msgbox ver2
}

As title how do I ger ver1 and ver2 from thread?
by ddt442
26 Sep 2022, 02:41
Forum: Scripts and Functions (v2)
Topic: windows capture, image search and colors search
Replies: 32
Views: 9517

Re: windows capture, image search and colors search

Is possible to have an example for finding multi colors's coordinate?
by ddt442
21 Sep 2022, 00:11
Forum: Scripts and Functions (v1)
Topic: AutoHotInterception (AHI): Multi-Keyboard / Multi-Mouse support for AHK. Per-device blocking!
Replies: 345
Views: 205003

Re: AutoHotInterception (AHI): Multi-Keyboard / Multi-Mouse support for AHK. Per-device blocking!

evilC Hi, I'm running win 11, and the Monitor app is working. 螢幕擷取畫面 2022-09-21 130227.png But for some reason the mouse-related example file can't get coord, like this: 2022-09-21 (2).png Mouse button detection is working, only croods have problem. 2022-09-21 (4).png Could you give me some tips on...
by ddt442
16 Jul 2022, 09:23
Forum: Ask for Help (v1)
Topic: FastFindAHK simple pixel script.
Replies: 10
Views: 1309

Re: FastFindAHK simple pixel script.

I also don’t know why you set CoordMode, Pixel, Window . That’s the default anyway, and it doesn’t seem to make sense here since you apparently are taking a snapshot of the whole screen. Since it is going to return the position within that snapshot, I doubt that the CoordMode for Pixel matters. Wha...
by ddt442
16 Jul 2022, 07:05
Forum: Ask for Help (v1)
Topic: FastFindAHK simple pixel script.
Replies: 10
Views: 1309

Re: FastFindAHK simple pixel script.

There are at least a couple things wrong with this script. You created a function, but you didn’t call the function. Either call it, or don’t wrap your code in a function. Don’t put % around the A_Index variables in your parameters. You don’t do that in expressions, which function parameters always...
by ddt442
16 Jul 2022, 06:41
Forum: Ask for Help (v1)
Topic: FastFindAHK simple pixel script.
Replies: 10
Views: 1309

FastFindAHK simple pixel script.

I'm trying to use FastFindAHK to do a simple pixel search. https://github.com/mysticdrew/FastFindAHK Something like this. Test(){ a := FF.FFSnapShot(0,0,1920,1080) Loop, 10 { FF.FFNearestPixel(%A_Index%,%A_Index%,0x310200,false) MouseMove, FF[0], FF[1] } return } I want it to take a snapshot and fin...
by ddt442
16 Jul 2022, 05:54
Forum: Scripts and Functions (v1)
Topic: FastFind for AHK
Replies: 6
Views: 2311

Re: FastFind for AHK

So, with windows 10 and WDM pixel detection is kind of slow. Years ago FastFind was created for AutoIt. https://github.com/FastFrench/FastFind I have converted it to AHK for your usage. https://github.com/mysticdrew/FastFindAHK Here are the results of the benchmark script provided on my GH. image.p...
by ddt442
18 May 2022, 20:46
Forum: Scripts and Functions (v1)
Topic: Fastest Pixel Search - 1.6x faster than built in PixelSearch
Replies: 35
Views: 10755

Re: Fastest Pixel Search - 1.6x faster than built in PixelSearch

add search specific area function like built-in pixel search? Not at the moment. I think it should be straightforward to modify the function to do this. My main purpose was to optimize the pixel search assembly, and I've accomplished that. Anyone is free to make their own modifications! Edit: Oh I ...
by ddt442
17 May 2022, 20:08
Forum: Scripts and Functions (v1)
Topic: Fastest Pixel Search - 1.6x faster than built in PixelSearch
Replies: 35
Views: 10755

Re: Fastest Pixel Search - 1.6x faster than built in PixelSearch

I can add it - Variations are just RGB offsets, right? I was always concerned about proper color spaces, it seems like most people don't care and it would slow down the code. Nice...thank you! And if that is not too much to ask, is it possible you could add search specific area function like built-...
by ddt442
25 Sep 2020, 05:20
Forum: Ask for Help (v1)
Topic: Gdip_BitmapFromScreen crop cursor area. Topic is solved
Replies: 2
Views: 334

Re: Gdip_BitmapFromScreen crop cursor area. Topic is solved

You are cropping an area from the screen and the PixelSearch returns where its found in that image. Now you need to add the offset back to have it be the correct screen position. Use: MouseMove, _X+X3, _Y+Y3, 0 Example: #Include Gdip_All.ahk #Include Gdip_PixelSearch.ahk CoordMode, Mouse, Screen ; ...
by ddt442
25 Sep 2020, 00:16
Forum: Ask for Help (v1)
Topic: Gdip_BitmapFromScreen crop cursor area. Topic is solved
Replies: 2
Views: 334

Gdip_BitmapFromScreen crop cursor area. Topic is solved

I'm trying to use Gdip_BitmapFromScreen crop an 400*400 pixel area where cursor locate then Gdip_PixelSearch it. It works when I just corp full screen but just won't work when I try to crop cursor area. Any tips would be helpful, thank you. This is my code. #Include Gdip_All.ahk #Include Gdip_PixelS...

Go to advanced search