
oemript
Active Members-
Posts
336 -
Joined
-
Last visited
Everything posted by oemript
-
How to capture text using AutoIT?
oemript replied to oemript's topic in AutoIt General Help and Support
Thank you very much for suggestions (^v^) -
Referring to following linked image, it is using post method, I would like to know on how to collect text using AutoIT as shown below: 1) select Jul month and 2019 year 2) click go 3) save text into D:\text1.txt Does anyone have any suggestions? Thanks in advance for any suggestions https://www.moontracks.com/daily-declinations.html
-
Thank you very much for suggestions (^v^)
-
Referring to following coding, I would like to know on how to assign the number into here "nth-child(2)" based on following calculation: Current month is 1 for Jan, it return 3, which become $jQuery('.sewvbm > li:nth-child(3)').click() Current month is 2 for Feb, it return 6, which become $jQuery('.sewvbm > li:nth-child(6)').click() Current month is 3 for Mar, it return 6, which become $jQuery('.sewvbm > li:nth-child(6)').click() Current month is 4 for Apr, it return 6, which become $jQuery('.sewvbm > li:nth-child(6)').click() Current month is 5 for May, it return 9, which become $jQuery('.sewvbm > li:nth-child(9)').click() Current month is 6 for Jun, it return 9, which become $jQuery('.sewvbm > li:nth-child(9)').click() Current month is 7 for Jul, it return 9, which become $jQuery('.sewvbm > li:nth-child(9)').click() Current month is 8 for Aug, it return 12, which become $jQuery('.sewvbm > li:nth-child(12)').click() Current month is 9 for Sep, it return 12, which become $jQuery('.sewvbm > li:nth-child(12)').click() Current month is 10 for Oct, it return 12, which become $jQuery('.sewvbm > li:nth-child(12)').click() Current month is 11 for Nov, it return 3, which become $jQuery('.sewvbm > li:nth-child(3)').click() Current month is 12 for Dec, it return 3, which become $jQuery('.sewvbm > li:nth-child(3)').click() Does anyone have any suggestions? Thanks in advance for any suggestions $jQuery('.sewvbm > li:nth-child(2)').click()
-
How to download file using AutoIT?
oemript replied to oemript's topic in AutoIt General Help and Support
Solved with another approach ... Thank you very much for suggestions (^v^) -
How to download file using AutoIT?
oemript replied to oemript's topic in AutoIt General Help and Support
Referring to following image, I would like to know on what function should be used to retrieve href : URL based on given id="download-data" Do you have any suggestions? Thanks, to everyone very much for any suggestions (^v^) -
How to download file using AutoIT?
oemript replied to oemript's topic in AutoIt General Help and Support
Referring to following coding, I would like to know on how to change save path into C:\temp folder Local $sFilePath = _WinAPI_GetTempFileName(@TempDir) Do you have any suggestions? Thanks, to everyone very much for any suggestions (^v^) -
Referring to following coding and image, I would like to know on how to handle click button and save file into specific folder using AutoIT. Saving Path : C:\download\ Does anyone have any suggestions? Thanks in advance for any suggestions #include <IE.au3> #include <array.au3> #include <File.au3> #include <MsgBoxConstants.au3> $oIE = _IECreate("https://fred.stlouisfed.org/series/WALCL") $oTag = _IEGetObjById ($oIE, "download-button-container") If Not IsObj($oTag) Then Else _IEAction ($oTag, "click") _IELoadWait ($oIE, 5000) EndIf
-
How to capture text using AutoIT?
oemript replied to oemript's topic in AutoIt General Help and Support
It works with If Not IsObj($oTag) Then Thanks, to everyone very much for suggestions (^v^) -
How to capture text using AutoIT?
oemript replied to oemript's topic in AutoIt General Help and Support
Done -
How to capture text using AutoIT?
oemript replied to oemript's topic in AutoIt General Help and Support
It works, now Thanks, to everyone very much for suggestions (^v^) -
How to capture text using AutoIT?
oemript replied to oemript's topic in AutoIt General Help and Support
I try following approach without luck MsgBox($MB_SYSTEMMODAL, "InnerText", _IEPropertyGet($oTag, "innertext")) MsgBox($MB_SYSTEMMODAL, "InnerText", $oTag.innertext) MsgBox($MB_SYSTEMMODAL, "InnerText", $oTag.text) Do you have any suggestions on what is the proper format to retrieve innertext? Thanks, to everyone very much for any suggestions (^v^) -
How to capture text using AutoIT?
oemript replied to oemript's topic in AutoIt General Help and Support
When I search for help with " text " or " textContent", there is no related function for AutoIT. Could you please provide any example on how to do that? Do you have any suggestions? Thanks, to everyone very much for any suggestions (^v^) -
How to capture text using AutoIT?
oemript replied to oemript's topic in AutoIt General Help and Support
I try following coding, but it displays nothing within dialog box. MsgBox($MB_SYSTEMMODAL, "InnerText",$oTag.InnerText) Do you have any suggestions on how to retrieve innerText properly? Thanks, to everyone very much for any suggestions (^v^) -
How to capture text using AutoIT?
oemript replied to oemript's topic in AutoIt General Help and Support
Please see following coding as shown below. Do you have any suggestions? Thanks, to everyone very much for any suggestions (^v^) #include <IE.au3> #include <array.au3> #include <File.au3> $oIE = _IECreate("https://www.cmegroup.com/trading/interest-rates/countdown-to-fomc.html") _IENavigate($oIE, "https://cmegroup-tools.quikstrike.net/User/QuikStrikeView.aspx?viewitemid=IntegratedFedWatchTool") $oTag = _IEGetObjById ($oIE, "ctl00_MainContent_ucViewControl_IntegratedFedWatchTool_uccv_lvMeetings_ctrl3_lbMeeting") _IEAction ($oTag, "click") _IELoadWait ($oIE, 5000) $oTable = _IETableGetCollection($oIE, 4) ;$oTable = _IETableGetCollection($oIE,0) $aData = _IETableWriteToArray($oTable) _ArrayDisplay($aData) _FileWriteFromArray("C:\temp\txt.txt" , $aData,1) -
How to capture text using AutoIT?
oemript replied to oemript's topic in AutoIt General Help and Support
Referring to following image, I would like to know on how to retrieve the date as shown below, there is no date information within arraydisplay. Do you have any suggestions? Thanks, to everyone very much for any suggestions (^v^) -
How to capture text using AutoIT?
oemript replied to oemript's topic in AutoIt General Help and Support
Thanks, to everyone very much for suggestions (^v^) -
How to capture text using AutoIT?
oemript replied to oemript's topic in AutoIt General Help and Support
Referring to following image, I would like to know on how to export row 0 into text file as well. Do you have any suggestions? Thanks, to everyone very much for any suggestions (^v^) #include <IE.au3> #include <array.au3> #include <File.au3> $oIE = _IECreate("https://www.cmegroup.com/trading/interest-rates/countdown-to-fomc.html") _IENavigate($oIE, "https://cmegroup-tools.quikstrike.net/User/QuikStrikeView.aspx?viewitemid=IntegratedFedWatchTool") $oTag = _IEGetObjById ($oIE, "ctl00_MainContent_ucViewControl_IntegratedFedWatchTool_uccv_lvMeetings_ctrl3_lbMeeting") _IEAction ($oTag, "click") _IELoadWait ($oIE, 5000) $oTable = _IETableGetCollection($oIE, 4) ;$oTable = _IETableGetCollection($oIE,0) $aData = _IETableWriteToArray($oTable) _ArrayDisplay($aData) _FileWriteFromArray("C:\temp\txt.txt" , $aData,1) -
How to capture text using AutoIT?
oemript replied to oemript's topic in AutoIt General Help and Support
Thanks, to everyone very much for suggestions (^v^) -
How to capture text using AutoIT?
oemript replied to oemript's topic in AutoIt General Help and Support
Referring to following coding, I would like to know on what following do, since I already select 18 Sep 19 Tab, but the $oTable still retrieve data from 1 May 19 tab Do you have any suggestions on why IETableGetCollection do not able to update content? Thanks, to everyone very much for any suggestions (^v^) #include <IE.au3> #include <array.au3> $oIE = _IECreate("https://www.cmegroup.com/trading/interest-rates/countdown-to-fomc.html") _IENavigate($oIE, "https://cmegroup-tools.quikstrike.net/User/QuikStrikeView.aspx?viewitemid=IntegratedFedWatchTool") $oTag = _IEGetObjById ($oIE, "ctl00_MainContent_ucViewControl_IntegratedFedWatchTool_uccv_lvMeetings_ctrl3_lbMeeting") _IEAction ($oTag, "click") _IELoadWait ($oIE) $oTable = _IETableGetCollection($oIE, 4) ; What does it do? $aData = _IETableWriteToArray($oTable) _ArrayDisplay($aData) -
How to capture text using AutoIT?
oemript replied to oemript's topic in AutoIt General Help and Support
Referring to following coding, within the same Frame, there is no specific name to locate following coding. javascript:__doPostBack('ctl00$MainContent$ucViewControl_IntegratedFedWatchTool$uccv$lvMeetings$ctrl1$lbMeeting','') The closer related location is this coding <div id="MainContent_pnlContrainer">, but I don't know on how to relate clicking to specific tab. Do you have any suggestions on how to call above script and click tab? so it would display information on 19 Jun 19. Thanks, to everyone very much for any suggestions (^v^) -
How to capture text using AutoIT?
oemript replied to oemript's topic in AutoIt General Help and Support
Referring to following image, I would like to know on how to click specific tabs in order to retrieve data for different months. javascript:__doPostBack('ctl00$MainContent$ucViewControl_IntegratedFedWatchTool$uccv$lvMeetings$ctrl0$lbMeeting','') javascript:__doPostBack('ctl00$MainContent$ucViewControl_IntegratedFedWatchTool$uccv$lvMeetings$ctrl1$lbMeeting','') javascript:__doPostBack('ctl00$MainContent$ucViewControl_IntegratedFedWatchTool$uccv$lvMeetings$ctrl2$lbMeeting','') javascript:__doPostBack('ctl00$MainContent$ucViewControl_IntegratedFedWatchTool$uccv$lvMeetings$ctrl3$lbMeeting','') javascript:__doPostBack('ctl00$MainContent$ucViewControl_IntegratedFedWatchTool$uccv$lvMeetings$ctrl4$lbMeeting','') javascript:__doPostBack('ctl00$MainContent$ucViewControl_IntegratedFedWatchTool$uccv$lvMeetings$ctrl5$lbMeeting','') javascript:__doPostBack('ctl00$MainContent$ucViewControl_IntegratedFedWatchTool$uccv$lvMeetings$ctrl6$lbMeeting','') Do you have any suggestions? Thanks, to everyone very much for any suggestions (^v^) -
How to capture text using AutoIT?
oemript replied to oemript's topic in AutoIt General Help and Support
Referring to following coding and image, if oFrame is not available, I would like to know on what to look for based on following image. Do you have any suggestions? Thank you very much for any suggestions (^v^) #include <Constants.au3> #include <IE.au3> #include <Array.au3> Opt ("MustDeclareVars", 1) Local $oIE = _IECreate("https://www.cmegroup.com/trading/interest-rates/countdown-to-fomc.html") If Not IsObj ($oIE) Then Exit MsgBox ($MB_SYSTEMMODAL,"","Error creating IE object") Local $oFrame = _IEFrameGetObjByName ($oIE,"out") If Not IsObj ($oFrame) Then Exit MsgBox ($MB_SYSTEMMODAL,"","Error searching for frame") Local $oTDs = _IETagNameGetCollection ($oFrame, "td") If Not IsObj ($oTDs) Then Exit MsgBox ($MB_SYSTEMMODAL,"","Error gathering tag collection") Local $sValue For $oTD in $oTDs $sValue = _IEPropertyGet ($oTD, "innertext") If @error or $sValue = "" Then ContinueLoop If $sValue = "200-225" Then $sValue = $oTD.nextElementSibling.innerText ;which return 0.0% $sValue = $oTD.nextElementSibling.innerText ;which return 2.0% $sValue = $oTD.nextElementSibling.innerText ;which return 3.9% ExitLoop Endif Next MsgBox ($MB_SYSTEMMODAL,"",Number($sValue)) _IEQuit ($oIE) -
After creating a text.au3 with only 1 coding as shown and compile, I find out there is virus on execute file as shown on below image. #include <File.au3> Does anyone have any suggestions on what wrong it is? Thanks in advance for any suggestions
-
How to capture text using AutoIT?
oemript replied to oemript's topic in AutoIt General Help and Support
Thanks, to everyone very much for suggestions (^v^)