CasewareDocs

ShowIdeaMainWindow

Shows/hides the main window of the IDEA client.

Compatibility

Available as of IDEA version 10.3

Syntax

ShowIdeaMainWindow(show As Boolean, [optional] automationOnly As Boolean)

Parameter

show

If true, the IDEA main window is shown, if false, the IDEA main window is hidden.

[optional] automationOnly

It not present, the command always has an effect.

If present, true indicates that the command should have effect in automation scenario only. False assumes a non-automation scenario.

Example

Sub Main 
Dim mc As Object
Dim sc As Object

Set mc = SmartContext.MacroCommands
Set sc = mc.SimpleCommands

MsgBox "Show IDEA: ALWAYS"
sc.ShowIdeaMainWindow True

MsgBox "Hide IDEA: ALWAYS"
sc.ShowIdeaMainWindow False

MsgBox "Show IDEA: AUTOMATION"
sc.ShowIdeaMainWindow True, True

MsgBox "Hide IDEA: AUTOMATION"
sc.ShowIdeaMainWindow False, True

MsgBox "Show IDEA: NON-AUTOMATION"
sc.ShowIdeaMainWindow True, False

MsgBox "Hide IDEA: NON-AUTOMATION"
sc.ShowIdeaMainWindow False, False
End Sub