microsoft / VS-Macros

An extension for Visual Studio 2013+ that enables the use of macros in the IDE. The extension can record most of the features in Visual Studio including text editing operations.
Other
131 stars 41 forks source link

Add support for alert, confirm, prompt. #30

Open fspafford opened 8 years ago

fspafford commented 8 years ago

Please consider adding support for alert, confirm, and prompt dialogs.

These dialogs are handy, and have many uses.

DonKedero commented 8 years ago

Some kind of basic-InputBox can become handy too

tobiasmelcher commented 7 years ago

I found a workaround using InternetExplorer ActiveXObject.

var oIE = new ActiveXObject("InternetExplorer.Application"); oIE.navigate("about:blank");
while (oIE.Busy) { }
oIE.Visible = 1; var obj = oIE.Document.Script;
var input = obj.prompt("Text", "Value"); oIE.Quit();

Unfortunately, IE window does not get focus and is not brought to top ...