Making "Gui, +OwnDialogs" constant

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
Azevedo
Posts: 81
Joined: 07 Feb 2014, 11:35

Making "Gui, +OwnDialogs" constant

30 Aug 2015, 18:54

Hi,

is there a way to make Gui, +OwnDialogs constant globaly or I have to set it before every MsgBox?
just me
Posts: 9442
Joined: 02 Oct 2013, 08:51
Location: Germany

Re: Making "Gui, +OwnDialogs" constant

31 Aug 2015, 00:40

The docs wrote:OwnDialogs: Gui +OwnDialogs should be specified in each thread (such as a ButtonOK subroutine) for which subsequently displayed MsgBox, InputBox, FileSelectFile, and FileSelectFolder dialogs should be owned by the window.
Azevedo
Posts: 81
Joined: 07 Feb 2014, 11:35

Re: Making "Gui, +OwnDialogs" constant

31 Aug 2015, 11:32

I thought so. I wondered if there was a trick though.
I tried to write a function to to display messages box but I couldn't return IfMsgBox xxxxx

Code: Select all

IfMsgBox xxxxx
      return xxxxx
IfMsgBox yyyy
      return yyyy
I wouldn't do that, want to keep a neat and clean code

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: haomingchen1998 and 242 guests