Search found 295 matches

by cyruz
10 Oct 2019, 06:07
Forum: Ask For Help
Topic: Recreate Windows 10 alt-tab look & feel Topic is solved
Replies: 13
Views: 843

Re: Recreate Windows 10 alt-tab look & feel Topic is solved

Just one more info for the records. I didn't experiment yet with layered windows but I had the chance to try the undocumented API SetWindowCompositionAttribute. Although some parts of this API are not clear, there is a way to replicate the transparency effect with a look very similar to the Windows ...
by cyruz
07 Oct 2019, 21:38
Forum: Ask For Help
Topic: Recreate Windows 10 alt-tab look & feel Topic is solved
Replies: 13
Views: 843

Re: Recreate Windows 10 alt-tab look & feel Topic is solved

GDIP? Thanks for the code :) If you set the overall transparency of the window, it will of course affect everything on the window. To have two levels of transparency with SetLayeredWindowAttributes, you just need two windows. I imagine that is why the taskbar has both TaskListThumbnailWnd and TaskL...
by cyruz
02 Oct 2019, 20:57
Forum: Ask For Help
Topic: Recreate Windows 10 alt-tab look & feel Topic is solved
Replies: 13
Views: 843

Re: Recreate Windows 10 alt-tab look & feel Topic is solved

Thanks to your help I'am at a good point now. I performed an update I deferred for some time and now it's ok. @lexikos If I set transparency on the GUI, I get also transparent thumbnails. Thumbnail opacity property doesn't seem to be related to this, so it's no use. I tried with WinSet and with a co...
by cyruz
30 Sep 2019, 06:26
Forum: Ask For Help
Topic: Recreate Windows 10 alt-tab look & feel Topic is solved
Replies: 13
Views: 843

Re: Recreate Windows 10 alt-tab look & feel Topic is solved

... I setup a virtual machine and it works. I guess there is something wrong with my Windows setup. Regarding that "caching" issue, it's in my code. Previous version was using LocalAlloc and worked flawlessly. I replaced it for Object.SetCapacity and I did a mistake somewhere, I'm trying to locate ...
by cyruz
30 Sep 2019, 05:31
Forum: Ask For Help
Topic: Recreate Windows 10 alt-tab look & feel Topic is solved
Replies: 13
Views: 843

Re: Recreate Windows 10 alt-tab look & feel Topic is solved

; Value ........: Array with 4 elements [ coord_x, coord_y, width, height ]. Note that the API uses RECT which is on the form {x1,y1,x2,y2} , you will not notice until x1,y1 != 0,0 . I guess that is an issue. Cheers. Ciao Helgef, actually that's just some wrong wording due to the fact that this API...
by cyruz
30 Sep 2019, 05:17
Forum: Ask For Help
Topic: Recreate Windows 10 alt-tab look & feel Topic is solved
Replies: 13
Views: 843

Re: Recreate Windows 10 alt-tab look & feel Topic is solved

... I setup a virtual machine and it works. I guess there is something wrong with my Windows setup. Regarding that "caching" issue, it's in my code. Previous version was using LocalAlloc and worked flawlessly. I replaced it for Object.SetCapacity and I did a mistake somewhere, I'm trying to locate ...
by cyruz
29 Sep 2019, 23:09
Forum: Ask For Help
Topic: Recreate Windows 10 alt-tab look & feel Topic is solved
Replies: 13
Views: 843

Re: Recreate Windows 10 alt-tab look & feel Topic is solved

Are you creating the thumbnails with DwmRegisterThumbnail and using DwmUpdateThumbnailProperties to position them? You should be able to register multiple thumbnails for a single "destination" window. Hi lexikos, yes I'm using this library I wrote: https://www.autohotkey.com/boards/viewtopic.php?f=...
by cyruz
29 Sep 2019, 06:24
Forum: Ask For Help
Topic: Recreate Windows 10 alt-tab look & feel Topic is solved
Replies: 13
Views: 843

Recreate Windows 10 alt-tab look & feel Topic is solved

Hello friends, I'm struggling to recreate the look and feel of Windows 10 alt-tab (that is the same of the Windows Peek, when you hover taskbar buttons): https://i.imgur.com/x8lBz0f.png What I've got it's a class implementing the thumbnails that works ok. The main issue is that each thumbnail should...
by cyruz
16 Sep 2019, 21:33
Forum: Bug Reports
Topic: WinGetPos - broken when composition is enabled
Replies: 3
Views: 499

Re: WinGetPos - broken when composition is enabled

guest3456 Yeah actually I don't know if it's correct to define it a bug, as it's just an implementation of a Windows API, but I still find it strange that we have to recur to third parties solutions for this. That "invisible borders" should be present from Vista onward due to the composition manage...
by cyruz
15 Sep 2019, 20:12
Forum: Bug Reports
Topic: WinGetPos - broken when composition is enabled
Replies: 3
Views: 499

WinGetPos - broken when composition is enabled

Hi lexikos, I just step on this issue every now and then, so I decided to report a bug. The position values of WinGetPos are not correct when composition is enabled. With composition enabled DwmGetWindowAttribute with DWMWA_EXTENDED_FRAME_BOUNDS should be used instead of GetWindowRect to get the rig...
by cyruz
13 Sep 2019, 22:26
Forum: Scripts and Functions
Topic: hWnd_to_hBmp() : Capture full screen, Window, Control or user defined area of these
Replies: 13
Views: 1697

