How to show a GUI over the taskbar on Windows 10?

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
katip
Posts: 1
Joined: 24 Jan 2022, 01:03

How to show a GUI over the taskbar on Windows 10?

Post by katip » 24 Jan 2022, 01:13

Hello!

I’m trying to make a GUI show up on the position of the mouse pointer when a certain hotkey is pressed, like this:

Code: Select all

displayx := 0
displayy := 0
[…]
MouseGetPos, displayx, displayy
Gui, Show, x%displayx% y%displayy% NoActivate
The problem is, when the pointer is anywhere over the taskbar, on Windows 10, the GUI appears on the very opposite side of the screen. If the taskbar is on the bottom as it’s default, the GUI will pop up all the way on the top of the screen, if it’s on the left then it’ll pop up all the way to the right etc.

I’ve found this old thread that talks about the same issue but with tooltips and the OP claims they solved it by “WinMoving it on a timer”, but I cannot get that to work. Someone else on that thread said that this only happens on Windows 10, presumably because of Microsoft’s bizarre decision of turning the taskbar into a Metro app. Is there a fix for this or will I have to learn Java? :^)

Rohwedder
Posts: 7687
Joined: 04 Jun 2014, 08:33
Location: Germany

Re: How to show a GUI over the taskbar on Windows 10?

Post by Rohwedder » 24 Jan 2022, 01:50

Hallo,
for me works this date display which covers start button:

Code: Select all

FormatTime, TodayGui,, ddd dd.MM
GHigh := A_ScreenHeight - 35
Gui, 6:New, +AlwaysOnTop -Caption -SysMenu +ToolWindow +Hwnd6Gui
Gui, 6:Font, s11
Gui, 6:Add, Text, vTodayGui xp yp+2, %TodayGui%
Gui, 6:Show, NoActivate x-12 y%GHigh% w72 h35
WinSet, ExStyle, +0x20, ahk_id %6Gui%

Post Reply

Return to “Ask for Help (v1)”