Search found 1222 matches

by kczx3
06 Dec 2020, 14:29
Forum: Ask For Help
Topic: How to view PDF with Windows API? (PDF -> bitmap)
Replies: 18
Views: 1129

Re: How to view PDF with Windows API? (PDF -> bitmap)

Doesn't seem like the memory is being released. Is there a Close/Dispose call we're missing? I see that pdfPage has a Close/Dispose but querying for IClosable and calling Close doesn't seem to help.
by kczx3
05 Dec 2020, 21:16
Forum: Ask For Help
Topic: How to view PDF with Windows API? (PDF -> bitmap)
Replies: 18
Views: 1129

Re: How to view PDF with Windows API? (PDF -> bitmap)

Finally got it... This stuff is not my specialty :) file := A_MyDocuments . "\basement-stuff\mmi-door-interior-price-pages.pdf" GUID := BufferAlloc(16) DllCall("ole32\CLSIDFromString", "wstr", IID_IRandomAccessStream := "{905A0FE1-BC53-11DF-8C49-001E4FC686DA}", "ptr", GUID) DllCall("ShCore\CreateRan...
by kczx3
05 Dec 2020, 20:33
Forum: Ask For Help
Topic: How to view PDF with Windows API? (PDF -> bitmap)
Replies: 18
Views: 1129

Re: How to view PDF with Windows API? (PDF -> bitmap)

Sweet thanks! I was looking here for things - https://github.com/wmliang/wdk-10/blob/master/Include/10.0.10586.0/winrt/windows.data.pdf.idl It seems like I am getting back the pdfDocument but ComObjQuery isn't returning the IAsyncInfo it appears. file := A_MyDocuments . "\basement-stuff\mmi-door-int...
by kczx3
05 Dec 2020, 20:10
Forum: Ask For Help
Topic: How to view PDF with Windows API? (PDF -> bitmap)
Replies: 18
Views: 1129

Re: How to view PDF with Windows API? (PDF -> bitmap)

Interesting. I was on the right track however I was having trouble knowing the proper offsets for each method. It seems like the methods start at 6*A_PtrSize? I’m also using AHKv2 and was try to use ComCall instead of DllCall with NumGets. I’ll take a stab at trying to convert what you’ve posted. Th...
by kczx3
05 Dec 2020, 19:07
Forum: Ask For Help
Topic: How to view PDF with Windows API? (PDF -> bitmap)
Replies: 18
Views: 1129

Re: How to view PDF with Windows API? (PDF -> bitmap)

Curious if anyone ever got this functioning based on the comments by malcev and teadrinker?
by kczx3
04 Dec 2020, 20:54
Forum: Ask For Help
Topic: Enumeration constants?
Replies: 13
Views: 700

Re: Enumeration constants?

You’d probably want to consider making the object static inside the function so as to not recreate it every time you call the function. Maybe not though
by kczx3
30 Nov 2020, 09:16
Forum: Ask For Help
Topic: Listview Checkbox Column Topic is solved
Replies: 7
Views: 249

Re: Listview Checkbox Column Topic is solved

Found it. Check the two code boxes posted by @just me here - https://www.autohotkey.com/boards/viewtopic.php?t=71801
by kczx3
29 Nov 2020, 20:38
Forum: Ask For Help
Topic: Listview Checkbox Column Topic is solved
Replies: 7
Views: 249

Re: Listview Checkbox Column Topic is solved

You can using subitem images with state images I think. I recall @just me maybe posting something using such a technique
by kczx3
26 Nov 2020, 19:40
Forum: Ask For Help
Topic: How to draw a simple filled rectangle, no frills
Replies: 10
Views: 187

Re: How to draw a simple filled rectangle, no frills

br1 := BlackRect(20, 20, 100, 100) Sleep, 1000 br2 := BlackRect(80, 200, 200, 50) Sleep, 2000 DestroyBR(br1) Sleep, 2000 DestroyBR(br2) ExitApp return BlackRect(x, y, w, h) { static n := 0 n++ Gui, br%n%:-Caption +AlwaysOnTop Gui, br%n%:Color, Black Gui, br%n%:Show, x%x% y%y% w%w% h%h% return "br" ...
by kczx3
26 Nov 2020, 14:11
Forum: Scripts and Functions
Topic: WatchFolder() - updated on 2016-11-30
Replies: 87
Views: 49846

Re: WatchFolder() - updated on 2016-11-30

The very first code block in your first post...
by kczx3
26 Nov 2020, 12:52
Forum: Ask For Help
Topic: How to draw a simple filled rectangle, no frills
Replies: 10
Views: 187

Re: How to draw a simple filled rectangle, no frills

You can’t get more simple than a text control with a colored background. Or maybe using a progress control. Then just take away the caption bar
by kczx3
26 Nov 2020, 12:45
Forum: Scripts and Functions
Topic: WatchFolder() - updated on 2016-11-30
Replies: 87
Views: 49846

Re: WatchFolder() - updated on 2016-11-30

Your example is calling startWatching on the same folder twice before calling stopWatching. Seems like if you don’t do that you’d be fine...
by kczx3
25 Nov 2020, 20:44
Forum: Scripts and Functions
Topic: WatchFolder() - updated on 2016-11-30
Replies: 87
Views: 49846

Re: WatchFolder() - updated on 2016-11-30

Why would you need to “watch” the same directory more than once?
by kczx3
25 Nov 2020, 11:57
Forum: Scripts and Functions
Topic: [Fuction] Something interesting, fake enumerated type
Replies: 4
Views: 625

Re: [Fuction] Something interesting, fake enumerated type

Why not return the array? Why use ByRef?
by kczx3
22 Nov 2020, 10:13
Forum: Scripts and Functions
Topic: [Class] SQLiteDB - Update on 2019-12-12
Replies: 234
Views: 70548

Re: [Class] SQLiteDB - Update on 2019-12-12

Now you are saying threads... which is it? Separate processes or threads?
by kczx3
21 Nov 2020, 20:18
Forum: AutoHotkey v2 Help
Topic: #DllLoad proper usage with utility class
Replies: 6
Views: 293

Re: #DllLoad proper usage with utility class

Makes sense. But I think that is sacrificing performance optimizations by calling #DllLoad and calling the functions by name.
by kczx3
21 Nov 2020, 15:17
Forum: AutoHotkey v2 Development
Topic: [Wish] longer continuation sections/lines still
Replies: 9
Views: 2921

Re: [Wish] longer continuation sections/lines still

I guess the way I see it is if you’ve got that much text then you should probably just read it in from a file.
by kczx3
21 Nov 2020, 12:03
Forum: Scripts and Functions
Topic: [Class] SQLiteDB - Update on 2019-12-12
Replies: 234
Views: 70548

Re: [Class] SQLiteDB - Update on 2019-12-12

I don’t think that applies. First, connections to the same database by different AHK processes is not the same as multiple connections across threads. Second, it looks as though SQLite is compiled in a thread safe manner by default.
by kczx3
21 Nov 2020, 10:48
Forum: AutoHotkey v2 Help
Topic: #DllLoad proper usage with utility class
Replies: 6
Views: 293

Re: #DllLoad proper usage with utility class

Its Scintilla. So the Dll only needs to be loaded once per AHK process. But I don't think the #DllLoad should be included in the class that wraps the control. I could probably use the asterisk to avoid issues if the class is included more than once. But then the consumer can't provide the path to th...

Go to advanced search