sirbeast45

Gui Content update constantly help

5 posts in this topic

So I have a program that adds a pair of shoes to your cart How can I add a thing on my gui that updates telling me when the shoe is in cart

Share this post


Link to post
Share on other sites



You'll need to be a little more specific than that. Is the program, that adds shoes, an external program or is it something you made? Do you have some code you've already tested?

Share this post


Link to post
Share on other sites

So I have a program that adds a pair of shoes to your cart How can I add a thing on my gui that updates telling me when the shoe is in cart

That is simple, just tick the correct box that indicates you put it in the cart.... That can't be that hard now , can it?

Jos


Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites
#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

I want a bit more then just a check in a box ok well here's the program I want it to be kinda of a list that says the size of the shoe and if it's carted or not

Share this post


Link to post
Share on other sites

Can anyone help

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