InputString[""]
Creates a notebook object.
By doing this:
Dynamic@Column[Notebooks[]]
I was able to determine that the notebook which is created by InputString[] is displayed like this:
![]()
So that I can ensure that this NotebookOject is the selected one (thus ensuring that all typed text goes there), I need to
SetSelectedNotebook on this NotebookObject.
However, I can’t see any way of getting at the NotebookObject associated with an instance of InputString[].
The Question: Does anyone know how I would find this NotebookObject?
You may wonder why one might need to do this. Note that
Module[{anumber},
anumber = InputString["enter a number", WindowFloating -> True];
anumber^2
]
does not set the InputString’s NotebookObject to the SelectedNotebook
Postscript to Post: I’ve solved the problem by replacing InputString with a simple Input[]. The question remains, but is not urgent for my purposes.