How to show gui window on taskbar in windows 11?

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
shendaowu
Posts: 4
Joined: 01 Mar 2023, 06:17

How to show gui window on taskbar in windows 11?

01 Mar 2023, 06:43

This is working in windows 10 but not working in windows 11:

Code: Select all

WinGetPos, taskbar_x, taskbar_y, taskbar_w, taskbar_h, ahk_class Shell_TrayWnd

overlay_height := 36
overlay_width := 36
;overlay_x := taskbar_w - 172
overlay_x := 1200
overlay_y := 2

Gui, Margin, 0, 0
Gui, -Caption +ToolWindow +LastFound
GUI_ID := WinExist()
WinGet, TaskBar_ID, ID, ahk_class Shell_TrayWnd
DllCall("SetParent", "uint", GUI_ID, "uint", Taskbar_ID)

Gui,Show, x%overlay_x% y%overlay_y% h%overlay_height% w%overlay_width% NoActivate, overlaygui_1

ControlGet, phwnd, hwnd,, msctls_progress321
WinSet, ExStyle, -0x20000, ahk_id %phwnd%

[Mod action: Moved topic to v1 section. The main section is for v2.]

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: No registered users and 105 guests