Tag: microsoft.mshtml

使用vba和InternetExplorer.Application触发事件以重新计算jquery表单

我正在尝试从不同的网站收集数据。 因此,我正在使用excel vba并启动Internet Explorer。 我可以填写正常表格。 但有时我必须用后面的jquery脚本填写动态表单。 如果填写前2个字段并触发事件,则表单将仅启用所有输入字段(下拉菜单)。 所以我的脚本能够填写表格,但不能解雇所需的“重新计算”事件。 如果您使用鼠标手动填写表单,它可以正常工作。 我该如何模拟这个事件? 这是我的excel vba脚本: Sub test_fill_form() Dim url1 As String Dim url2 As String Dim url3 As String url1 = “https://auto.” url2 = “ar” url3 = “do.ch/selling/?step=1&uniqueid=8a7d2327-f426-4df7-8291-d6b55fc62e3c” Dim ie As Object Set ie = CreateObject(“InternetExplorer.Application”) ie.Visible = True apiShowWindow ie.hwnd, SW_MAXIMIZE ie.navigate url1 & “ric” & url2 […]