void wrote: ↑Sun Dec 04, 2022 3:13 am
I couldn't find a good solution here.
The next alpha update will have support for a window style 0x00000800 flag to lock the window text.
With Autohotkey, you'll be able to set this style and then set the window text.
Everything will not update the window title when this style is set.
For now, maybe another option is to change the
icon (WM_SETICON from Autohotkey)?
Everything doesn't change the icon once set.
I am considering per window preprocessor variables.
I am considering window instance names.
Hi void, sorry I had to drop things to take care of kids.
I have installed the latest Version 1.5.0.1332a (x64) which has support for the 0x00000800 window style you mentioned.
I did some tests with Autohotkey to set its title:
Code: Select all
~Browser_Back & space::
WinSetTitle, A, , Some Identifying Title
WinSet, Style, 0x00000800
Return
it does set the title but as soon as I update the search bar in everything, everythings title is reset. This does not seem to be diffrent than what I had reported in this thread earlier.
In line 3 of my code above,
WinSet, Style, 0x00000800
is that the correct way to invoke window style 0x00000800 flag from Autohotkey?
another option is to change the icon (WM_SETICON from Autohotkey)?
Everything doesn't change the icon once set.
This sounds really intresting, I did some tests and was able to change a specific Everythings window icon with:
Code: Select all
WM_SETICON := 0x80
ICON_SMALL := 0
ICON_BIG := 1
IMAGE_ICON := 1
$F1::
hIcon := LoadPicture("Shell32.dll", "Icon5", IMAGE_ICON)
SendMessage, WM_SETICON, ICON_SMALL, hIcon,, A
SendMessage, WM_SETICON, ICON_BIG, hIcon,, A
Return
The code is not mine but it works very reliably.
I dont see how in Autohotkey, I could work with a specific window based on its icon though. I searched around and found nothing on this subject.
I am curious, what did you have in mind with Everything window icon? Do you know of a way to work with it in Autohotkey?
Thanks allot for implementing this feature and for considering per window preprocessor variables and window instance names. I think just those two features would be game changers for me.