Jump to content

Recommended Posts

Posted

Hello:

AutoIt is new to me and I am trying to download data from CBOE -http://www.cboe.com/delayedquote/quote-table-download

Try with this code to enter symbol A into the box.

It seems that I need some help to get the code to work.

image.png.b484017c5165a42bdd259ba4ae07d8c7.png

Henry

Test.au3

Posted
ShellExecute("chrome.exe", "http://www.cboe.com/delayedquote/quote-table-download ")
ConsoleWrite('@@ Debug(' & @ScriptLineNumber & ') : ShellExecute("chrome.exe", "http://www.cboe.com/delayedquote/quote-table-download ") = ' & ShellExecute("chrome.exe", "http://www.cboe.com/delayedquote/quote-table-download ") & @CRLF & '>Error code: ' & @error & @CRLF) ;### Debug Console
Sleep (2000)
#include <Constants.au3>
AutoItSetOption("WinTitleMatchMode", $OPT_MATCHANY) ;2
Sleep(30000)
WinActivate("[Quote Table Download - Google Chrome")
ConsoleWrite('@@ Debug(' & @ScriptLineNumber & ') : WinActivate("[Quote Table Download - Google Chrome;CLASS:Chrome_WidgetWin_1]") = ' & WinActivate("[Quote Table Download - Google Chrome;CLASS:Chrome_WidgetWin_1]") & @CRLF & '>Error code: ' & @error & @CRLF) ;### Debug Console
If WinActive("Quote Table Download", "") Then
    Send( "A" & "{ENTER}" )
    MsgBox(0, "", "done")
Else
    MsgBox(0, "Result", "Not active.")
    ConsoleWrite('@@ Debug(' & @ScriptLineNumber & ') :     MsgBox(0, "Result", "Not active.") = ' &     MsgBox(0, "Result", "Not active.") & @CRLF & '>Error code: ' & @error & @CRLF) ;### Debug Console
EndIf

 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...