is it possible to check if the player has opened the console?
the window in my mod gets stuck behind the console when the console is opened so I need to close the indow when that is the case
checking if console is opened
-
anth
- Adept
- Posts: 257
- Joined: Thu May 13, 2010 2:23 am
Re: checking if console is opened
Code: Select all
if (!WindowConsole(MyConsole).Root.ActiveWindow.IsA('MyWindowClass'))
{
MyWindow.Close();
OpenMyWindow();
}
-
Rakiayn
- Masterful
- Posts: 550
- Joined: Fri Aug 28, 2009 3:33 pm
-
Rakiayn
- Masterful
- Posts: 550
- Joined: Fri Aug 28, 2009 3:33 pm
-
Feralidragon
- Godlike
- Posts: 5502
- Joined: Wed Feb 27, 2008 6:24 pm
- Personal rank: Work In Progress
- Location: Liandri
Re: checking if console is opened
anth posted "pseudo-code", you should replace "MyConsole" by the console instance you want to get, "MyWindowClass" for the window you want, etc...Rakiayn wrote:I get the error: bad or missing expression after !
-
Rakiayn
- Masterful
- Posts: 550
- Joined: Fri Aug 28, 2009 3:33 pm
Re: checking if console is opened
I want to check if the console is opened.
but I dont know what I should replace it width
but I dont know what I should replace it width
