Hi guys. This time the problem is quite complex: part of the code is handled in AutoIt scripts, part in VBScript, part are AutoIt commands executed in VBScript via "AutoIt3ExecuteLine", and in addition PSPad is also involved with its internal commands. Therefore it is a bit difficult to post an example script. I hope we can find a solution without an example script.
"Gui_1" has an edit, is an AutoIt gui and has PSPad as parent window, so it is displayed modal to PSPad.
GUICreate("Gui