Can I make radius corner window with -caption? Topic is solved

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
Bertrand
Posts: 11
Joined: 25 Jun 2022, 22:08

Can I make radius corner window with -caption?

Post by Bertrand » 06 Oct 2022, 21:10

Hi. I can not make radius corner window in this code...What's wrong in my code... :crazy:

Code: Select all

Gui, Show,x20 y100 w1100 h800, Test Gui
WinSet, Region, 0-0 w(1100 * ( A_ScreenDPI / 96 )) h(900 * ( A_ScreenDPI / 96 )) R40-40, ahk_id %GUIHwnd%
Gui, +hwndGUIHwnd
Gui -MaximizeBox -MinimizeBox -Caption
Thanks in advance

User avatar
mikeyww
Posts: 26885
Joined: 09 Sep 2014, 18:38

Re: Can I make radius corner window with -caption?  Topic is solved

Post by mikeyww » 06 Oct 2022, 21:24

Hi,

AHK commands use literal strings as parameters. You can force expressions with % if needed; see documentation.

Code: Select all

Gui, -Caption +LastFound
w := 1100 * A_ScreenDPI / 96
h :=  900 * A_ScreenDPI / 96
WinSet, Region, 0-0 w%w% h%h% R40-40
Gui, Show, x20 y100 w1100 h800, Test Gui

Bertrand
Posts: 11
Joined: 25 Jun 2022, 22:08

Re: Can I make radius corner window with -caption?

Post by Bertrand » 06 Oct 2022, 22:42

mikeyww wrote:
06 Oct 2022, 21:24
Hi,

AHK commands use literal strings as parameters. You can force expressions with % if needed; see documentation.

Code: Select all

Gui, -Caption +LastFound
w := 1100 * A_ScreenDPI / 96
h :=  900 * A_ScreenDPI / 96
WinSet, Region, 0-0 w%w% h%h% R40-40
Gui, Show, x20 y100 w1100 h800, Test Gui
Hi,
Thank you so much! :lol:
Cheers

Post Reply

Return to “Ask for Help (v1)”