Tag: internet explorer

在Ruby中使用浏览器作为GUI

在vbscript中,通常使用浏览器(IE)作为GUI。 请参阅下面的示例,它要求输入名称并将其返回给脚本。 在Ruby中你有一些像Tcl和Shoes的GUI,但我想知道如何在浏览器中这样做。 什么是最简单的Ruby解决方案? 所以没有exta gems或package,没有已经运行的服务器..如果需要gem,最好是在Windows中运行而没有问题。 这里是vbscript示例 Set web = CreateObject(“InternetExplorer.Application”) If web Is Nothing Then msgbox(“Error while loading Internet Explorer”) Wscript.Quit Else with web .Width = 300 .Height = 175 .Offline = True .AddressBar = False .MenuBar = False .StatusBar = False .Silent = True .ToolBar = False .Navigate “about:blank” .Visible = True end […]