Ziggle() : A handy tool to lookup Win32 Constants

Post your working scripts, libraries and tools.
User avatar
TheArkive
Posts: 1030
Joined: 05 Aug 2016, 08:06
Location: The Construct
Contact:

Re: Ziggle() : A handy tool to lookup Win32 Constants

09 Feb 2022, 08:21

@jNizM, @SKAN

I remember this thread now. The issue I see is converting such a large decimal integer to hex (unless it already is in hex of course).
EDIT: And converting the result to a decimal integer.

Once we figure that out, then computing such large numbers will be easier.

I have a few theories, but it would take me time to test them out.
User avatar
SKAN
Posts: 1551
Joined: 29 Sep 2013, 16:58

Re: Ziggle() : A handy tool to lookup Win32 Constants

09 Feb 2022, 12:58

TheArkive wrote:
09 Feb 2022, 07:54
For my purposes, i just categorize it as an integer, but i leave the contents as a string otherwise Integer(UINT_128MAX) would return "inf".
This is a problem for Ziggle(). It outputs both Hex and Decimal.
It will see u/int128 string as a number and try to convert it into hex/decimal.
Ref : https://autohotkey.com/r/?p=437374
User avatar
TheArkive
Posts: 1030
Joined: 05 Aug 2016, 08:06
Location: The Construct
Contact:

Re: Ziggle() : A handy tool to lookup Win32 Constants

09 Feb 2022, 13:54

@SKAN

So Ziggle() would try to convert the 128-bit number to decimal? Yah that won't work in AHK natively at all. We need a lib for dealing with huge numbers.

On the other hand, if the "usage" of 128-bit numbers is limited to just taking 128-bit output, and feeding it as input to another func, that should be easy (or easier at least).
User avatar
SKAN
Posts: 1551
Joined: 29 Sep 2013, 16:58

Re: Ziggle() : A handy tool to lookup Win32 Constants

09 Feb 2022, 14:07

TheArkive wrote:
09 Feb 2022, 13:54
So Ziggle() would try to convert the 128-bit number to decimal? Yah that won't work in AHK natively at all. We need a lib for dealing with huge numbers.
Since Ziggle() always pastes assignments, the following seems feasible..

Code: Select all

UINT128_MAX := Format("0x{1:16x}{1:16x}",-1)
User avatar
SKAN
Posts: 1551
Joined: 29 Sep 2013, 16:58

Ziggle() : v0.30

17 Feb 2022, 18:46

Ziggle() updated : v0.30

Find updated Ziggle.txt in Ziggle2.zip
User avatar
SKAN
Posts: 1551
Joined: 29 Sep 2013, 16:58

Ziggle() : v0.31

18 Feb 2022, 00:38

Ziggle() updated : v0.31

Ctrl+C and Ctrl+V was broken, now fixed.
pv007
Posts: 93
Joined: 20 Jul 2020, 23:50

Re: Ziggle() : A handy tool to lookup Win32 Constants

23 Mar 2022, 19:51

Please ahkv1 version? why v2 :facepalm:
lexikos
Posts: 9690
Joined: 30 Sep 2013, 04:07
Contact:

Re: Ziggle() : A handy tool to lookup Win32 Constants

18 Apr 2022, 07:26

I still use a very similar script for v1, which seems to be named Win32 Lookup.ahk. I've long ago forgotten who wrote it or when I found it, but the code refers to the autohotkey.net username "goyyah". So yeah, SKAN might remember writing that script. :lol: The version on the old forum is a little broken, but you just need to remove the bbcode tags from the code... and find a copy of Constants.W32.ini. The version I have uses a CSV file.

I often find that the old script is missing constants, so will make use of Ziggle. :thumbup:

As a source of constants, I think the win32metadata project should be reliable. It goes far beyond just constants.
lexikos
Posts: 9690
Joined: 30 Sep 2013, 04:07
Contact:

Re: Ziggle() : A handy tool to lookup Win32 Constants

25 Apr 2022, 03:33

I think it would be helpful if the Copy/Paste buttons automatically used the highlighted item when there are no checked items. I didn't notice the checkboxes at first, so it took me a while to figure out why the buttons weren't doing anything.

Unfortunately, Paste doesn't work for VS Code (but I also use SciTE).
  • There's no control; the window itself is focused.
  • If I pass the HWND, WM_PASTE is presumably sent but has no effect.
Because you use unset and IsSet(P_Ctrl), passing ControlGetFocus("A") with VS Code will invoke an unexpected situation where the function thinks a control was specified, but the control is invalid (P_Ctrl = 0). I suppose that using P_Ctrl:=0 instead of P_Ctrl:=Unset and P_Ctrl instead of IsSet(P_Ctrl) would work better.

If P_Ctrl is omitted, there's still a Paste button but it obviously doesn't paste. Why not use a fallback method, like ^v? I suppose you'd have to guess which window to send it to, or close the GUI first and rely on the correct one activating. I don't think there's a good way to determine whether WM_PASTE worked/will work... well, maybe with delayed rendering. :think:

It doesn't seem to be possible to select multiple items with different search terms and then copy them all. Perhaps items which are checked could be left in the list when the search term is changed?
User avatar
SKAN
Posts: 1551
Joined: 29 Sep 2013, 16:58

Re: Ziggle() : A handy tool to lookup Win32 Constants

30 Apr 2022, 23:45

lexikos wrote:
25 Apr 2022, 03:33
I think it would be helpful if the Copy/Paste buttons automatically used the highlighted item when there are no checked items. I didn't notice the checkboxes at first, so it took me a while to figure out why the buttons weren't doing anything.
Hi @lexikos
Thanks for the feedback.
I've been trying installing VSCode for AHK.
I'll see what can be done.

