| | |
| | | #include "LimitUpCapture.h" |
| | | #include "IndustryCapture.h" |
| | | #include "TradeListCapture.h" |
| | | #include "CurrentPriceCapture.h" |
| | | void gray(); |
| | | void ths(); |
| | | /* |
| | |
| | | char tmp_s[64]; |
| | | strftime(tmp_s, sizeof(tmp_s), "%S", localtime(&timep)); |
| | | cout << string(tmp_h) << endl; |
| | | cout << string(tmp_m) << endl; |
| | | cout << string(tmp_s) << endl; |
| | | cout << string(tmp_m) << endl; cout << string(tmp_s) << endl; |
| | | |
| | | return stoi(string(tmp_h)) * 3600 + stoi(string(tmp_m)) * 60 + stoi(string(tmp_s)); |
| | | } |
| | | |
| | | int main() { |
| | | cout << "开始程序" << endl; |
| | | |
| | | //SetDlgItemText(HWND(0x0002269E), 0x0000040A, TEXT("100")); |
| | | //SetWindowText(GetDlgItem(HWND(0x0002269E), 0x0000040A),TEXT("100")); |
| | | //Win32Util::focus(GetDlgItem(HWND(0x0002269E), 0x00000408)); |
| | | //Win32Util::keyboardNum("000333", 10); |
| | | ImgUtil::init(); |
| | | |
| | | //int result= getNowSecondTime1(); |
| | | CurrentPriceCapture* currentPriceCapture = new CurrentPriceCapture(); |
| | | currentPriceCapture->init(NULL,NULL); |
| | | list<CurrentPriceData> resultList= currentPriceCapture->capture(); |
| | | for (list<CurrentPriceData>::iterator ele = resultList.begin();ele != resultList.end();++ele) { |
| | | cout<<(*ele).code<<":"<< (*ele).price <<endl; |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | //TradeListCapture* tradeListCapture = new TradeListCapture(); |
| | | //tradeListCapture->init(NULL,NULL,NULL); |
| | | //tradeListCapture->refreshTradeDelegateHWND(); |
| | | |
| | | |
| | | //cv::Mat img= tradeListCapture->grayImgs(CaptureUtil::capture(HWND(0x00055B0E))); |
| | | //cv::imwrite("C:\\Users\\Administrator\\Desktop\\ocr\\trade\\gray_1.png",img); |
| | | |
| | | //list<TradeDelegateData> dataList = tradeListCapture->captureTradeDelegateInfo(); |
| | | cv::waitKey(0); |
| | | cv::destroyAllWindows(); |
| | | return 0; |
| | | |
| | | ImgUtil::init(); |