Jump to content

New to AutoIt and Can't Figure Out Where Code is Going Wrong


Zacchhh
 Share

Recommended Posts

I recently got autoit to help automate my shopping but for some reason after a certain line things are no longer working. I added the _IELoadWait command but it didn't change anything so I figured it was something about the code afterwards, but no changes are changing the results. Help, Thanks.

 

#include <IE.au3>
#include <MsgBoxConstants.au3>
#include <GUIConstantsEx.au3>

Global $oIE = _IECreate ("Link")

_IELinkClickByText($oIE, "Item", 1)

_IELoadWait($oIE)

$oSize = _IEGetObjById($oIE, "cctrl")
$oSizeSelect = _IETagNameGetCollection($oSize, "select", 0)
_IEFormElementOptionSelect($oSizeSelect, "Medium", 1, "byText")

$oButtons = _IETagNameGetCollection ($oIE, "button")
For $oButton In $oButtons
    If $oButton.type = "add to cart" Then _IEAction($oIE, "click")
Next

Link to comment
Share on other sites

  • Developers
3 hours ago, Zacchhh said:

Help, Thanks.

Welcome,

I am wondering why you think we would be able to help when you're just it isn't working anymore and post code we can't test with ourselves?

Jos

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

14 hours ago, Jos said:

Welcome,

I am wondering why you think we would be able to help when you're just it isn't working anymore and post code we can't test with ourselves?

Jos

Sorry about that, I figured there would be something in the code that you guys could recognize that I can't because I am new. What would you like me to include to better your understanding?

Link to comment
Share on other sites

Why remove the link?

Spoiler

Renamer - Rename files and folders, remove portions of text from the filename etc.

GPO Tool - Export/Import Group policy settings.

MirrorDir - Synchronize/Backup/Mirror Folders

BeatsPlayer - Music player.

Params Tool - Right click an exe to see it's parameters or execute them.

String Trigger - Triggers pasting text or applications or internet links on specific strings.

Inconspicuous - Hide files in plain sight, not fully encrypted.

Regedit Control - Registry browsing history, quickly jump into any saved key.

Time4Shutdown - Write the time for shutdown in minutes.

Power Profiles Tool - Set a profile as active, delete, duplicate, export and import.

Finished Task Shutdown - Shuts down pc when specified window/Wndl/process closes.

NetworkSpeedShutdown - Shuts down pc if download speed goes under "X" Kb/s.

IUIAutomation - Topic with framework and examples

Au3Record.exe

Link to comment
Share on other sites

  • Developers
9 hours ago, Zacchhh said:

What would you like me to include to better your understanding?

maybe: Something that actually does run and we can test with to see what is going wrong?

Jos

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

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...