这是我在stackoverflow上的第一个问题!
我一直在寻找这个问题的解决方案一段时间,但没有找到任何帮助.我可能只是在我的搜索中使用了错误的关键字,但到目前为止我没有运气.这是问题:
在VBA中,如何从Internet Explorer的文件下载对话框中选择"打开"选项?
只是为了进一步澄清,我说的是在下载文件时,IE9中屏幕底部弹出的黄橙色条.
我正在做一些VBA自动化,使用Internet Explorer从网上下载数百个PDF,但是有一个中间步骤,在我到达实际的PDF之前必须打开.fdf文件.所以我首先需要选择"打开"选项,以便我可以继续进行自动化的下一步.就像我之前说过的那样,我做了很多搜索,到目前为止没有运气.
我已经尝试过使用SendKeys希望打击Enter会起作用,这是最后的努力没有奏效.
在此先感谢您的帮助!
出于某种原因,当我尝试使用它时,$ firebase是未定义的.我对Angular很新,所以我猜测我分割文件的方式只有一些脱节.如果它只在一个HTML页面中,我可以让所有代码正常工作,但我想将它全部拆分,因为我的应用程序将有不同的页面.
controllers.js
angular.module('myApp.controllers', ['firebase']).
controller('StoryController', [function($scope, $firebase) {
var storiesRef = new Firebase(FIREBASE_URL);
$scope.stories = $firebase(storiesRef);
$scope.addStory = function(e) {
if (e.keyCode != 13) return;
$scope.stories.$add({title: $scope.title, text: $scope.text});
$scope.text = "";
}
}]);
Run Code Online (Sandbox Code Playgroud)
app.js
angular.module('myApp', [
'ngRoute',
'myApp.filters',
'myApp.services',
'myApp.directives',
'myApp.controllers'
]).
config(['$routeProvider', function($routeProvider) {
$routeProvider.when('/stories', {templateUrl: 'partials/stories.html'});
$routeProvider.when('/addStory', {templateUrl: 'partials/addStory.html', controller: 'StoryController'});
$routeProvider.otherwise({redirectTo: '/'});
}]);
Run Code Online (Sandbox Code Playgroud)
编辑:忘记包含错误.
TypeError: undefined is not a function
at new <anonymous> (http://localhost:8000/app/js/controllers.js:8:22)
at d (http://localhost:8000/app/lib/angular/angular.min.js:30:452)
at Object.instantiate (http://localhost:8000/app/lib/angular/angular.min.js:31:80)
at http://localhost:8000/app/lib/angular/angular.min.js:62:23
at link (http://localhost:8000/app/lib/angular-route/angular-route.min.js:7:208) …Run Code Online (Sandbox Code Playgroud)