Search found 568 matches

by jballi
15 Sep 2019, 19:57
Forum: Scripts and Functions
Topic: [function collection] AHK-Rare with comfortable Gui for searching
Replies: 16
Views: 2383

Re: [function collection] AHK-Rare with comfortable Gui for searching

Hey Frosti , I just found this. Interesting stuff. I haven't gone through all of it but I noticed that LVM_GetItemText function that I posted a while back is out of date. It will probably still work but there are several design choices that are Microsoft friendly (zero-based indexes) but are not ver...
by jballi
11 Sep 2019, 18:08
Forum: Offtopic
Topic: « What's on your mind? »
Replies: 4216
Views: 707897

Re: « What's on your mind? »

Apple introduces the new iPhone.

Just in case you missed the announcement from last time they introduced a new iPhone.
https://www.youtube.com/watch?v=Ydje1ivynIM
by jballi
06 Sep 2019, 13:10
Forum: Offtopic
Topic: Expert Challenge: Get width and height from an image file reading as few bytes as possible.
Replies: 36
Views: 2267

Re: Expert Challenge: Get width and height from an image file reading as few bytes as possible.

GIF Image Size jeeswg 's script to test the IMG_GetImageSize function showed some interesting variances for some image types. I wanted to cover the image size variances found in GIF files. Much of the appeal of the GIF format is the file size. The small(ish) file size is accomplished by using progr...
by jballi
05 Sep 2019, 20:10
Forum: Offtopic
Topic: Expert Challenge: Get width and height from an image file reading as few bytes as possible.
Replies: 36
Views: 2267

Re: Expert Challenge: Get width and height from an image file reading as few bytes as possible.

tmplinshi wrote:
05 Sep 2019, 17:40
I actually tested the my uploaded file from imgur, same results.
I downloaded the files again with the same it-works-correctly-for-me results. Weird stuff. Let me just put it out there. Is anyone getting the same results as tmplinshi? Thanks.
by jballi
05 Sep 2019, 15:28
Forum: Offtopic
Topic: Expert Challenge: Get width and height from an image file reading as few bytes as possible.
Replies: 36
Views: 2267

Re: Expert Challenge: Get width and height from an image file reading as few bytes as possible.

https developers.google.com /speed/webp/gallery1 Broken Link for safety https developers.google.com /speed/webp/gallery2 Broken Link for safety Thanks SomeGuest . This is the site that I download the few images that I have to to test the WebP format. If you (or anyone) find any others, please let m...
by jballi
05 Sep 2019, 15:20
Forum: Offtopic
Topic: Expert Challenge: Get width and height from an image file reading as few bytes as possible.
Replies: 36
Views: 2267

Re: Expert Challenge: Get width and height from an image file reading as few bytes as possible.

Testing for GetImageSize Test - Release 6.ahk PNG files are not working, all returned 0x0 size. Sample.png The size of Sample.jpg is 1001x1334, but the script get 1334x1001. Tested on Windows 10 64-bit, AHK v1.1.30.03 U32/U64. I tested both of these file on my computer (Windows 7) and the function ...
by jballi
05 Sep 2019, 04:27
Forum: Offtopic
Topic: Expert Challenge: Get width and height from an image file reading as few bytes as possible.
Replies: 36
Views: 2267

Re: Expert Challenge: Get width and height from an image file reading as few bytes as possible.

vListExt := " ;continuation section ( ani bmp cur emf gif ico jpg (jpeg, jpe, jif, jfif, jfi) pcx png svg tif wdp (hdp, jxr) webp wmf )" This pretty much covers all the extensions that I've tested with the following exceptions. hdp, jxr - I've never found any files with this extension on my compute...
by jballi
02 Sep 2019, 14:34
Forum: Offtopic
Topic: Expert Challenge: Get width and height from an image file reading as few bytes as possible.
Replies: 36
Views: 2267

Re: Expert Challenge: Get width and height from an image file reading as few bytes as possible.

OK, one more time. Added support for icons (ICO) and standard cursors (CUR). See the function documentation for the methodology. It won't make everybody happy and it's not as fast as the other image formats but the results appear to be consistent. It also appears to be the same size returned by the ...
by jballi
23 Aug 2019, 03:51
Forum: Ask For Help
Topic: animated gifs: binary data
Replies: 1
Views: 204

Re: animated gifs: binary data

- I was interested in the structure of binary data for animated gifs. - E.g. to get 'is animated' and 'frame count' info. - E.g. to create animated gifs via AutoHotkey, from bmp/png files. - So I'm posting here in case anybody has any good links re. gif files. (I did look in the past.) tmplinshi cr...
by jballi
23 Aug 2019, 03:09
Forum: Offtopic
Topic: Expert Challenge: Get width and height from an image file reading as few bytes as possible.
Replies: 36
Views: 2267

Re: Expert Challenge: Get width and height from an image file reading as few bytes as possible.