Re: hWnd_to_hBmp() : Capture full screen, Window, Control or user defined area of these

BTW, it is possible to disable Window composition per window in Win 7 / Wn 10. But capture works only in Win 7 ( exact PrintWindow() output. ) Win 10 produces a black/blank image. DllCall("dwmapi\DwmSetWindowAttribute","Ptr",hwnd, "UInt",2, "PtrP",1, "UInt",4) ; Disable Sleep 500 ; Allow time for w...
by cyruz
13 Sep 2019, 20:47
Forum: Scripts and Functions
Topic: hWnd_to_hBmp() : Capture full screen, Window, Control or user defined area of these
Replies: 13
Views: 1697

Re: hWnd_to_hBmp() : Capture full screen, Window, Control or user defined area of these

SKAN wrote:
13 Sep 2019, 15:27
I just tested in Win10.
Everything seems to work fine except trying to capture a WS_POPUP with caption bar.
This is strange, which Windows 10 version are you using? I'm on 1803 and that's the result :(
by cyruz
13 Sep 2019, 07:01
Forum: Scripts and Functions
Topic: hWnd_to_hBmp() : Capture full screen, Window, Control or user defined area of these
Replies: 13
Views: 1697

Re: hWnd_to_hBmp() : Capture full screen, Window, Control or user defined area of these

... I'm trying on Windows 10 and actually almost no part of the window get screenshotted correctly, moreover there are some issues regarding window size: https://i.imgur.com/JgzIJQH.png On Windows 10 composition cannot be disabled so it should be taken into account when creating the screenshot. I'm...
by cyruz
10 Sep 2019, 03:58
Forum: Scripts and Functions
Topic: hWnd_to_hBmp() : Capture full screen, Window, Control or user defined area of these
Replies: 13
Views: 1697

Re: hWnd_to_hBmp() : Capture full screen, Window, Control or user defined area of these

Hello SKAN, missed your code format style a lot :D :D Regarding this function, I experimented with this stuff and looks like the only clean way to have a screenshot of a window it's the PrintWindow function. Using the screen DC it's a solution but you must put the windows in foreground before taking...
by cyruz
19 Aug 2019, 19:33
Forum: Ask For Help
Topic: What's wrong with this GDIP code to screenshot a Window?
Replies: 8
Views: 510

Re: What's wrong with this GDIP code to screenshot a Window?

About the code, looks like using a DC from the window it is not possible to capture the "themed" parts of a window. The screen DC must be used and the windows coordinates must be relative to the screen. An alternative solution is the PrintWindow Win32 API but it's blocking and if you need to further...
by cyruz
18 Aug 2019, 08:23
Forum: Ask For Help
Topic: What's wrong with this GDIP code to screenshot a Window?
Replies: 8
Views: 510

Re: What's wrong with this GDIP code to screenshot a Window?

When you write dllcall("function") ahk replaces it with dllcall(578662355) where the numbers are the proc address of function, if function resides in a dll which is ordinarily loaded before the script starts . The following dlls are documented to be loaded before the script starts, User32.dll, Kern...
by cyruz
18 Aug 2019, 06:25
Forum: Ask For Help
Topic: What's wrong with this GDIP code to screenshot a Window?
Replies: 8
Views: 510

Re: What's wrong with this GDIP code to screenshot a Window?

I didn't investigate your code, but note that, : If DllCall's first parameter is a literal string such as "MulDiv" and the DLL containing the function is ordinarily loaded before the script starts, the string is automatically resolved to a function address. This built-in optimization is more effect...
by cyruz
18 Aug 2019, 06:01
Forum: Ask For Help
Topic: What's wrong with this GDIP code to screenshot a Window?
Replies: 8
Views: 510

What's wrong with this GDIP code to screenshot a Window?

Hi guys, I wrote this code (trying to squeeze as much speed as possible, due to the need to run it in a loop), but I have this issue: when I try to screenshot a window client only area, I receive a black bar on top, when I try to screenshot a NON-client area, the border is all transparent. #SingleIn...
by cyruz
17 Aug 2019, 09:07
Forum: Scripts and Functions
Topic: [FUNCTION] WaitForServer - Wait for a server to be up and running
Replies: 3
Views: 525

Re: [FUNCTION] WaitForServer - Wait for a server to be up and running

Hi. Note that sizeof_WSAData := a_ptrsize == 8 ? 408 : 400 and that dSocket := DllCall("Ws2_32.dll\socket", Int,2, Int,1, Int,6, Int ) should be dSocket := DllCall("Ws2_32.dll\socket", Int,2, Int,1, Int,6, "uptr" ) and hence all UInt ,dSocket should be "uptr" , dSocket . Further, are you certain Ws...
by cyruz
06 Aug 2019, 07:35
Forum: Scripts and Functions
Topic: [FUNCTION] WaitForServer - Wait for a server to be up and running
Replies: 3
Views: 525

[FUNCTION] WaitForServer - Wait for a server to be up and running

Hello guys, I created this function to avoid importing a full socket implementation when we just need to check for a server to be up and running. It uses the WSAConnectByName function, that doesn't need any SOCKADDR structure and whatever else... ; ---------------------------------------------------...

Go to advanced search