adamsrob222 Posted March 28, 2020 Posted March 28, 2020 I'm totally new to this! I'm trying to script a program that makes a reservation at exactly 7:59:58. At bedtime, I plan to open the website, then sign in and navigate to the reservation page, and stay there all night. I need to stay signed in, so every twenty minutes I focus on a field. All night, until 7:57, I keep focusing every 20 minutes and checking for 7:57 every minute. Then I start sending keys to the reservation fields. I send my last key at exactly 7:59:58. The script works pretty well. Problem #1: When the script starts a Send F5 does not make my webpage active. I have to click on the webpage to get things sent to the webpage. I can live with that limitation however. Problem #2: My _NowTime does not seem to work. I get a function name error. I'm trying to get "While" to loop until 7:57. Windows 10. Thanks!!! Reservations.txt
Moderators Melba23 Posted March 28, 2020 Moderators Posted March 28, 2020 Moved to the appropriate forum, as the Developer General Discussion forum very clearly states: Quote General development and scripting discussions. If it's super geeky and you don't know where to put it - it's probably here. Do not create AutoIt-related topics here, use the AutoIt General Help and Support or AutoIt Technical Discussion forums. Moderation Team Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area
Moderators Melba23 Posted March 28, 2020 Moderators Posted March 28, 2020 adamsrob222, Welcome to the AutoIt forums. Quote The script works pretty well I rather doubt that - there are multiple errors within that script as posted which would prevent it from running at all! And just what are you trying to reserve? M23 P.S. And just to be absolutely clear - this is the Mod team determining the legality of the thread, so everyone else please keep out. Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area
adamsrob222 Posted March 28, 2020 Author Posted March 28, 2020 6 hours ago, Melba23 said: adamsrob222, Welcome to the AutoIt forums. I rather doubt that - there are multiple errors within that script as posted which would prevent it from running at all! And just what are you trying to reserve? M23 P.S. And just to be absolutely clear - this is the Mod team determining the legality of the thread, so everyone else please keep out. 6 hours ago, Melba23 said: adamsrob222, Welcome to the AutoIt forums. I rather doubt that - there are multiple errors within that script as posted which would prevent it from running at all! And just what are you trying to reserve? M23 P.S. And just to be absolutely clear - this is the Mod team determining the legality of the thread, so everyone else please keep out.
adamsrob222 Posted March 28, 2020 Author Posted March 28, 2020 Sorry I was not sharp enough to get the correct forum. Trying to reserving a campsite.
Moderators Melba23 Posted March 28, 2020 Moderators Posted March 28, 2020 adamsrob222, I thought we were all supposed to be staying at home? M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area
adamsrob222 Posted March 28, 2020 Author Posted March 28, 2020 This is for a year from now. Is this thread now "legal"? Thanks for your time.
Moderators Melba23 Posted March 28, 2020 Moderators Posted March 28, 2020 adamsrob222, Quote This is for a year from now And you need to book so precisely at 7:59:58? M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area
adamsrob222 Posted March 28, 2020 Author Posted March 28, 2020 Yes! Their clock is 2 seconds ahead of my computer clock. Reservations open at 8:00. Is this thread cleared?
Moderators Melba23 Posted March 28, 2020 Moderators Posted March 28, 2020 adamsrob222, Happy for it to continue with the stated aim. M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area
adamsrob222 Posted March 29, 2020 Author Posted March 29, 2020 Potential Helpers: Hang on awhile. I think I've corrected most of my problems. I think I've got it except for one line of code.
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