Jump to content

Recommended Posts

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 far

#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

 

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...