sirbeast45 Posted December 26, 2015 Share Posted December 26, 2015 I can't figure out a way for It to keep searching for an object on an html page. I want it to wait for that object to appear then do a set of tasks and if it is not there then wait but I can't figure out how. Link to comment Share on other sites More sharing options...
mikell Posted December 26, 2015 Share Posted December 26, 2015 Something like this should workWhile 1 $my_object = _IEGetObjById($oIE, "my_object_id") If not @error Then Exitloop Wend Link to comment Share on other sites More sharing options...
sirbeast45 Posted December 26, 2015 Author Share Posted December 26, 2015 Thanks that worked ok but now I need to be able to login to multiple accounts at once without them interfering with each other and each do a similar but slightly different task depending on what I say I was thinking about using maybe incognito mode on ie Link to comment Share on other sites More sharing options...
mikell Posted December 26, 2015 Share Posted December 26, 2015 Dude, you provide NO serious info & you show NO code, what kind of help do you expect really ? Link to comment Share on other sites More sharing options...
sirbeast45 Posted December 26, 2015 Author Share Posted December 26, 2015 expandcollapse popup#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 WEndOK 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 More sharing options...
sirbeast45 Posted December 27, 2015 Author Share Posted December 27, 2015 Can Anyone help 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