HenryTsui Posted March 20, 2019 Posted March 20, 2019 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. Henry Test.au3
abberration Posted March 20, 2019 Posted March 20, 2019 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 Easy MP3 | Software Installer | Password Manager
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now