Rant:
I became ill on 12-March-2022, had a brain stroke and was admitted into hospital for 9 days.
Feeling lucky of not contracting Covid-X. (Me as well as my spouse)
Yesterday, drove my sedan car for 87 Km non-stop which gives me good hope on remembering AHK.

:thumbup:
User avatar
TheArkive
Posts: 1030
Joined: 05 Aug 2016, 08:06
Location: The Construct
Contact:

Re: Ziggle() : A handy tool to lookup Win32 Constants

01 May 2022, 00:09

Woah. @SKAN glad you are back and doing better.
lexikos
Posts: 9690
Joined: 30 Sep 2013, 04:07
Contact:

Re: Ziggle() : A handy tool to lookup Win32 Constants

01 May 2022, 04:29

:o

Well done for pulling through.

As for VS Code, I believe it is based on Electron/Chromium, so not dissimilar to a web browser. Send '^v' and SendText both seem to be reliable.
iseahound
Posts: 1472
Joined: 13 Aug 2016, 21:04
Contact:

Re: Ziggle() : A handy tool to lookup Win32 Constants

01 May 2022, 18:43

@SKAN Hope you are feeling better! Stay strong.
User avatar
Joe Glines
Posts: 771
Joined: 30 Sep 2013, 20:49
Location: Dallas
Contact:

Re: Ziggle() : A handy tool to lookup Win32 Constants

02 May 2022, 15:16

@SKAN Hang in there SKAN! I'm constantly using your work and sharing in videos! You've been a huge help to ton's of people!
regards,
Joe Glines
Sign-up for the 🅰️HK Newsletter

ImageImageImageImage:clap:
AHK Tutorials:Web Scraping | | Webservice APIs | AHK and Excel | Chrome | RegEx | Functions
Training: AHK Webinars Courses on AutoHotkey :ugeek:
YouTube

:thumbup: Quick Access Popup, the powerful Windows folders, apps and documents launcher!
User avatar
RaptorX
Posts: 395
Joined: 06 Dec 2014, 14:27
Contact:

Re: Ziggle() : A handy tool to lookup Win32 Constants

04 May 2022, 21:10

SKAN wrote:
30 Apr 2022, 23:45
Rant:
I became ill on 12-March-2022, had a brain stroke and was admitted into hospital for 9 days.
Feeling lucky of not contracting Covid-X. (Me as well as my spouse)
Yesterday, drove my sedan car for 87 Km non-stop which gives me good hope on remembering AHK.

:thumbup:
@SKAN Dude! I hope you stay strong my guy, I don't think this forum would be the same without your awesome random functions ^^

Every single time I see a function that I really like it usually ends up having the awesome line ; Function v0.0.0 by SKAN on DT.
Projects:
AHK-ToolKit
User avatar
TheArkive
Posts: 1030
Joined: 05 Aug 2016, 08:06
Location: The Construct
Contact:

Re: Ziggle() : A handy tool to lookup Win32 Constants

21 Jul 2022, 07:27

Quick question for dumpbin.exe:

I noticed there are 4 versions of it, but there are only x86 and x64 .lib files in the win32 SDK. Is there any expectation that UUIDs would somehow be different when dumping them with x86\dumpbin.exe vs host_x64\x86\dumpbin.exe?

I will of course be testing this for myself, but I'm just wondering if anyone has already had experience with this.

I'm finally about to pick up where I left off and get back to making an exhaustive constants list.
lexikos
Posts: 9690
Joined: 30 Sep 2013, 04:07
Contact:

Re: Ziggle() : A handy tool to lookup Win32 Constants

21 Jul 2022, 17:18

I assume x86\dumpbin.exe would itself be a 32-bit binary, while host_x64\x86 would contain a toolset for compiling x86 targets on a x64 host system. It likely doesn't matter which one you use if you have x64.
User avatar
TheArkive
Posts: 1030
Joined: 05 Aug 2016, 08:06
Location: The Construct
Contact:

Re: Ziggle() : A handy tool to lookup Win32 Constants

23 Jul 2022, 01:07

I was thinking it might end up along those lines. Thanks for the input.
neogna2
Posts: 600
Joined: 15 Sep 2016, 15:44

Re: Ziggle() : A handy tool to lookup Win32 Constants

04 Aug 2022, 06:04

@SKAN I (belatedly) want to say I hope your recovery is going well - stay strong!
User avatar
TheArkive
Posts: 1030
Joined: 05 Aug 2016, 08:06
Location: The Construct
Contact:

Re: Ziggle() : A handy tool to lookup Win32 Constants

05 Sep 2022, 13:54

Ok I finally managed to setup a system to scrape all the UUIDs from the lib files. There are a few cases of duplicates, and one case is IID_IEventDispatcher.

madnumdb.com shows 2 IIDs for this value:

image.png
image.png (20.89 KiB) Viewed 2375 times

And I have certainly found both in Uuid.lib

I can also see how each lib is divided up into sections referencing some other obj file:

Code: Select all

Archive member name at 32528E: /4674           d:\os\obj\amd64fre\onecore\printscan\publish\idl\objfre\amd64\filterpipelinei_i.obj
5FC78864 time/date Wed Dec  2 13:28:20 2020
         uid
         gid
  100666 mode
    5525 size
correct header end

This seems to be the only way to delineate one dupe UUID from another.

I'm trying to figure out the best way to categorize such data in the proper context so it can be useful for Ziggle.

Any tips?

There are really only a handful of dupes in over 18000 UUIDs scraped from lib files.

Still making good progress...

Return to “Scripts and Functions (v2)”

Who is online

Users browsing this forum: No registered users and 55 guests