Search found 343 matches

by doubledave22
11 Jun 2023, 16:15
Forum: Ask for Help (v1)
Topic: Need help understanding Gdip_ImageSearch error. Topic is solved
Replies: 12
Views: 871

Re: Need help understanding Gdip_ImageSearch error. Topic is solved

Also, OCR may be an option for you. You can use your bitmap from Gdip_BitmapFromScreen() and then crop and OCR the bitmap I found Vis2 for doing the OCR and it's working great! I'm combining it with the Gdip tricks you've taught me, saving the tiny portions of the screen that have the numbers to a ...
by doubledave22
11 Jun 2023, 13:05
Forum: Ask for Help (v1)
Topic: Need help understanding Gdip_ImageSearch error. Topic is solved
Replies: 12
Views: 871

Re: Need help understanding Gdip_ImageSearch error. Topic is solved

Try this: replace yourWindowHwnd with your target window hwnd. haystack := Gdip_BitmapFromScreen( "hwnd:" yourWindowHwnd) ^^ this will help get the bitmap of just your target window (and will work in the background too). It does seem you were able to capture your haystack bitmap though just using a ...
by doubledave22
10 Jun 2023, 20:20
Forum: Ask for Help (v1)
Topic: Need help understanding Gdip_ImageSearch error. Topic is solved
Replies: 12
Views: 871

Re: Need help understanding Gdip_ImageSearch error. Topic is solved

oh and descriptions for each function are just inside the gdip_all library above each function.
by doubledave22
10 Jun 2023, 20:17
Forum: Ask for Help (v1)
Topic: Need help understanding Gdip_ImageSearch error. Topic is solved
Replies: 12
Views: 871

Re: Need help understanding Gdip_ImageSearch error. Topic is solved

It's looking a lot better! A few things that helped me when I first learned how to use this function: 1) Save your bitmaps (needle and haystack) to file somewhere to make sure they're captured correctly. - For this you can use Gdip_SaveBitmapToFile() before the bitmaps are destroyed and then you can...
by doubledave22
09 Jun 2023, 14:39
Forum: Ask for Help (v1)
Topic: Need help understanding Gdip_ImageSearch error. Topic is solved
Replies: 12
Views: 871

Re: Need help understanding Gdip_ImageSearch error. Topic is solved

what you need for the first two arguments are bitmaps. you will need to look into Gdip_CreateBitmapFromFile() for the needle and probably Gdip_BitmapFromHWND() or Gdip_BitmapFromScreen() with the hwnd parameter to capture the haystack. look for these functions in the gdip library and read their desc...
by doubledave22
09 Jun 2023, 13:26
Forum: Ask for Help (v1)
Topic: Need help understanding Gdip_ImageSearch error. Topic is solved
Replies: 12
Views: 871

Re: Need help understanding Gdip_ImageSearch error. Topic is solved

Hm, as far as I can see your second argument is incorrect. You need to pass a pBitmapHaystack and a pBitmapNeedle. You're passing a targetWindowHwnd for the second argument. You may want to post your Gdip_ImageSearch() in case it's different but based on your error I think it's probably just needing...
by doubledave22
14 Mar 2023, 10:55
Forum: Ask for Help (v1)
Topic: Websocket help
Replies: 5
Views: 738

Re: Websocket help

Hi! :) Check out this thread , there's an extra block of JS code for script.text which might help in the rare case of a weird error. This WIP looks like a good alternative. :) Hey! Yeah i did find this thread. It seems that websockets actually won't give any useful info when onerror() is called for...
by doubledave22
10 Mar 2023, 10:25
Forum: Ask for Help (v1)
Topic: Websocket help
Replies: 5
Views: 738

Websocket help

I'm using the library here: https://www.autohotkey.com/boards/viewtopic.php?t=35117 This seems to create a javascript websocket using a hidden ActiveX control. It works quite well, however I have a few users who simply have OnError() fire right away. This OnError() method has an Event object but I c...
by doubledave22
09 Mar 2023, 11:54
Forum: Scripts and Functions (v1)
Topic: WebSocket.ahk
Replies: 12
Views: 14882

Re: WebSocket.ahk

Hi, I'm using this in one of my projects but have one or two users who just get the websocket error when running the script (works great for everyone else otherwise). How do I capture error logs if OnError(Event) fires? I've tried looking into the event object (is it an object?) when this fires, and...
by doubledave22
07 Dec 2022, 16:43
Forum: Scripts and Functions (v1)
Topic: Resizable Tab Menu / POS Overlay
Replies: 28
Views: 5388

Re: Resizable Tab Menu / POS Overlay

