sirbeast45 Posted November 26, 2015 Share Posted November 26, 2015 I want to make a program that waits for a timer to finish then once it finishes it will click a button but I'm not exactly sure how to code it I'm fairly new Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted November 26, 2015 Moderators Share Posted November 26, 2015 sirbeast45,TimerInit/Diff should let you get the timer part working - although if you need a specific time then the @HOUR/@MIN/@SEC macros may be more suitable.As to clicking a button - what button where?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 Link to comment Share on other sites More sharing options...
Radiance Posted November 26, 2015 Share Posted November 26, 2015 As simple as it can get, wait a certain amount of seconds:Global $Seconds = 5 Sleep($Seconds * 1000) ; Do stuff here Wait until a certain time is reachedGlobal $Hour = 18 Global $Minute = 35 While 1 If @HOUR = $Hour AND $Minute = @MIN Then ExitLoop Sleep(1000) WEnd ;Do stuff here Link to comment Share on other sites More sharing options...
sirbeast45 Posted November 26, 2015 Author Share Posted November 26, 2015 But the timer is on a site I don't set it Link to comment Share on other sites More sharing options...
mikell Posted November 26, 2015 Share Posted November 26, 2015 Which site ? Link to comment Share on other sites More sharing options...
sirbeast45 Posted November 26, 2015 Author Share Posted November 26, 2015 Something like nike.com or footlocker.com Link to comment Share on other sites More sharing options...
Developers Jos Posted November 26, 2015 Developers Share Posted November 26, 2015 Something like nike.com or footlocker.comIf you really want support you better start stating the exact challenge or else it is will be a waste of time.So start giving exact detail on what you are trying to automate and what you have tried already.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. Link to comment Share on other sites More sharing options...
sirbeast45 Posted November 27, 2015 Author Share Posted November 27, 2015 Ok so what i want to do is have the program open the Nike link then wait for the countdown to finish then press size then click the size I tell it to the. Click add to cart i have it so it adds to cart but I can't find out exactly how to wait for the timer to end and how to select the size because it can't recognize it using _iegetobjbyname or _iegetobjbyid because it doesn't have those Link to comment Share on other sites More sharing options...
Developers Jos Posted November 27, 2015 Developers Share Posted November 27, 2015 Getting closer but still not there yet . There is no link to work with and no code you have tried, so how would you expect us to be able to assist?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. Link to comment Share on other sites More sharing options...
sirbeast45 Posted December 13, 2015 Author Share Posted December 13, 2015 Okay sorry I haven't responded in a while but now I'm thinking I can just have it wait till the size option appears then start the process but the only problem is that I can't get it to select the size and recognize it the site is Nike.com Link to comment Share on other sites More sharing options...
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