JayT Posted December 18, 2021 Author Posted December 18, 2021 here is the code I am trying to execute. The full URL will work in IE however the page will not load anymore for some reason not sure why so I decided to use Chrome and when I do the full URL will not paste? ShellExecute("chrome.exe","https://parks.suffolkcountyny.gov/wbwsc/webtrac.wsc/search.html?Action=Start&SubAction=&rnwebsearch_search=Yes&primarycode=&begindate=" & $date1 & "%2F" & $Date2 & "%2F" & $Date3 & "&nights=" & $nights & "&category=" & $location & "&subtype=" & $hookup & "&type=FamilySite&begintime=12%3A00+am&endtime=12%3A00+am&quantity=1&keyword=&display=Listing&search=yes&page=&gotopagenow=&gotopage=1&module=RN&multiselectlist_value=", $INET_FORCERELOAD)
Developers Jos Posted December 18, 2021 Developers Posted December 18, 2021 What is $INET_FORCERELOAD doing in that code? Post something that is runable and showing the issue when you want proper help. SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
JayT Posted December 18, 2021 Author Posted December 18, 2021 expandcollapse popupLocal $sNewDate = _DateAdd('d', 179, _NowCalcDate ()) #Region ### START Koda GUI section ### Form=C:\Users\Tedescoj\Downloads\koda_1.7.3.0\test\camping_form_1.kxf $Form1_1 = GUICreate("Reserve A-Spot! V3.0", 697, 476, -1, -1) $Pic1 = GUICtrlCreatePic("C:\Users\Tedescoj\Documents\Autoit Scripts\images\Camper.jpg", 16, 16, 230, 157) $Group1 = GUICtrlCreateGroup("", 288, 80, 382, 153) $Heading = GUICtrlCreateLabel("Select a Park:", 336, 104, 101, 19, $SS_SUNKEN) GUICtrlSetFont(-1, 9, 400, 0, "Arial") $Combo1 = GUICtrlCreateCombo("Smith Point", 472, 104, 145, 25) GUICtrlSetData(-1, "Cupsogue|Indian+Island|Montauk|Sears+bellows|Shinnecock+East|Southhaven|West+Hills") $hookups = GUICtrlCreateCombo("Sewer", 472, 136, 145, 25) GUICtrlSetData(-1, "Basic|Electric|Outer+Beach") $Label3 = GUICtrlCreateLabel("Select Hookup:", 336, 136, 106, 19, $SS_SUNKEN) GUICtrlSetFont(-1, 9, 400, 0, "Arial") $Number_of_Nights = GUICtrlCreateCombo("4", 472, 168, 145, 25, BitOR($CBS_DROPDOWN,$CBS_AUTOHSCROLL)) GUICtrlSetData(-1, "5|6|7|8|9|10|11|12|13|14") $Label2 = GUICtrlCreateLabel("Number of Nights:", 336, 168, 115, 19, $SS_SUNKEN) GUICtrlSetFont(-1, 9, 400, 0, "Arial") $Site_number = GUICtrlCreateInput("", 472, 200, 145, 21) $Label7 = GUICtrlCreateLabel("Site Number", 336, 200, 115, 19, $SS_SUNKEN) GUICtrlSetFont(-1, 9, 400, 0, "Arial") GUICtrlCreateGroup("", -99, -99, 1, 1) $Search = GUICtrlCreateButton("Search", 416, 368, 174, 44) GUICtrlSetFont(-1, 15, 800, 2, "@MingLiU-ExtB") $Label1 = GUICtrlCreateLabel("Check Availability", 416, 256, 161, 28) GUICtrlSetFont(-1, 16, 800, 2, "Calibri") $Date = GUICtrlCreateLabel("Enter Date:", 336, 312, 70, 20, $SS_SUNKEN) GUICtrlSetFont(-1, 10, 400, 0, "MS Sans Serif") $Month = GUICtrlCreateCombo("Month", 416, 312, 57, 25) GUICtrlSetData(-1, "01|02|03|04|05|06|07|08|09|10|11|12|") $Day = GUICtrlCreateCombo("Day", 480, 312, 65, 25) GUICtrlSetData(-1, "01|02|03|04|05|06|07|08|09|10|11|12|13|14|15|16|17|18|19|20|21|22|23|24|25|26|27|28|29|30") $Year = GUICtrlCreateCombo("2021", 552, 312, 65, 25) GUICtrlSetData(-1, "2021|2022") $MonthCal1 = GUICtrlCreateMonthCal("2021/12/18", 16, 184, 235, 196) $Label4 = GUICtrlCreateLabel("Reserve A-Spot !", 376, 24, 198, 36) GUICtrlSetFont(-1, 18, 800, 2, "Segoe UI Emoji") GUICtrlSetColor(-1, 0x0C5440) $Label5 = GUICtrlCreateLabel("Jayware. 2021", 16, 448, 50, 16) GUICtrlSetFont(-1, 8, 400, 0, "Script") GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit Case $Search sleep (1000) $Date1 = GUICtrlRead ($Month) $Date2 = GUICtrlRead ($Day) $Date3 = GUICtrlRead ($Year) $location = GUICtrlRead ($Combo1) $hookup = GUICtrlRead ($hookups) $nights = GUICtrlRead ($Number_of_Nights) $Site_number = GUICtrlRead ($Site_number) Call ("Search") EndSwitch WEnd Search Func Search() If $Date1 = "Month" Then EndIf If $Date2 = "Day" Then EndIf If $Date3 = "Year" Then MsgBox("","Error","You Must select correct date") EndIf ; Display a progress bar window. ProgressOn("Searching", "Searching For Available Sites....", "0%", -1, -1, BitOR($DLG_NOTONTOP, $DLG_MOVEABLE)) ; Update the progress value of the progress bar window every second. For $i = 20 To 100 Step 20 Sleep(1000) ProgressSet($i, $i & "%") Next ; Set the "subtext" and "maintext" of the progress bar window. ProgressSet(100, "Done", "Complete") ;Sleep(5000) ; Close the progress window. Local $sCompare = 'data-icon-primary="ui-icon-plusthick"' ; Get page 1` Local $dData = InetRead("https://parks.suffolkcountyny.gov/wbwsc/webtrac.wsc/search.html?Action=Start&SubAction=&rnwebsearch_search=Yes&primarycode=&begindate=" & $Site_number & $date1 & "%2F" & $Date2 & "%2F" & $Date3 & "&nights=" & $nights & "&category=" & $location & "&subtype=" & $hookup & "&type=FamilySite&begintime=12%3A00+am&endtime=12%3A00+am&quantity=1&keyword=&display=Listing&search=yes&page=&gotopagenow=&gotopage=1&module=RN&multiselectlist_value=", $INET_FORCERELOAD) Local $sData = BinaryToString($dData) ;ConsoleWrite ($sData & @CRLF) Local $aPage = StringRegExp($sData, '<option value="(\d+)', 3) ;_ArrayDisplay($aPage) Local $nPage = $aPage[UBound($aPage)-1] StringReplace($sData, $sCompare, $sCompare) Local $iTotal = @extended ; loop thru all pages using $i as page indicator For $i = 2 to $nPage $dData = InetRead("https://parks.suffolkcountyny.gov/wbwsc/webtrac.wsc/search.html?Action=Start&SubAction=&rnwebsearch_search=Yes&primarycode=&begindate=" & $Site_number & $date1 & "%2F" & $Date2 & "%2F" & $Date3 & "&nights=" & $nights & "&category=" & $location & "&subtype=" & $hookup & "&type=FamilySite&begintime=12%3A00+am&endtime=12%3A00+am&quantity=1&keyword=&display=Listing&search=yes&page=" & $i & "&gotopagenow=yes&gotopage=&module=RN&multiselectlist_value=", $INET_FORCERELOAD) ProgressOff() $sData = BinaryToString($dData) StringReplace($sData, $sCompare, $sCompare) $iTotal += @extended Next Switch msgbox ($MB_CANCELTRYCONTINUE, $itotal & " Sites Available", "There Are " & $iTotal & " Sites Available At " & $location & " With " & $hookup & " Hookups For The Selected Dates. " & @CRLF & @CRLF & " Click " & "Continue" & " To Go To The Reservation Page, Or " & "Try Again " & "To Search For Another Date.") Case $IDContinue _IECreate("https://parks.suffolkcountyny.gov/wbwsc/webtrac.wsc/search.html?Action=Start&SubAction=&rnwebsearch_search=Yes&primarycode=&begindate=" & $Site_number & $date1 & "%2F" & $Date2 & "%2F" & $Date3 & "&nights=" & $nights & "&category=" & $location & "&subtype=" & $hookup & "&type=FamilySite&begintime=12%3A00+am&endtime=12%3A00+am&quantity=1&keyword=&display=Listing&search=yes&page=&gotopagenow=&gotopage=1&module=RN&multiselectlist_value=", $INET_FORCERELOAD) Case $IDCancel EndSwitch EndFunc
Developers Jos Posted December 19, 2021 Developers Posted December 19, 2021 (edited) 12 hours ago, Jos said: What is $INET_FORCERELOAD doing in that code? I don't see an answer to my question? ... and there is no way the last posted script actually properly runs! expandcollapse popup"D:\Development\AutoIt3\programs\test\test.au3"(6,78) : warning: $SS_SUNKEN: possibly used before declaration. $Heading = GUICtrlCreateLabel("Select a Park:", 336, 104, 101, 19, $SS_SUNKEN) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ "D:\Development\AutoIt3\programs\test\test.au3"(14,83) : warning: $CBS_DROPDOWN: possibly used before declaration. $Number_of_Nights = GUICtrlCreateCombo("4", 472, 168, 145, 25, BitOR($CBS_DROPDOWN, ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ "D:\Development\AutoIt3\programs\test\test.au3"(14,101) : warning: $CBS_AUTOHSCROLL: possibly used before declaration. $Number_of_Nights = GUICtrlCreateCombo("4", 472, 168, 145, 25, BitOR($CBS_DROPDOWN, $CBS_AUTOHSCROLL) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ "D:\Development\AutoIt3\programs\test\test.au3"(47,24) : warning: $GUI_EVENT_CLOSE: possibly used before declaration. Case $GUI_EVENT_CLOSE ~~~~~~~~~~~~~~~~~~~~~^ "D:\Development\AutoIt3\programs\test\test.au3"(75,96) : warning: $DLG_NOTONTOP: possibly used before declaration. ProgressOn("Searching", "Searching For Available Sites....", "0%", -1, -1, BitOR($DLG_NOTONTOP, ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ "D:\Development\AutoIt3\programs\test\test.au3"(75,111) : warning: $DLG_MOVEABLE: possibly used before declaration. ProgressOn("Searching", "Searching For Available Sites....", "0%", -1, -1, BitOR($DLG_NOTONTOP, $DLG_MOVEABLE) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ "D:\Development\AutoIt3\programs\test\test.au3"(92,484) : warning: $INET_FORCERELOAD: possibly used before declaration. Local $dData = InetRead("https://parks.suffolkcountyny.gov/wbwsc/webtrac.wsc/search.html?Action=Start&SubAction=&rnwebsearch_search=Yes&primarycode=&begindate=" & $Site_number & $Date1 & "%2F" & $Date2 & "%2F" & $Date3 & "&nights=" & $nights & "&category=" & $location & "&subtype=" & $hookup & "&type=FamilySite&begintime=12%3A00+am&endtime=12%3A00+am&quantity=1&keyword=&display=Listing&search=yes&page=&gotopagenow=&gotopage=1&module=RN&multiselectlist_value=", $INET_FORCERELOAD) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ "D:\Development\AutoIt3\programs\test\test.au3"(117,37) : warning: $MB_CANCELTRYCONTINUE: possibly used before declaration. Switch MsgBox($MB_CANCELTRYCONTINUE, ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ "D:\Development\AutoIt3\programs\test\test.au3"(119,19) : warning: $IDContinue: possibly used before declaration. Case $IDContinue ~~~~~~~~~~~~~~~~^ "D:\Development\AutoIt3\programs\test\test.au3"(122,17) : warning: $IDCancel: possibly used before declaration. Case $IDCancel ~~~~~~~~~~~~~~^ "D:\Development\AutoIt3\programs\test\test.au3"(6,78) : error: $SS_SUNKEN: undeclared global variable. $Heading = GUICtrlCreateLabel("Select a Park:", 336, 104, 101, 19, $SS_SUNKEN) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ "D:\Development\AutoIt3\programs\test\test.au3"(14,83) : error: $CBS_DROPDOWN: undeclared global variable. $Number_of_Nights = GUICtrlCreateCombo("4", 472, 168, 145, 25, BitOR($CBS_DROPDOWN, ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ "D:\Development\AutoIt3\programs\test\test.au3"(14,101) : error: $CBS_AUTOHSCROLL: undeclared global variable. $Number_of_Nights = GUICtrlCreateCombo("4", 472, 168, 145, 25, BitOR($CBS_DROPDOWN, $CBS_AUTOHSCROLL) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ "D:\Development\AutoIt3\programs\test\test.au3"(47,24) : error: $GUI_EVENT_CLOSE: undeclared global variable. Case $GUI_EVENT_CLOSE ~~~~~~~~~~~~~~~~~~~~~^ "D:\Development\AutoIt3\programs\test\test.au3"(75,96) : error: $DLG_NOTONTOP: undeclared global variable. ProgressOn("Searching", "Searching For Available Sites....", "0%", -1, -1, BitOR($DLG_NOTONTOP, ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ "D:\Development\AutoIt3\programs\test\test.au3"(75,111) : error: $DLG_MOVEABLE: undeclared global variable. ProgressOn("Searching", "Searching For Available Sites....", "0%", -1, -1, BitOR($DLG_NOTONTOP, $DLG_MOVEABLE) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ "D:\Development\AutoIt3\programs\test\test.au3"(92,484) : error: $INET_FORCERELOAD: undeclared global variable. Local $dData = InetRead("https://parks.suffolkcountyny.gov/wbwsc/webtrac.wsc/search.html?Action=Start&SubAction=&rnwebsearch_search=Yes&primarycode=&begindate=" & $Site_number & $Date1 & "%2F" & $Date2 & "%2F" & $Date3 & "&nights=" & $nights & "&category=" & $location & "&subtype=" & $hookup & "&type=FamilySite&begintime=12%3A00+am&endtime=12%3A00+am&quantity=1&keyword=&display=Listing&search=yes&page=&gotopagenow=&gotopage=1&module=RN&multiselectlist_value=", $INET_FORCERELOAD) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ "D:\Development\AutoIt3\programs\test\test.au3"(117,37) : error: $MB_CANCELTRYCONTINUE: undeclared global variable. Switch MsgBox($MB_CANCELTRYCONTINUE, ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ "D:\Development\AutoIt3\programs\test\test.au3"(119,19) : error: $IDContinue: undeclared global variable. Case $IDContinue ~~~~~~~~~~~~~~~~^ "D:\Development\AutoIt3\programs\test\test.au3"(122,17) : error: $IDCancel: undeclared global variable. Case $IDCancel ~~~~~~~~~~~~~~^ "D:\Development\AutoIt3\programs\test\test.au3"(1,51) : error: _NowCalcDate(): undefined function. Local $sNewDate = _DateAdd('d', 179, _NowCalcDate() ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ "D:\Development\AutoIt3\programs\test\test.au3"(1,52) : error: _DateAdd(): undefined function. Local $sNewDate = _DateAdd('d', 179, _NowCalcDate()) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ "D:\Development\AutoIt3\programs\test\test.au3"(120,472) : error: _IECreate(): undefined function. _IECreate("https://parks.suffolkcountyny.gov/wbwsc/webtrac.wsc/search.html?Action=Start&SubAction=&rnwebsearch_search=Yes&primarycode=&begindate=" & $Site_number & $Date1 & "%2F" & $Date2 & "%2F" & $Date3 & "&nights=" & $nights & "&category=" & $location & "&subtype=" & $hookup & "&type=FamilySite&begintime=12%3A00+am&endtime=12%3A00+am&quantity=1&keyword=&display=Listing&search=yes&page=&gotopagenow=&gotopage=1&module=RN&multiselectlist_value=", $INET_FORCERELOAD) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ D:\Development\AutoIt3\programs\test\test.au3 - 13 error(s), 10 warning(s) !>10:47:06 AU3Check ended. Press F4 to jump to next error.rc:2 +>10:47:06 AutoIt3Wrapper Finished. Edited December 19, 2021 by Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
JayT Posted December 20, 2021 Author Posted December 20, 2021 14 hours ago, Jos said: I don't see an answer to my question? ... and there is no way the last posted script actually properly runs! expandcollapse popup"D:\Development\AutoIt3\programs\test\test.au3"(6,78) : warning: $SS_SUNKEN: possibly used before declaration. $Heading = GUICtrlCreateLabel("Select a Park:", 336, 104, 101, 19, $SS_SUNKEN) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ "D:\Development\AutoIt3\programs\test\test.au3"(14,83) : warning: $CBS_DROPDOWN: possibly used before declaration. $Number_of_Nights = GUICtrlCreateCombo("4", 472, 168, 145, 25, BitOR($CBS_DROPDOWN, ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ "D:\Development\AutoIt3\programs\test\test.au3"(14,101) : warning: $CBS_AUTOHSCROLL: possibly used before declaration. $Number_of_Nights = GUICtrlCreateCombo("4", 472, 168, 145, 25, BitOR($CBS_DROPDOWN, $CBS_AUTOHSCROLL) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ "D:\Development\AutoIt3\programs\test\test.au3"(47,24) : warning: $GUI_EVENT_CLOSE: possibly used before declaration. Case $GUI_EVENT_CLOSE ~~~~~~~~~~~~~~~~~~~~~^ "D:\Development\AutoIt3\programs\test\test.au3"(75,96) : warning: $DLG_NOTONTOP: possibly used before declaration. ProgressOn("Searching", "Searching For Available Sites....", "0%", -1, -1, BitOR($DLG_NOTONTOP, ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ "D:\Development\AutoIt3\programs\test\test.au3"(75,111) : warning: $DLG_MOVEABLE: possibly used before declaration. ProgressOn("Searching", "Searching For Available Sites....", "0%", -1, -1, BitOR($DLG_NOTONTOP, $DLG_MOVEABLE) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ "D:\Development\AutoIt3\programs\test\test.au3"(92,484) : warning: $INET_FORCERELOAD: possibly used before declaration. Local $dData = InetRead("https://parks.suffolkcountyny.gov/wbwsc/webtrac.wsc/search.html?Action=Start&SubAction=&rnwebsearch_search=Yes&primarycode=&begindate=" & $Site_number & $Date1 & "%2F" & $Date2 & "%2F" & $Date3 & "&nights=" & $nights & "&category=" & $location & "&subtype=" & $hookup & "&type=FamilySite&begintime=12%3A00+am&endtime=12%3A00+am&quantity=1&keyword=&display=Listing&search=yes&page=&gotopagenow=&gotopage=1&module=RN&multiselectlist_value=", $INET_FORCERELOAD) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ "D:\Development\AutoIt3\programs\test\test.au3"(117,37) : warning: $MB_CANCELTRYCONTINUE: possibly used before declaration. Switch MsgBox($MB_CANCELTRYCONTINUE, ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ "D:\Development\AutoIt3\programs\test\test.au3"(119,19) : warning: $IDContinue: possibly used before declaration. Case $IDContinue ~~~~~~~~~~~~~~~~^ "D:\Development\AutoIt3\programs\test\test.au3"(122,17) : warning: $IDCancel: possibly used before declaration. Case $IDCancel ~~~~~~~~~~~~~~^ "D:\Development\AutoIt3\programs\test\test.au3"(6,78) : error: $SS_SUNKEN: undeclared global variable. $Heading = GUICtrlCreateLabel("Select a Park:", 336, 104, 101, 19, $SS_SUNKEN) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ "D:\Development\AutoIt3\programs\test\test.au3"(14,83) : error: $CBS_DROPDOWN: undeclared global variable. $Number_of_Nights = GUICtrlCreateCombo("4", 472, 168, 145, 25, BitOR($CBS_DROPDOWN, ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ "D:\Development\AutoIt3\programs\test\test.au3"(14,101) : error: $CBS_AUTOHSCROLL: undeclared global variable. $Number_of_Nights = GUICtrlCreateCombo("4", 472, 168, 145, 25, BitOR($CBS_DROPDOWN, $CBS_AUTOHSCROLL) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ "D:\Development\AutoIt3\programs\test\test.au3"(47,24) : error: $GUI_EVENT_CLOSE: undeclared global variable. Case $GUI_EVENT_CLOSE ~~~~~~~~~~~~~~~~~~~~~^ "D:\Development\AutoIt3\programs\test\test.au3"(75,96) : error: $DLG_NOTONTOP: undeclared global variable. ProgressOn("Searching", "Searching For Available Sites....", "0%", -1, -1, BitOR($DLG_NOTONTOP, ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ "D:\Development\AutoIt3\programs\test\test.au3"(75,111) : error: $DLG_MOVEABLE: undeclared global variable. ProgressOn("Searching", "Searching For Available Sites....", "0%", -1, -1, BitOR($DLG_NOTONTOP, $DLG_MOVEABLE) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ "D:\Development\AutoIt3\programs\test\test.au3"(92,484) : error: $INET_FORCERELOAD: undeclared global variable. Local $dData = InetRead("https://parks.suffolkcountyny.gov/wbwsc/webtrac.wsc/search.html?Action=Start&SubAction=&rnwebsearch_search=Yes&primarycode=&begindate=" & $Site_number & $Date1 & "%2F" & $Date2 & "%2F" & $Date3 & "&nights=" & $nights & "&category=" & $location & "&subtype=" & $hookup & "&type=FamilySite&begintime=12%3A00+am&endtime=12%3A00+am&quantity=1&keyword=&display=Listing&search=yes&page=&gotopagenow=&gotopage=1&module=RN&multiselectlist_value=", $INET_FORCERELOAD) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ "D:\Development\AutoIt3\programs\test\test.au3"(117,37) : error: $MB_CANCELTRYCONTINUE: undeclared global variable. Switch MsgBox($MB_CANCELTRYCONTINUE, ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ "D:\Development\AutoIt3\programs\test\test.au3"(119,19) : error: $IDContinue: undeclared global variable. Case $IDContinue ~~~~~~~~~~~~~~~~^ "D:\Development\AutoIt3\programs\test\test.au3"(122,17) : error: $IDCancel: undeclared global variable. Case $IDCancel ~~~~~~~~~~~~~~^ "D:\Development\AutoIt3\programs\test\test.au3"(1,51) : error: _NowCalcDate(): undefined function. Local $sNewDate = _DateAdd('d', 179, _NowCalcDate() ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ "D:\Development\AutoIt3\programs\test\test.au3"(1,52) : error: _DateAdd(): undefined function. Local $sNewDate = _DateAdd('d', 179, _NowCalcDate()) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ "D:\Development\AutoIt3\programs\test\test.au3"(120,472) : error: _IECreate(): undefined function. _IECreate("https://parks.suffolkcountyny.gov/wbwsc/webtrac.wsc/search.html?Action=Start&SubAction=&rnwebsearch_search=Yes&primarycode=&begindate=" & $Site_number & $Date1 & "%2F" & $Date2 & "%2F" & $Date3 & "&nights=" & $nights & "&category=" & $location & "&subtype=" & $hookup & "&type=FamilySite&begintime=12%3A00+am&endtime=12%3A00+am&quantity=1&keyword=&display=Listing&search=yes&page=&gotopagenow=&gotopage=1&module=RN&multiselectlist_value=", $INET_FORCERELOAD) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ D:\Development\AutoIt3\programs\test\test.au3 - 13 error(s), 10 warning(s) !>10:47:06 AU3Check ended. Press F4 to jump to next error.rc:2 +>10:47:06 AutoIt3Wrapper Finished. I am not sure how else I to explain it. The code pasted here is the code I copied from my script and when I run it, it runs and works other then the issues I have mentioned. The $INET_FORCELOAD was just added but either way with or without it still produces the same results. is there a way to do a remote session I can show ?
bobomb Posted December 20, 2021 Posted December 20, 2021 (edited) He is trying to tell you to post something that runs, so if you dont want to post your entire script at least make an example script that RUNS with the same problem so people can actually help you.. how can anyone else guess what is required to get that running to the point where they can even see the same error? Edited December 20, 2021 by bobomb
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