@doubledave22 that looks great, I wonder what is was that I found buggy about it? You wouldn't happen to have a more elaborate example do you? I noticed that your example has a few methods missing. Which methods am I missing? just wondering... it's definitely not complete. Ultimately I ended up goi...
by doubledave22
13 Nov 2022, 16:54
Forum: Scripts and Functions (v1)
Topic: Resizable Tab Menu / POS Overlay
Replies: 28
Views: 5388

Re: Resizable Tab Menu / POS Overlay

I vaguely recall trying to use the built in +Resize option to do the resizing but it was too buggy to use, so that means you won't be able to monitor something like WM_EXITSIZEMOVE. Also, unless you really have a lot that needs to be drawn, there's no reason to not draw the window as you are resizi...
by doubledave22
11 Nov 2022, 10:37
Forum: Scripts and Functions (v1)
Topic: Resizable Tab Menu / POS Overlay
Replies: 28
Views: 5388

Re: Resizable Tab Menu / POS Overlay

With all that said, this pretty much just gets you to the same starting place as a default gui, from which other resizing problems need to be addressed as with any other gui. If you have a specific task in mind, you can fill me in on the details and I'll see if I can offer anything. Amazing stuff, ...
by doubledave22
09 Nov 2022, 15:14
Forum: Scripts and Functions (v1)
Topic: Resizable Tab Menu / POS Overlay
Replies: 28
Views: 5388

Re: Resizable Tab Menu / POS Overlay

Hellbent looks awesome! Curious about how the resizing works. I wanted to experiment at some point with having a resizable layered window but didn't know the best way to handle re-painting. Looks like you are just tracking mouse position with a while loop. Could we also listen to something like WM_...
by doubledave22
20 May 2022, 12:36
Forum: Ask for Help (v1)
Topic: What is a layered window?
Replies: 4
Views: 1193

Re: What is a layered window?

I have grown to love layered windows The positives: 1) I use them to display very high quality icons/images/text/custom drawings with background transparency that have no artifacts (as opposed to using winset, transcolor or a GUI). Imagine perfectly displayed circles, or rectangles with rounded edge...
by doubledave22
17 May 2022, 15:17
Forum: Ask for Help (v1)
Topic: gdip_imagesearch
Replies: 2
Views: 305

Re: gdip_imagesearch

I did a writeup of my process here: https://www.autohotkey.com/boards/viewtopic.php?f=76&t=101377 make sure to read through the whole thread after my post. Various techniques for getting bitmap pixel data have to be tried on specific window types. For example OP wasn't able to get it to work until h...
by doubledave22
10 May 2022, 18:17
Forum: Ask for Help (v1)
Topic: How to "cut out" part of a bitmap?
Replies: 1
Views: 391

Re: How to "cut out" part of a bitmap?

I guess the same artifact is showing up either way... Can anyone explain why at 125% windows scale and layout there's this "grey" line at the top of the rectangle? It doesn't happen if we start at 0,0 but if we offset by 10px it mysteriously appears If we zoom in on the drawing here's what we see: r...
by doubledave22
10 May 2022, 15:26
Forum: Ask for Help (v1)
Topic: How to "cut out" part of a bitmap?
Replies: 1
Views: 391

How to "cut out" part of a bitmap?

How can I cut out a shape from an existing bitmap or inside my dc after I've drawn some stuff? I want the inner rectangle area to be fully transparent and I just want the edges visible after the "cut out". I have tried Gdip_DrawRectangle with a pen, I've tried drawing multiple lines with Gdip_DrawLi...
by doubledave22
03 May 2022, 15:10
Forum: Scripts and Functions (v1)
Topic: Colored Groupbox
Replies: 0
Views: 730

Colored Groupbox

Requires Gdip_all: https://www.autohotkey.com/boards/viewtopic.php?t=6517 Had a use for a custom colored groupbox and couldn't find anything. Tried to make this a 1:1 replacement for the built in groupbox for GUIs. Examples found in script below: Customize thickness, line color, and text padding. Th...
by doubledave22
25 Apr 2022, 09:26
Forum: Ask for Help (v1)
Topic: How to make a window not always on top of another window? Topic is solved
Replies: 8
Views: 848

Re: How to make a window not always on top of another window? Topic is solved

If you can apply styles to this window can we not just winmove it out of the way?
by doubledave22
22 Apr 2022, 16:39
Forum: Ask for Help (v1)
Topic: Gaussian blur help (gdip)
Replies: 1
Views: 336

Gaussian blur help (gdip)

Anyone ever come up with a good Gaussian Blur function? I am aware Gdip_BlurBitmap() is crap, but cant seem to get iseahound 's gaussianBlur to work on a regular gui. Rather not use a layered window if possible. Code output: output.png Desired output: desired.png #SingleInstance, Force #NoEnv SetBat...

Go to advanced search