OK. Added support for Animated Cursor (ANI), JPEG extended range (JPEG XR), and PiCture eXchange (PCX). I have very few test files for JPEG XR (.hdp, .jxr, and .wdp file extensions) so testing of this format would be appreciated. As before, I've attached a near-ready-to-run script that includes the ...
by jballi
21 Aug 2019, 20:31
Forum: Ask For Help
Topic: System macro not working on AutoHotkey v1.1+ x64 Topic is solved
Replies: 13
Views: 772

Re: System macro not working on AutoHotkey v1.1+ x64 Topic is solved

These are excellent examples of how to work-around the lack of support for UInt64. Thanks! My pet peeve is that this is just one of many dozens of AutoHotkey limitations. Every time I look at my code (or anybody's AutoHotkey scripts) and I see some fancy bit manipulation or an odd way of coding thin...
by jballi
21 Aug 2019, 07:41
Forum: Ask For Help
Topic: System macro not working on AutoHotkey v1.1+ x64 Topic is solved
Replies: 13
Views: 772

Re: System macro not working on AutoHotkey v1.1+ x64 Topic is solved

... Anyhow, a magic number is needed at one point: -72057594037927936, the Int64 dec equivalent of UInt64 hex 0xFF00000000000000. ... Why? OK, I'll take a shot at it. AutHotkey supports signed 64-bit numbers (Int64). It does not support unsigned 64-bit numbers (UInt64). If a number is too large to ...
by jballi
20 Aug 2019, 23:06
Forum: Ask For Help
Topic: System macro not working on AutoHotkey v1.1+ x64 Topic is solved
Replies: 13
Views: 772

Re: System macro not working on AutoHotkey v1.1+ x64 Topic is solved

jeeswg wrote:
20 Aug 2019, 21:55
Anyhow, a magic number is needed at one point: -72057594037927936, the Int64 dec equivalent of UInt64 hex 0xFF00000000000000.
Ahh. There's always a magic number. ;)

Thanks for the feedback and the alternate solutions. I appreciate it.
by jballi
20 Aug 2019, 20:38
Forum: Ask For Help
Topic: System macro not working on AutoHotkey v1.1+ x64 Topic is solved
Replies: 13
Views: 772

Re: System macro not working on AutoHotkey v1.1+ x64 Topic is solved

@jeeswg, Lots of good info. Thanks! In this case, I was looking for system function to swap the bytes of a UInt64. I wrote my own function based on the RtlUlonglongByteSwap macro but it keeps clipping the high bit. [ Stuff about AutoHotkey limitations ] The _byteswap_uint64 system function appears t...
by jballi
20 Aug 2019, 01:25
Forum: Offtopic
Topic: Expert Challenge: Get width and height from an image file reading as few bytes as possible.
Replies: 36
Views: 2267

Re: Expert Challenge: Get width and height from an image file reading as few bytes as possible.

Icons and Cursors and Animated Cursors, Oh My! Just to keep you up to date, I've been working on adding icons and cursors but I knew from the get-go that there would be issues because these file types can hold multiple images with multiple sizes. How can a "GetImageSize" function return a single im...
by jballi
18 Aug 2019, 17:49
Forum: Ask For Help
Topic: System macro not working on AutoHotkey v1.1+ x64 Topic is solved
Replies: 13
Views: 772

Re: System macro not working on AutoHotkey v1.1+ x64 Topic is solved

I'm testing it now. It looks like the right solution. Thanks for the help. :)
by jballi
18 Aug 2019, 17:07
Forum: Ask For Help
Topic: System macro not working on AutoHotkey v1.1+ x64 Topic is solved
Replies: 13
Views: 772

System macro not working on AutoHotkey v1.1+ x64 Topic is solved

This system macro works (for the most part) on AutoHotkey Basic, AutoHotkey v1.1+ ANSI and Unicode but does work on AutoHotkey v1.1+ x64. Here is an example. #NoEnv SetFormat Integer,Hex x:=0x00007FFF6B133B1B x:=DllCall("ntdll\RtlUlonglongByteSwap","UInt64",x,"CDecl UInt64") outputdebug ErrorLevel: ...
by jballi
16 Aug 2019, 14:39
Forum: Offtopic
Topic: Expert Challenge: Get width and height from an image file reading as few bytes as possible.
Replies: 36
Views: 2267

Re: Expert Challenge: Get width and height from an image file reading as few bytes as possible.

OK. The bugs in the TIFF format have been fixed. The changes primarily fix bugs in the code for the big endian TIFF format but the integrity for both TIFF formats has been improved/fixed. Thanks to SomeGuest for providing a link to a bunch of TIFF files. Not only did these files help to identify the...
by jballi
16 Aug 2019, 11:02
Forum: Offtopic
Topic: Expert Challenge: Get width and height from an image file reading as few bytes as possible.
Replies: 36
Views: 2267

Re: Expert Challenge: Get width and height from an image file reading as few bytes as possible.

Thanks for the TIFF files SomeGuest. :thumbup: They are very useful. I will publish an update that will include corrections for TIFF files shortly.

Go to advanced search