sirbeast45 Posted November 25, 2015 Posted November 25, 2015 Ok so i am new to using AutoIt, I am trying to make a program that goes to the item selects the size and adds it to cart automatically but the problem i am having is that on the day when they release the clothes, or shoes they have a time so i want the program to wait for the timer to end then click the size here is my code so farexpandcollapse popup#include<ie.au3> #include <ButtonConstants.au3> #include <EditConstants.au3> #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> #Region ### START Koda GUI section ### Form=c:\users\joshua\documents\supremeloader.kxf $Form1_1 = GUICreate("Form1", 615, 437, 192, 124) $Link = GUICtrlCreateInput("Link", 104, 248, 121, 21) $Size = GUICtrlCreateInput("Size", 104, 64, 121, 21) $Email = GUICtrlCreateInput("Email", 104, 104, 121, 21) $Phone = GUICtrlCreateInput("Phone", 312, 64, 121, 21) $Adress = GUICtrlCreateInput("Adress", 312, 104, 121, 21) $Input5 = GUICtrlCreateInput("Input5", 104, 152, 121, 21) $Input6 = GUICtrlCreateInput("Input6", 104, 200, 121, 21) $Done = GUICtrlCreateButton("Done", 232, 320, 75, 25) GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit Case $Size $Sizes = GUICtrlRead($Size) Case $Link $Site = GUICtrlRead($Link) Case $Done Call("Supreme") Global $oIE = _IECreate ($Site) Local $Cart = _IEGetObjByName ($oIE,"commit") Local $Size = _IEGetObjByName ($oIE,"size") Local $Name = _IEGetObjByName ($oIE,"order[billing_name]") Local $Checkout = _IEGetObjByName ($oIE,"button checkout") Local $Cart = _IEGetObjByName ($oIE,"commit") Local $Size = _IEGetObjByName ($oIE,"size") Local $Name = _IEGetObjByName ($oIE,"order[billing_name]") Local $Checkout = _IEGetObjByName ($oIE,"button checkout") $oSelect = _IEGetObjByName($oIE,"size") _IEAction($oSelect, "focus") _IEFormElementOptionSelect($oselect,"Large") Send($Sizes) _IEAction($Cart,"Click") sleep(1000) Else sleep(1000) Endif EndSwitch WEnd
Kovacic Posted December 3, 2015 Posted December 3, 2015 Did you have a question? C0d3 is P0etry( ͡° ͜ʖ ͡°)
sirbeast45 Posted December 13, 2015 Author Posted December 13, 2015 Yes I'm trying to do it on Nike.com but I don't know how to get it to look for the size button and select the size
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