user3098326
user3098326

Reputation: 229

Make borderless window behaves alwaysontop [Autohotkey]

I want to create a borderless window, but alwaysontop didn't work if the window is borderless, how to make borderless window behave alwaysontop ?

gui, Tool: add, button, x0 y0 h20 w140 gxub, TOOLS
gui, Tool: show, w150, TOOLS
WinGet, id1, ID, A       ; GET ahk_id of active window 
WinSet, Style, -0xC00000, A ; hide title bar
Winset, Alwaysontop, ON, ahk_id %id1%

Upvotes: 0

Views: 1204

Answers (1)

scsnake
scsnake

Reputation: 26

Adding one line on the top will satisfy your need

gui, +alwaysontop

Upvotes: 1

Related Questions