v2 error/warning: customize window size and position

Propose new features and changes
neogna2
Posts: 586
Joined: 15 Sep 2016, 15:44

v2 error/warning: customize window size and position

Post by neogna2 » 17 Nov 2022, 11:42

It would be useful to be able to customize the size and position of the v2 error/warning popup window.
For example move and resize it to always line up to one side of some code editor window.

One way to get that would be if v2 could be set to after creating the error/warning window also (optionally) run an extra .ahk file with the error window's Hwnd as parameter. It would then be up to the user to code it.

Two ideas on how users can approximate the wished for feature without any changes to v2.
1. A script with an always running timer that monitors for any new AutoHotkey error window.
2. A script with hotkeys that are triggered by the same key combo as some code editor's "run code" shortcut. On hotkey trigger the script starts a timer that for some seconds checks for new AutoHotkey error windows belonging to the file active in the editor.

Such scripts need distinguish error/warning windows from other ahk_class #32770 windows, such as MsgBox. The error/warning window's title currently does not include any unique string. We can however check if a new "ahk_class #32770" has a "RichEdit20W1" control.

Return to “Wish List”