@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.
Ziggle() : A handy tool to lookup Win32 Constants
Re: Ziggle() : A handy tool to lookup Win32 Constants
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
Re: Ziggle() : A handy tool to lookup Win32 Constants
@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).
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).
« AHK Portable Installer » | « CallTipsForAll » | « TheArkive AHK v1 Scripts » | « TheArkive AHK v2 Scrpts » | « TheArkive on GitHub »
Re: Ziggle() : A handy tool to lookup Win32 Constants
Since Ziggle() always pastes assignments, the following seems feasible..
Code: Select all
UINT128_MAX := Format("0x{1:16x}{1:16x}",-1)
Ziggle() : v0.30
Ziggle() updated : v0.30
Find updated Ziggle.txt in Ziggle2.zip
Find updated Ziggle.txt in Ziggle2.zip
Ziggle() : v0.31
Ziggle() updated : v0.31
Ctrl+C and Ctrl+V was broken, now fixed.
Ctrl+C and Ctrl+V was broken, now fixed.
Re: Ziggle() : A handy tool to lookup Win32 Constants
Please ahkv1 version? why v2 ![Facepalm :facepalm:](./images/smilies/facepalm.png)
![Facepalm :facepalm:](./images/smilies/facepalm.png)
Re: Ziggle() : A handy tool to lookup Win32 Constants
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.
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.
As a source of constants, I think the win32metadata project should be reliable. It goes far beyond just constants.
![Laughing :lol:](./images/smilies/icon_lol.gif)
I often find that the old script is missing constants, so will make use of Ziggle.
![Thumbup :thumbup:](./images/smilies/icon_thumbup.gif)
As a source of constants, I think the win32metadata project should be reliable. It goes far beyond just constants.
Re: Ziggle() : A handy tool to lookup Win32 Constants
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).
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.![Thinking :think:](./images/smilies/icon_think.gif)
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?
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.
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.
![Thinking :think:](./images/smilies/icon_think.gif)
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?
Re: Ziggle() : A handy tool to lookup Win32 Constants
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 :thumbup:](./images/smilies/icon_thumbup.gif)
Re: Ziggle() : A handy tool to lookup Win32 Constants
Woah. @SKAN glad you are back and doing better.
« AHK Portable Installer » | « CallTipsForAll » | « TheArkive AHK v1 Scripts » | « TheArkive AHK v2 Scrpts » | « TheArkive on GitHub »
Re: Ziggle() : A handy tool to lookup Win32 Constants
![Surprised :o](./images/smilies/icon_e_surprised.gif)
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.
Re: Ziggle() : A handy tool to lookup Win32 Constants
@SKAN Hope you are feeling better! Stay strong.
- Joe Glines
- Posts: 771
- Joined: 30 Sep 2013, 20:49
- Location: Dallas
- Contact:
Re: Ziggle() : A handy tool to lookup Win32 Constants
@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
regards,
Joe Glines
Sign-up for the
HK Newsletter
![Image](https://the-Automator.com/download/img/courses/AHKv1tov2small.gif)
![Image](https://the-Automator.com/download/img/courses/IntroAHKV2small.png)
![Image](https://the-Automator.com/download/img/courses/AHKIntermediate_small.gif)
![Image](https://the-Automator.com/download/img/courses/GUIsAreEasyv2small.gif)
AHK Tutorials:Web Scraping | | Webservice APIs | AHK and Excel | Chrome | RegEx | Functions
Training: AHK Webinars Courses on AutoHotkey
YouTube
Quick Access Popup, the powerful Windows folders, apps and documents launcher!
![🅰️](http://cdn.jsdelivr.net/emojione/assets/3.1/png/64/1f170.png)
![Image](https://the-Automator.com/download/img/courses/AHKv1tov2small.gif)
![Image](https://the-Automator.com/download/img/courses/IntroAHKV2small.png)
![Image](https://the-Automator.com/download/img/courses/AHKIntermediate_small.gif)
![Image](https://the-Automator.com/download/img/courses/GUIsAreEasyv2small.gif)
![Clapping :clap:](./images/smilies/icon_clap.gif)
AHK Tutorials:Web Scraping | | Webservice APIs | AHK and Excel | Chrome | RegEx | Functions
Training: AHK Webinars Courses on AutoHotkey
![Uber Geek :ugeek:](./images/smilies/icon_e_ugeek.gif)
YouTube
![Thumbup :thumbup:](./images/smilies/icon_thumbup.gif)
Re: Ziggle() : A handy tool to lookup Win32 Constants
@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
AHK-ToolKit
Re: Ziggle() : A handy tool to lookup Win32 Constants
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.
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.
« AHK Portable Installer » | « CallTipsForAll » | « TheArkive AHK v1 Scripts » | « TheArkive AHK v2 Scrpts » | « TheArkive on GitHub »
Re: Ziggle() : A handy tool to lookup Win32 Constants
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.
Re: Ziggle() : A handy tool to lookup Win32 Constants
I was thinking it might end up along those lines. Thanks for the input.
« AHK Portable Installer » | « CallTipsForAll » | « TheArkive AHK v1 Scripts » | « TheArkive AHK v2 Scrpts » | « TheArkive on GitHub »
Re: Ziggle() : A handy tool to lookup Win32 Constants
@SKAN I (belatedly) want to say I hope your recovery is going well - stay strong!
Re: Ziggle() : A handy tool to lookup Win32 Constants
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:
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:
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.
madnumdb.com shows 2 IIDs for this value:
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...
« AHK Portable Installer » | « CallTipsForAll » | « TheArkive AHK v1 Scripts » | « TheArkive AHK v2 Scrpts » | « TheArkive on GitHub »
Return to “Scripts and Functions (v2)”
Who is online
Users browsing this forum: No registered users and 55 guests