Search found 146 matches

by Sam_
23 Mar 2023, 18:04
Forum: Scripts and Functions (v1)
Topic: How to perfectly fit any image on a fixed size picture control
Replies: 33
Views: 11053

Re: How to perfectly fit any image on a fixed size picture control

That was a very interesting and informative series of blog posts. I learned a lot in the ones I have read so far. Thanks for sharing!
by Sam_
22 Mar 2023, 17:40
Forum: Scripts and Functions (v1)
Topic: GDI+ standard library 1.45 by tic
Replies: 438
Views: 245607

Re: GDI+ standard library 1.45 by tic

robodesign I haven't figured out what my issue with using Gdip_ResizeBitmap() with different values for InterpolationMode might be, but I have noticed that pBrush isn't always initialized but is always queried always queried when the pointer to the Graphics is successfully created (which throws a w...
by Sam_
22 Mar 2023, 16:56
Forum: Scripts and Functions (v1)
Topic: How to perfectly fit any image on a fixed size picture control
Replies: 33
Views: 11053

Re: How to perfectly fit any image on a fixed size picture control

gwarble As part of a larger project, I want to allow the end-user to be able to select a specific InterpolationMode/resizing algorithm/resampling filter to be used to resize a set of image frames in an animated graphic. I've already implemented the ones GDI+ supports, but thought this dll had some ...
by Sam_
22 Mar 2023, 14:49
Forum: Scripts and Functions (v1)
Topic: How to perfectly fit any image on a fixed size picture control
Replies: 33
Views: 11053

Re: How to perfectly fit any image on a fixed size picture control

its a limitation of GDI/GDI+ from what I understand, you have to roll your own https://www.codeproject.com/Articles/11143/Image-Resizing-outperform-GDI Thanks for the link. There is a 32bit DLL based on that code Plain C Resampling DLL : https://www.codeproject.com/Articles/22271/Plain-C-Resampling...
by Sam_
21 Mar 2023, 17:44
Forum: Scripts and Functions (v1)
Topic: GDI+ standard library 1.45 by tic
Replies: 438
Views: 245607

Re: GDI+ standard library 1.45 by tic

I'm under the impression you are passing strings. Such as default, low quality and so on... You must pass numbers, values. I'm passing the key from the array to the Gdip_ResizeBitma() function, which is a number, and using the value (human friendly term) in the file name. I have manipulated the arr...
by Sam_
21 Mar 2023, 15:25
Forum: Scripts and Functions (v1)
Topic: GDI+ standard library 1.45 by tic
Replies: 438
Views: 245607

Re: GDI+ standard library 1.45 by tic

I'm trying to test out the different InterpolationModes for resizing an image to be larger than the original. I'm using Gdip_ResizeBitmap() to do the resizing, but no matter what value I give it for InterpolationMode it creates identical results. Here's my code. OriginalFile:=A_ScriptDir "\bscckey00...
by Sam_
19 Mar 2023, 23:04
Forum: Off-topic Discussion
Topic: Report False-Positives To Anti-Virus Companies
Replies: 116
Views: 963172

Re: Report False-Positives To Anti-Virus Companies

I've never seen this before. I'm pretty confident it's a false positive, but any thoughts on exactly what on the page AVG had an issue with?
AVG vs autohotkey.com.png
AVG vs autohotkey.com.png (113.25 KiB) Viewed 49049 times
by Sam_
08 Mar 2023, 15:38
Forum: Forum Issues
Topic: anyone else not a fan of the new V1 section Topic is solved
Replies: 34
Views: 5259

Re: anyone else not a fan of the new V1 section Topic is solved

I strongly prefer ahk7's suggested layout, and have voted accordingly.
by Sam_
09 Jun 2022, 15:10
Forum: SciTE4AutoHotkey
Topic: SciTE4AutoHotkey v3.1.0
Replies: 78
Views: 28727

Re: SciTE4AutoHotkey v3.1.0

fincs I really appreciate the update. It's a shame about the Calltip functionality. Really hope that can be resolved soon. Edited: It also opens the other script if it isn't already open. :think: After re-reading,I guess you mean "open for editing" (and SciTE4AHK starts up at this point; and wasn't...
by Sam_
12 May 2022, 11:43
Forum: Scripts and Functions (v1)
Topic: Ones() and Zeros()
Replies: 2
Views: 694

Re: Ones() and Zeros()

@Sam_, Thank you for sharing this interesting approach. Here is a simple function that I use to initialize arrays: ; Returns a linear array of dimension n initialized with the specified character. ; Char can be an ANSI or Unicode character. The default is 0. InitArray(n, Char := 0) { local String :...
by Sam_
09 May 2022, 14:46
Forum: Scripts and Functions (v1)
Topic: Ones() and Zeros()
Replies: 2
Views: 694

Ones() and Zeros()

The following approach to initializing large simple numeric arrays to 0 or 1 results in noticeably improved performance over manually iterating over the array to initialize its values, even when the .SetCapacity() method is used first. The technique could easily be generalized to initialize array va...
by Sam_
05 May 2022, 11:46
Forum: Off-topic Discussion
Topic: A Speed Competition ;-)
Replies: 6
Views: 2897

Re: A Speed Competition ;-)

For the benefit of everyone, I'd like to see other speedy methods regardless of the rules! :+1: If the goal is to compute a list of all prime numbers <= n (of reasonable sized n), I suspect the fastest solution would be to write an optimized Sieve of Eratosthenes function in C++, convert it to mach...
by Sam_
02 May 2022, 15:11
Forum: SciTE4AutoHotkey
Topic: I spent more than a week updating "ahk.api" "ahk.keywords". Here is the latest version
Replies: 6
Views: 5268

Re: I spent more than a week updating "ahk.api" "ahk.keywords". Here is the latest version

Thanks for these! How are the abbreviations (AhkAbbrevs.properties) supposed to work?
by Sam_
06 Apr 2022, 06:28
Forum: Scripts and Functions (v1)
Topic: Upcoming Ahk2Exe Changes (2024)
Replies: 626
Views: 179440

Re: Upcoming Ahk2Exe Changes (2022)

@sam_ Could you send me a copy of your "tmp.bin" file, please. This will help me to see how this check is failing. Cheers Sorry if I was a bit snappy yesterday. It was a long day... Here you go. I've included the AHK script that builds them. Note that this build process predates the introduction of...
by Sam_
05 Apr 2022, 21:14
Forum: Scripts and Functions (v1)
Topic: Upcoming Ahk2Exe Changes (2024)
Replies: 626
Views: 179440

Re: Upcoming Ahk2Exe Changes (2022)

So I am trying to compile an AHK_L script via batch script. I was using the version of ahk2exe that came the latest release of AHK_L, but was getting this warning: ahk2exe version 1.1.33.10 --------------------------- Ahk2Exe Warning --------------------------- Warning: AutoHotkey could not be locat...
by Sam_
10 Mar 2022, 17:53
Forum: Ask for Help (v1)
Topic: download urls to vars, partially/fully, via WinHttpRequest Topic is solved
Replies: 20
Views: 10039

Re: download urls to vars, partially/fully, via WinHttpRequest Topic is solved

- download htm to variable - download file to variable e.g. image/icon - download htm to variable (partial) - get webpage title ; [...] JEE_UrlDownloadToVar(vUrl, ByRef vData, ByRef vSize) { oHTTP := ComObjCreate("WinHttp.WinHttpRequest.5.1") oHTTP.Open("GET", vUrl) oHTTP.Send() oHTTP.WaitForRespon...
by Sam_
06 Feb 2022, 20:56
Forum: Tutorials (v1)
Topic: How to optimize the speed of a script as much as possible.
Replies: 122
Views: 200387

Re: How to optimize the speed of a script as much as possible.

amateur+ The more layers of obfuscation you add, the more processor operations and thus the slower AHK will be. Embedding "variables" within objects or classes adds layers of obfuscation. Manipulating a simple variable will ALWAYS be slower than performing an equivalent operation within an object o...
by Sam_
11 Jan 2022, 16:46
Forum: Scripts and Functions (v1)
Topic: [Dll] UdeExport.dll (x64) Detect File/String Encoding
Replies: 8
Views: 2103

Re: [Dll] UdeExport.dll (x64) Detect File/String Encoding

I'm excited to try this out. If it's not too much trouble, I could really use a 32-bit version also. I have three questions: 1) If you point it to a file that does not contain valid UTF-8 strings (was created with some local codepage) but which was erroneously given a UTF-8 BOM, what does this tool ...
by Sam_
20 Dec 2021, 17:06
Forum: Off-topic Discussion
Topic: Help with Propagation of Uncertainty (GUM Method)
Replies: 0
Views: 611

Help with Propagation of Uncertainty (GUM Method)

I'm trying to calculate uncertainty (bias and precision) as it propagates through a (non-trivial) data reduction equation. Despite having some literature sources at my disposal, I'm struggling with some of the finer points of the overall procedure. If there is someone around with experience in this ...
by Sam_
12 Aug 2021, 08:47
Forum: Scripts and Functions (v1)
Topic: GridGUI v1.1.11 - Simplify Control Placement and Resizing
Replies: 65
Views: 13585

Re: GridGUI

Capn Odin wrote:
08 Aug 2021, 09:04
  • Doen't support overlapping Controls that is only one Control can be at any given grid cell.
Does this mean GroupBoxes are not supported?

Go to advanced search