Jump to content

Auto it adlibregister iegetobjbyid help


Recommended Posts

#include <ie.au3>
#include <ButtonConstants.au3>
#include <ComboConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <ProgressConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("KicksCartBot", 615, 437, 192, 124)
$LaceEmUpKicks = GUICtrlCreateLabel("LaceEmUpKicks", 280, 136, 319, 52)
GUICtrlSetFont(-1, 30, 800, 0, "System")
$Nike = GUICtrlCreateLabel("Nike", 400, 208, 64, 40)
GUICtrlSetFont(-1, 23, 400, 0, "MS Sans Serif")
$Bot = GUICtrlCreateLabel("Bot", 464, 208, 52, 41)
GUICtrlSetFont(-1, 24, 400, 0, "MS Sans Serif")
$Pic1 = GUICtrlCreatePic("C:\Users\Joshua\Pictures\nike.jpg", 232, 48, 348, 308)
$Size = GUICtrlCreateCombo("Size", 48, 64, 145, 25, BitOR($CBS_DROPDOWN,$CBS_AUTOHSCROLL))
GUICtrlSetData(-1, "7|7.5|8|8.5|9|9.5|10|10.5|11|11.5|12|12.5|13|14|15")
$Site = GUICtrlCreateCombo("Site", 48, 112, 145, 25, BitOR($CBS_DROPDOWN,$CBS_AUTOHSCROLL))
GUICtrlSetData(-1, "Nike")
GUICtrlSetData(-2, "Footlocker")
$Link = GUICtrlCreateInput("Link", 48, 160, 121, 21)
$Done = GUICtrlCreateButton("Done", 208, 288, 75, 25)
$mAccount = GUICtrlCreateMenu("Accounts")
$mAdd = GUICtrlCreateMenuItem("Add", $mAccount)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###


While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
        Case $GUI_EVENT_CLOSE
            Exit

Case $Site
            $fSite = GUICtrlRead($Site)

            Case $Link
            $Site = GUICtrlRead($Link)

        Case $Size
            $Shoe = GUICtrlRead($Size)

        Case $Done



        Global $oIE = _IECreate ($Site)
ProgressSet(10)



    Local $Checkout = _IEGetObjByid ($oIE,"buyingtools-add-to-cart-button")
    $Sise = _IEGetObjByName ($oIE, "skuid")

        Local $Name = _IEGetObjByName ($oIE,"skuAndSize")



ProgressSet("50")
while 1
    $Name = _IEGetObjByName($oIE,"skuAndSize")
    $Checkc = _IEGetObjById($oIE,"minicart-view-cart-button")
    If Not @error Then ExitLoop
    WEnd

ProgressSet("75")



$value = _IEFormElementGetValue($Name)
if $Shoe = "7" Then
_IEFormElementOptionSelect($Name,"7",1,"bytext")
_IEAction ($Checkout,"click")
EndIf

if $Shoe = "7.5" then
        _IEFormElementOptionSelect($Name,"7.5",1,"bytext")
_IEAction ($Checkout,"click")
    EndIf

if $Shoe = "8" Then
    _IEFormElementOptionSelect($Name,"8",1,"bytext")
_IEAction ($Checkout,"click")
EndIf

if $Shoe = "8.5" then
        _IEFormElementOptionSelect($Name,"8.5",1,"bytext")
_IEAction ($Checkout,"click")
EndIf

if $Shoe = "9" then
        _IEFormElementOptionSelect($Name,"9",1,"bytext")
_IEAction ($Checkout,"click")
EndIf

if $Shoe = "9.5" then
        _IEFormElementOptionSelect($Name,"9.5",1,"bytext")
_IEAction ($Checkout,"click")
EndIf

if $Shoe = "10" then
        _IEFormElementOptionSelect($Name,"10",1,"bytext")
_IEAction ($Checkout,"click")
EndIf

if $Shoe = "10.5" then
        _IEFormElementOptionSelect($Name,"10.5",1,"bytext")
_IEAction ($Checkout,"click")
EndIf

if $Shoe = "11" then
        _IEFormElementOptionSelect($Name,"11",1,"bytext")
_IEAction ($Checkout,"click")
EndIf

if $Shoe = "11.5" then
        _IEFormElementOptionSelect($Name,"11.5",1,"bytext")
_IEAction ($Checkout,"click")
EndIf

if $Shoe = "12" then
        _IEFormElementOptionSelect($Name,"12",1,"bytext")
_IEAction ($Checkout,"click")
EndIf

if $Shoe = "12.5" then
        _IEFormElementOptionSelect($Name,"12.5",1,"bytext")
_IEAction ($Checkout,"click")
EndIf


if $Shoe = "13" then
        _IEFormElementOptionSelect($Name,"13",1,"bytext")
_IEAction ($Checkout,"click")
EndIf

if $Shoe = "14" then
        _IEFormElementOptionSelect($Name,"14",1,"bytext")
_IEAction ($Checkout,"click")
EndIf

if $Shoe = "15" then
        _IEFormElementOptionSelect($Name,"15",1,"bytext")
_IEAction ($Checkout,"click")
EndIf





ProgressSet("100")

    EndSwitch
WEnd

OK sorry here's my code i want to be able to login to multiple nike accounts and add different shoes to cart at the same time

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...